summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
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__";