diff options
-rw-r--r-- | odin.nix | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -534,17 +534,18 @@ | |||
534 | users.groups.ssl = {}; | 534 | users.groups.ssl = {}; |
535 | users.users.nginx.extraGroups = ["ssl"]; | 535 | users.users.nginx.extraGroups = ["ssl"]; |
536 | 536 | ||
537 | services.prometheus = { | 537 | services.prometheus.exporters = { |
538 | node = { | ||
539 | enable = true; | ||
540 | listenAddress = "localhost"; | ||
541 | enabledCollectors = [ "logind" "systemd" "processes" ]; | ||
542 | }; | ||
543 | }; | ||
544 | |||
545 | services.prometheus2 = { | ||
538 | enable = true; | 546 | enable = true; |
539 | webExternalUrl = "http://odin.asgard.yggdrasil/prometheus"; | 547 | webExternalUrl = "http://odin.asgard.yggdrasil/prometheus"; |
540 | listenAddress = "localhost:9090"; | 548 | listenAddress = "localhost:9090"; |
541 | exporters = { | ||
542 | node = { | ||
543 | enable = true; | ||
544 | listenAddress = "localhost"; | ||
545 | enabledCollectors = [ "logind" "systemd" "processes" ]; | ||
546 | }; | ||
547 | }; | ||
548 | globalConfig = { | 549 | globalConfig = { |
549 | scrape_interval = "5s"; | 550 | scrape_interval = "5s"; |
550 | scrape_timeout = "5s"; | 551 | scrape_timeout = "5s"; |