From b33f8a929e3d8b20f4ea6a019a78be85f286ea6b Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Sun, 22 Mar 2026 19:40:15 -0400 Subject: [PATCH] Fix monitoring on kiosk --- .../hosts/nixos/kiosk-entryway/monitoring.nix | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/modules/hosts/nixos/kiosk-entryway/monitoring.nix b/modules/hosts/nixos/kiosk-entryway/monitoring.nix index 8f44f00..d94dd47 100644 --- a/modules/hosts/nixos/kiosk-entryway/monitoring.nix +++ b/modules/hosts/nixos/kiosk-entryway/monitoring.nix @@ -32,27 +32,6 @@ in } ]; } - - # Nginx exporter - { - job_name = "nginx"; - static_configs = [ - { targets = [ "127.0.0.1:9113" ]; } - ]; - metric_relabel_configs = [ - { - source_labels = [ "__name__" ]; - regex = "go_.*"; - action = "drop"; - } - ]; - relabel_configs = [ - { - target_label = "instance"; - replacement = "${config.networking.hostName}"; - } - ]; - } ]; }; @@ -85,23 +64,11 @@ in enable = true; listenAddress = "127.0.0.1"; port = 9100; - enabledCollectors = [ - "systemd" - ]; extraFlags = [ "--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|run|tmp|var/lib/docker/.+)($|/)" "--collector.diskstats.device-exclude=^(loop|ram|fd|sr|dm-|nvme[0-9]n[0-9]p[0-9]+_crypt)$" ]; }; - - # Nginx exporter - using the built-in module - prometheus.exporters.nginx = { - enable = true; - listenAddress = "127.0.0.1"; - port = 9113; - scrapeUri = "https://127.0.0.1/server_status"; - sslVerify = false; - }; }; # ----------------------------