summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2019-05-07 00:25:34 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2019-05-07 00:25:34 +0200
commit4977b301a358c6334e5afc57523b79a8009c7d23 (patch)
tree4df87174ca73e81c3593be99266fba3446d82355
parentccccdf3c77de4f6784314a8728b6c227a98ba462 (diff)
downloadnixos-4977b301a358c6334e5afc57523b79a8009c7d23.tar
nixos-4977b301a358c6334e5afc57523b79a8009c7d23.tar.gz
nixos-4977b301a358c6334e5afc57523b79a8009c7d23.tar.bz2
nixos-4977b301a358c6334e5afc57523b79a8009c7d23.tar.xz
nixos-4977b301a358c6334e5afc57523b79a8009c7d23.zip
...
-rw-r--r--odin.nix17
1 files changed, 9 insertions, 8 deletions
diff --git a/odin.nix b/odin.nix
index b1fa8193..f3516007 100644
--- a/odin.nix
+++ b/odin.nix
@@ -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";