summaryrefslogtreecommitdiff
path: root/hosts/vidhar/prometheus/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-11-25 09:15:24 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-11-25 09:15:24 +0100
commit5a0d733319a259b2ce833cc995cb75be426f8f8d (patch)
tree8e1d1b934d8df59d18eb7e8b7c56a4d27d479e20 /hosts/vidhar/prometheus/default.nix
parent3032fc55abfc631c2fea559948dfaaeb799284d0 (diff)
downloadnixos-5a0d733319a259b2ce833cc995cb75be426f8f8d.tar
nixos-5a0d733319a259b2ce833cc995cb75be426f8f8d.tar.gz
nixos-5a0d733319a259b2ce833cc995cb75be426f8f8d.tar.bz2
nixos-5a0d733319a259b2ce833cc995cb75be426f8f8d.tar.xz
nixos-5a0d733319a259b2ce833cc995cb75be426f8f8d.zip
...
Diffstat (limited to 'hosts/vidhar/prometheus/default.nix')
-rw-r--r--hosts/vidhar/prometheus/default.nix7
1 files changed, 1 insertions, 6 deletions
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix
index e6de6806..14d6dabf 100644
--- a/hosts/vidhar/prometheus/default.nix
+++ b/hosts/vidhar/prometheus/default.nix
@@ -216,7 +216,7 @@ in {
216 metrics_path = "/probe"; 216 metrics_path = "/probe";
217 params = { module = ["dns_soa"]; }; 217 params = { module = ["dns_soa"]; };
218 static_configs = [ 218 static_configs = [
219 { targets = ["127.0.0.53:53" "127.0.0.1:53"]; } 219 { targets = ["127.0.0.1:53"]; }
220 ]; 220 ];
221 relabel_configs = [ 221 relabel_configs = [
222 { source_labels = ["__address__"]; 222 { source_labels = ["__address__"];
@@ -225,11 +225,6 @@ in {
225 ] ++ relabelHosts ++ 225 ] ++ relabelHosts ++
226 [ { source_labels = ["__param_target"]; 226 [ { source_labels = ["__param_target"];
227 target_label = "job"; 227 target_label = "job";
228 regex = "127\.0\.0\.53:53";
229 replacement = "systemd-resolved.dns_soa";
230 }
231 { source_labels = ["__param_target"];
232 target_label = "job";
233 regex = "127\.0\.0\.1:53"; 228 regex = "127\.0\.0\.1:53";
234 replacement = "unbound.dns_soa"; 229 replacement = "unbound.dns_soa";
235 } 230 }