summaryrefslogtreecommitdiff
path: root/hosts/vidhar/prometheus
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-12-31 22:54:43 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2021-12-31 22:54:43 +0100
commit91e315c97b43389ff332399a92c3ebedb57cef7b (patch)
treeabef7b98d7aed5c552698406906ef10f97dbe365 /hosts/vidhar/prometheus
parentfac2614b465dee2d7a805046909161f8e2fab873 (diff)
downloadnixos-91e315c97b43389ff332399a92c3ebedb57cef7b.tar
nixos-91e315c97b43389ff332399a92c3ebedb57cef7b.tar.gz
nixos-91e315c97b43389ff332399a92c3ebedb57cef7b.tar.bz2
nixos-91e315c97b43389ff332399a92c3ebedb57cef7b.tar.xz
nixos-91e315c97b43389ff332399a92c3ebedb57cef7b.zip
vidhar: prometheus: ...
Diffstat (limited to 'hosts/vidhar/prometheus')
-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 = [