From 7ce049462af675c13e756705bc11d8858c076dea Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 31 Dec 2021 23:36:46 +0100 Subject: vidhar: prometheus: ... --- hosts/vidhar/prometheus/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 017097ad..e85d64fc 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix @@ -51,18 +51,21 @@ in { { targets = ["localhost:${toString config.services.prometheus.port}"]; } ]; relabel_configs = relabelHosts; + scrape_interval = "1s"; } { job_name = "node"; static_configs = [ { targets = ["localhost:${toString config.services.prometheus.exporters.node.port}"]; } ]; relabel_configs = relabelHosts; + scrape_interval = "1s"; } { job_name = "smartctl"; static_configs = [ { targets = ["localhost:${toString config.services.prometheus.exporters.smartctl.port}"]; } ]; relabel_configs = relabelHosts; + scrape_interval = "1s"; } { job_name = "snmp"; static_configs = [ @@ -81,6 +84,7 @@ in { target_label = "__address__"; } ]; + scrape_interval = "15s"; } { job_name = "zte"; static_configs = [ @@ -91,24 +95,28 @@ in { target_label = "instance"; } ]; + scrape_interval = "15s"; } { job_name = "unbound"; static_configs = [ { targets = ["localhost:${toString config.services.prometheus.exporters.unbound.port}"]; } ]; relabel_configs = relabelHosts; + scrape_interval = "1s"; } { job_name = "wireguard"; static_configs = [ { targets = ["localhost:${toString config.services.prometheus.exporters.wireguard.port}"]; } ]; relabel_configs = relabelHosts; + scrape_interval = "1s"; } { job_name = "corerad"; static_configs = [ { targets = ["localhost:9430"]; } ]; relabel_configs = relabelHosts; + scrape_interval = "1s"; } ]; }; -- cgit v1.2.3