diff options
Diffstat (limited to 'hosts/vidhar/prometheus')
-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}"]; } |