From be24e241d7e8bfc5b2b02661688d9dd8237c88d8 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Fri, 25 Aug 2023 09:41:54 -0700 Subject: [PATCH] add scraping of prometheus' own metrics --- modules/monitoring.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/monitoring.nix b/modules/monitoring.nix index bb49d5b..fd93714 100644 --- a/modules/monitoring.nix +++ b/modules/monitoring.nix @@ -105,6 +105,14 @@ in } ]; } + { + job_name = "prometheus_internal"; + static_configs = [ + { + targets = ["127.0.0.1:${toString config.services.prometheus.port}"]; + } + ]; + } ] ++ (lib.lists.optional config.services.nginx.enable { job_name = "nginx"; static_configs = [