From 4d8b94ce83c233a370202bae28889843eef959aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Thu, 5 Feb 2026 22:23:30 +0100 Subject: [PATCH] monitoring: add collector flags to nats exporter The exporter requires explicit collector flags to specify what metrics to collect. Co-Authored-By: Claude Opus 4.5 --- services/nats/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/nats/default.nix b/services/nats/default.nix index 2971a10..20b7efa 100644 --- a/services/nats/default.nix +++ b/services/nats/default.nix @@ -8,6 +8,11 @@ services.prometheus.exporters.nats = { enable = true; url = "http://localhost:8222"; + extraFlags = [ + "-varz" # General server info + "-connz" # Connection info + "-jsz=all" # JetStream info + ]; }; services.nats = {