diff options
author | Franck Cuny <franck@fcuny.net> | 2023-04-05 19:02:51 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-04-05 19:02:51 -0700 |
commit | 7f60015aa01cc2493932a9e0a8bad0890c80a507 (patch) | |
tree | 425b41b3589d2aaec9a461cafa8b002446d7ddd2 | |
parent | wireguard: fix configuration of a few hosts (diff) | |
download | world-7f60015aa01cc2493932a9e0a8bad0890c80a507.tar.gz |
modules/prometheus: fix IP addresses
Diffstat (limited to '')
-rw-r--r-- | modules/services/prometheus/default.nix | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/modules/services/prometheus/default.nix b/modules/services/prometheus/default.nix index b0cb7ca..a61f238 100644 --- a/modules/services/prometheus/default.nix +++ b/modules/services/prometheus/default.nix @@ -27,14 +27,7 @@ let { source_labels = [ "__address__" ]; target_label = "instance"; - replacement = "nas"; - action = "replace"; - regex = "192.168.6.10:(.*)"; - } - { - source_labels = [ "__address__" ]; - target_label = "instance"; - replacement = "rtr"; + replacement = "carmel"; action = "replace"; regex = "192.168.6.1:(.*)"; } @@ -43,7 +36,7 @@ let target_label = "instance"; replacement = "tahoe"; action = "replace"; - regex = "192.168.6.20:(.*)"; + regex = "192.168.6.40:(.*)"; } ]; in @@ -124,37 +117,22 @@ in { job_name = "node"; static_configs = - [{ targets = [ "192.168.6.1:9100" "192.168.6.20:9100" ]; }]; + [{ targets = [ "192.168.6.1:9100" "192.168.6.40:9100" ]; }]; relabel_configs = relabelConfigs; } { job_name = "prometheus"; - static_configs = [{ targets = [ "192.168.6.20:9090" ]; }]; - relabel_configs = relabelConfigs; - } - { - job_name = "dnsd"; - static_configs = [{ targets = [ "192.168.6.1:8053" ]; }]; - relabel_configs = relabelConfigs; - } - { - job_name = "dnsdd"; - static_configs = [{ targets = [ "192.168.6.1:9060" ]; }]; - relabel_configs = relabelConfigs; - } - { - job_name = "dhcpd"; - static_configs = [{ targets = [ "192.168.6.1:8067" ]; }]; + static_configs = [{ targets = [ "192.168.6.40:9090" ]; }]; relabel_configs = relabelConfigs; } { - job_name = "netd"; - static_configs = [{ targets = [ "192.168.6.1:8055" ]; }]; + job_name = "dnsmasq"; + static_configs = [{ targets = [ "192.168.6.1:9153" ]; }]; relabel_configs = relabelConfigs; } { job_name = "unifi-poller"; - static_configs = [{ targets = [ "192.168.6.20:9130" ]; }]; + static_configs = [{ targets = [ "192.168.6.40:9130" ]; }]; relabel_configs = relabelConfigs; } ]; |