From add2bee8966b1e696308549053abde58ff14abf8 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 12 Dec 2023 14:55:48 +0100 Subject: [PATCH] Disable unused monitoring collectors --- modules/monitoring.nix | 18 ------------------ modules/webstack.nix | 12 ------------ 2 files changed, 30 deletions(-) diff --git a/modules/monitoring.nix b/modules/monitoring.nix index 41ee023..70137e2 100644 --- a/modules/monitoring.nix +++ b/modules/monitoring.nix @@ -53,38 +53,20 @@ with pkgs; enabledCollectors = [ "systemd" ]; port = 9002; }; - zfs.enable = true; - wireguard.enable = true; postgres.enable = true; smartctl.enable = true; - dnsmasq.enable = true; - nginx = { - enable = true; - scrapeUri = "http://localhost:8282/nginx_status"; - }; }; scrapeConfigs = [{ job_name = "zion"; static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" - "localhost:${toString config.services.prometheus.exporters.zfs.port}" - "localhost:${ - toString config.services.prometheus.exporters.wireguard.port - }" "localhost:${ toString config.services.prometheus.exporters.postgres.port }" "localhost:${ toString config.services.prometheus.exporters.smartctl.port }" - "localhost:${ - toString config.services.prometheus.exporters.dnsmasq.port - }" - "localhost:${ - toString config.services.prometheus.exporters.nginx.port - }" - "localhost:9641" ]; }]; }]; diff --git a/modules/webstack.nix b/modules/webstack.nix index 4cbe2a5..4801e62 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -159,18 +159,6 @@ proxyWebsockets = true; }; }; - "/nginx_status/" = { - listen = [{ - addr = "127.0.0.1"; - port = 8282; - }]; - extraConfig = '' - stub_status on; - access_log off; - allow 127.0.0.1; - deny all; - ''; - }; "nightscout.coolneng.duckdns.org" = { enableACME = true; forceSSL = true;