[metrics] Gets Loki and Prometheus set up with Grafana

This commit is contained in:
2025-03-22 11:31:35 -07:00
parent 8833323b82
commit 55557f4fed
4 changed files with 48 additions and 5 deletions

View File

@@ -5,7 +5,8 @@ let
hostRule = host: domain: "Host(`${host}.${domain}`)";
hostRuleHavenisms = host: hostRule host havenisms;
localNet = "192.168.0.0/16";
localNetRule = "ClientIP(`${localNet}`)";
dockerNet = "10.88.0.0/16";
localNetRule = "(ClientIP(`${localNet}`) || ClientIP(`${dockerNet}`))";
localHostRule = host: domain: "${localNetRule} && ${hostRule host domain}";
localHostRuleHavenisms = host: localHostRule host havenisms;
in