diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-05-07 00:25:34 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-05-07 00:25:34 +0200 |
| commit | 4977b301a358c6334e5afc57523b79a8009c7d23 (patch) | |
| tree | 4df87174ca73e81c3593be99266fba3446d82355 | |
| parent | ccccdf3c77de4f6784314a8728b6c227a98ba462 (diff) | |
| download | nixos-4977b301a358c6334e5afc57523b79a8009c7d23.tar nixos-4977b301a358c6334e5afc57523b79a8009c7d23.tar.gz nixos-4977b301a358c6334e5afc57523b79a8009c7d23.tar.bz2 nixos-4977b301a358c6334e5afc57523b79a8009c7d23.tar.xz nixos-4977b301a358c6334e5afc57523b79a8009c7d23.zip | |
...
| -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"; |
