summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts/vidhar/prometheus.nix6
1 files changed, 6 insertions, 0 deletions
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 {
48 }; 48 };
49 49
50 scrapeConfigs = [ 50 scrapeConfigs = [
51 { job_name = "prometheus";
52 static_configs = [
53 { targets = ["localhost:${toString config.services.prometheus.port}"]; }
54 ];
55 relabel_configs = relabelHosts;
56 }
51 { job_name = "node"; 57 { job_name = "node";
52 static_configs = [ 58 static_configs = [
53 { targets = ["localhost:${toString config.services.prometheus.exporters.node.port}"]; } 59 { targets = ["localhost:${toString config.services.prometheus.exporters.node.port}"]; }