diff --git a/hosts/sakura/services/grafana.nix b/hosts/sakura/services/grafana.nix index 4b15c7b..044cb2e 100644 --- a/hosts/sakura/services/grafana.nix +++ b/hosts/sakura/services/grafana.nix @@ -2,6 +2,8 @@ _: { services.grafana = { enable = true; settings = { + "auth.anonymous".enabled = true; + "auth.basic".enabled = false; server = { root_url = "https://metrics.flake.sh"; domain = "metrics.flake.sh"; @@ -9,8 +11,6 @@ _: { http_addr = "0.0.0.0"; http_port = 3100; }; - "auth.anonymous".enabled = true; - "auth.basic".enabled = false; users = { allow_signup = false; }; @@ -21,6 +21,10 @@ _: { user = "grafana"; ssl_mode = "disable"; }; + panels = { + disable_sanitize_html = false; + enable_alpha = true; + }; }; provision = { datasources.settings = { @@ -55,6 +59,17 @@ _: { url = "http://100.104.42.96:9090"; orgId = 1; } + { + name = "Prometheus-haru"; + type = "prometheus"; + url = "http://100.73.192.45:9090"; + orgId = 1; + jsonData = { + graphiteVersion = "1.1"; + tlsAuth = false; + tlsAuthWithCACert = false; + }; + } ]; }; };