From ff8ad949137c6f57d7c9b298dc96e1db9cee1076 Mon Sep 17 00:00:00 2001 From: Christine Elisabeth Koppel Date: Sat, 14 Feb 2026 15:25:25 +0100 Subject: [PATCH] Configure Promethus Scrape Intefval --- nix-system-configs/modules/system/gramethus.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/nix-system-configs/modules/system/gramethus.nix b/nix-system-configs/modules/system/gramethus.nix index f672023..70c809c 100644 --- a/nix-system-configs/modules/system/gramethus.nix +++ b/nix-system-configs/modules/system/gramethus.nix @@ -61,8 +61,9 @@ in { enable = true; settings = { server = { - http_port = 3005; - enforce_domain = true; + http_addr = "100.71.227.33"; + http_port = 3000; + #enforce_domain = true; enable_gzip = true; domain = "grafana.prg-radio.org"; @@ -87,6 +88,18 @@ in { "systemd" "tcpstat" ]; + + globalConfig.scrape_interval = "10s"; # "1m" + scrapeConfigs = [ + { + job_name = "node"; + static_configs = [ + { + targets = ["localhost:${toString config.services.prometheus.exporters.node.port}"]; + } + ]; + } + ]; }; #services.loki = {