summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-04-08 18:18:53 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-04-08 18:18:53 +0200
commit93a171a23f8c146eda6ccca13bde41eec87ef913 (patch)
treeff71bb322290ff372a5c20a018a9da00938b3844 /hosts
parentc4859cb4491f8141f39d9df118bc67cd9473a03b (diff)
downloadnixos-93a171a23f8c146eda6ccca13bde41eec87ef913.tar
nixos-93a171a23f8c146eda6ccca13bde41eec87ef913.tar.gz
nixos-93a171a23f8c146eda6ccca13bde41eec87ef913.tar.bz2
nixos-93a171a23f8c146eda6ccca13bde41eec87ef913.tar.xz
nixos-93a171a23f8c146eda6ccca13bde41eec87ef913.zip
vidhar: ...
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vidhar/prometheus/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix
index 2c9831e5..3f3c285b 100644
--- a/hosts/vidhar/prometheus/default.nix
+++ b/hosts/vidhar/prometheus/default.nix
@@ -219,7 +219,7 @@ in {
219 metrics_path = "/probe"; 219 metrics_path = "/probe";
220 params = { module = ["dns_soa"]; }; 220 params = { module = ["dns_soa"]; };
221 static_configs = [ 221 static_configs = [
222 { targets = ["127.0.0.53:53" "127.0.0.1:5353"]; } 222 { targets = ["127.0.0.53:53" "127.0.0.1:53"]; }
223 ]; 223 ];
224 relabel_configs = [ 224 relabel_configs = [
225 { source_labels = ["__address__"]; 225 { source_labels = ["__address__"];
@@ -227,6 +227,13 @@ in {
227 } 227 }
228 { source_labels = ["__param_target"]; 228 { source_labels = ["__param_target"];
229 target_label = "instance"; 229 target_label = "instance";
230 regex = "127\.0\.0\.53:53";
231 replacement = "systemd-resolved.vidhar";
232 }
233 { source_labels = ["__param_target"];
234 target_label = "instance";
235 regex = "127\.0\.0\.1:53";
236 replacement = "unbound.vidhar";
230 } 237 }
231 { replacement = "localhost:${toString config.services.prometheus.exporters.blackbox.port}"; 238 { replacement = "localhost:${toString config.services.prometheus.exporters.blackbox.port}";
232 target_label = "__address__"; 239 target_label = "__address__";