diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-06 20:17:49 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-06 20:17:49 +0100 |
commit | 178fa5e0648b7bb4a1bce022404d99a02f231716 (patch) | |
tree | 7ff88fe4b6b35108a444bd78cc0cb609e584fa57 /hosts/vidhar | |
parent | f6951e022273fa83603b406d88e54899e9f68228 (diff) | |
download | nixos-178fa5e0648b7bb4a1bce022404d99a02f231716.tar nixos-178fa5e0648b7bb4a1bce022404d99a02f231716.tar.gz nixos-178fa5e0648b7bb4a1bce022404d99a02f231716.tar.bz2 nixos-178fa5e0648b7bb4a1bce022404d99a02f231716.tar.xz nixos-178fa5e0648b7bb4a1bce022404d99a02f231716.zip |
vidhar: prometheus: systemd
Diffstat (limited to 'hosts/vidhar')
-rw-r--r-- | hosts/vidhar/prometheus/default.nix | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 776b2c43..c38ea16c 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix | |||
@@ -23,10 +23,7 @@ in { | |||
23 | exporters = { | 23 | exporters = { |
24 | node = { | 24 | node = { |
25 | enable = true; | 25 | enable = true; |
26 | enabledCollectors = ["systemd"]; | 26 | enabledCollectors = []; |
27 | extraFlags = [ | ||
28 | "--collector.systemd.unit-include=(dhcpcd-dsl|pppd-telekom|corerad|ndppd)\.service" | ||
29 | ]; | ||
30 | }; | 27 | }; |
31 | smartctl = { | 28 | smartctl = { |
32 | enable = true; | 29 | enable = true; |
@@ -68,6 +65,12 @@ in { | |||
68 | '') (concatLists (mapAttrsToList (host: hostKeys: map (nameValuePair host) hostKeys) keys))); | 65 | '') (concatLists (mapAttrsToList (host: hostKeys: map (nameValuePair host) hostKeys) keys))); |
69 | }; | 66 | }; |
70 | apcupsd.enable = true; | 67 | apcupsd.enable = true; |
68 | systemd = { | ||
69 | enable = true; | ||
70 | extraFlags = [ | ||
71 | "--collector.unit-whitelist=(dhcpcd-dsl|pppd-telekom|corerad|ndppd)\.service" | ||
72 | ]; | ||
73 | }; | ||
71 | }; | 74 | }; |
72 | 75 | ||
73 | scrapeConfigs = [ | 76 | scrapeConfigs = [ |
@@ -85,6 +88,13 @@ in { | |||
85 | relabel_configs = relabelHosts; | 88 | relabel_configs = relabelHosts; |
86 | scrape_interval = "1s"; | 89 | scrape_interval = "1s"; |
87 | } | 90 | } |
91 | { job_name = "systemd"; | ||
92 | static_configs = [ | ||
93 | { targets = ["localhost:${toString config.services.prometheus.exporters.systemd.port}"]; } | ||
94 | ]; | ||
95 | relabel_configs = relabelHosts; | ||
96 | scrape_interval = "1s"; | ||
97 | } | ||
88 | { job_name = "smartctl"; | 98 | { job_name = "smartctl"; |
89 | static_configs = [ | 99 | static_configs = [ |
90 | { targets = ["localhost:${toString config.services.prometheus.exporters.smartctl.port}"]; } | 100 | { targets = ["localhost:${toString config.services.prometheus.exporters.smartctl.port}"]; } |