From 9f0e601d8489b2b085ffb2264aaab066e8d09b2e Mon Sep 17 00:00:00 2001 From: K900 Date: Mon, 8 Jul 2024 10:25:15 +0300 Subject: [PATCH] Scrape grafana/loki/mimir own metrics --- services/monitoring/lgtm/grafana.nix | 4 +++- services/monitoring/lgtm/loki.nix | 2 ++ services/monitoring/lgtm/mimir.nix | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/services/monitoring/lgtm/grafana.nix b/services/monitoring/lgtm/grafana.nix index e567f65..906b4da 100644 --- a/services/monitoring/lgtm/grafana.nix +++ b/services/monitoring/lgtm/grafana.nix @@ -141,5 +141,7 @@ in }; }; }; -}; + + bagel.monitoring.grafana-agent.exporters.grafana.port = 2342; + }; } diff --git a/services/monitoring/lgtm/loki.nix b/services/monitoring/lgtm/loki.nix index 8168abd..e9ba317 100644 --- a/services/monitoring/lgtm/loki.nix +++ b/services/monitoring/lgtm/loki.nix @@ -96,5 +96,7 @@ in basicAuthFile = config.age.secrets.metrics-push-htpasswd.path; }; }; + + bagel.monitoring.grafana-agent.exporters.loki.port = 9090; }; } diff --git a/services/monitoring/lgtm/mimir.nix b/services/monitoring/lgtm/mimir.nix index de5f7e1..cb4f911 100644 --- a/services/monitoring/lgtm/mimir.nix +++ b/services/monitoring/lgtm/mimir.nix @@ -88,5 +88,7 @@ in basicAuthFile = config.age.secrets.metrics-push-htpasswd.path; }; }; + + bagel.monitoring.grafana-agent.exporters.mimir.port = 9009; }; }