From b3ebe3a3b0a169778a4c269d9de27f38fd8d8666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Thu, 5 Dec 2024 19:36:55 +0100 Subject: [PATCH] Monitor prometheus metrics --- services/monitoring/prometheus.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/services/monitoring/prometheus.nix b/services/monitoring/prometheus.nix index 3e59b80..0887081 100644 --- a/services/monitoring/prometheus.nix +++ b/services/monitoring/prometheus.nix @@ -36,6 +36,9 @@ ]; } ]; + globalConfig = { + scrape_interval = "15s"; + }; rules = [ '' groups: @@ -124,6 +127,14 @@ } ]; } + { + job_name = "prometheus"; + static_configs = [ + { + targets = [ "localhost:9090" ]; + } + ]; + } { job_name = "pve-exporter"; static_configs = [