summaryrefslogtreecommitdiff
path: root/hosts/vidhar/prometheus/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/vidhar/prometheus/default.nix')
-rw-r--r--hosts/vidhar/prometheus/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix
index cb7567c9..017097ad 100644
--- a/hosts/vidhar/prometheus/default.nix
+++ b/hosts/vidhar/prometheus/default.nix
@@ -76,13 +76,11 @@ in {
76 { source_labels = ["__address__"]; 76 { source_labels = ["__address__"];
77 target_label = "__param_target"; 77 target_label = "__param_target";
78 } 78 }
79 { source_labels = ["__param_target"]; 79 ] ++ relabelHosts ++
80 target_label = "instance"; 80 [ { replacement = "localhost:${toString config.services.prometheus.exporters.snmp.port}";
81 }
82 { replacement = "localhost:${toString config.services.prometheus.exporters.snmp.port}";
83 target_label = "__address__"; 81 target_label = "__address__";
84 } 82 }
85 ] ++ relabelHosts; 83 ];
86 } 84 }
87 { job_name = "zte"; 85 { job_name = "zte";
88 static_configs = [ 86 static_configs = [