From 93a171a23f8c146eda6ccca13bde41eec87ef913 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 8 Apr 2022 18:18:53 +0200 Subject: vidhar: ... --- hosts/vidhar/prometheus/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'hosts/vidhar/prometheus') 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 { metrics_path = "/probe"; params = { module = ["dns_soa"]; }; static_configs = [ - { targets = ["127.0.0.53:53" "127.0.0.1:5353"]; } + { targets = ["127.0.0.53:53" "127.0.0.1:53"]; } ]; relabel_configs = [ { source_labels = ["__address__"]; @@ -227,6 +227,13 @@ in { } { source_labels = ["__param_target"]; target_label = "instance"; + regex = "127\.0\.0\.53:53"; + replacement = "systemd-resolved.vidhar"; + } + { source_labels = ["__param_target"]; + target_label = "instance"; + regex = "127\.0\.0\.1:53"; + replacement = "unbound.vidhar"; } { replacement = "localhost:${toString config.services.prometheus.exporters.blackbox.port}"; target_label = "__address__"; -- cgit v1.2.3