From 3174f7b24c24f07811446c8528386903bdb20f90 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 31 Dec 2021 16:34:33 +0100 Subject: vidhar: prometheus: ... --- hosts/vidhar/prometheus.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hosts/vidhar/prometheus.nix') diff --git a/hosts/vidhar/prometheus.nix b/hosts/vidhar/prometheus.nix index f2959dd2..7c776c0f 100644 --- a/hosts/vidhar/prometheus.nix +++ b/hosts/vidhar/prometheus.nix @@ -48,6 +48,12 @@ in { }; scrapeConfigs = [ + { job_name = "prometheus"; + static_configs = [ + { targets = ["localhost:${toString config.services.prometheus.port}"]; } + ]; + relabel_configs = relabelHosts; + } { job_name = "node"; static_configs = [ { targets = ["localhost:${toString config.services.prometheus.exporters.node.port}"]; } -- cgit v1.2.3