diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-11-25 09:15:24 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-11-25 09:15:24 +0100 |
commit | 5a0d733319a259b2ce833cc995cb75be426f8f8d (patch) | |
tree | 8e1d1b934d8df59d18eb7e8b7c56a4d27d479e20 /hosts/vidhar/prometheus | |
parent | 3032fc55abfc631c2fea559948dfaaeb799284d0 (diff) | |
download | nixos-5a0d733319a259b2ce833cc995cb75be426f8f8d.tar nixos-5a0d733319a259b2ce833cc995cb75be426f8f8d.tar.gz nixos-5a0d733319a259b2ce833cc995cb75be426f8f8d.tar.bz2 nixos-5a0d733319a259b2ce833cc995cb75be426f8f8d.tar.xz nixos-5a0d733319a259b2ce833cc995cb75be426f8f8d.zip |
...
Diffstat (limited to 'hosts/vidhar/prometheus')
-rw-r--r-- | hosts/vidhar/prometheus/default.nix | 7 |
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 | } |