monitoring: add collector flags to nats exporter
Some checks failed
Run nix flake check / flake-check (push) Failing after 8m53s

The exporter requires explicit collector flags to specify what
metrics to collect.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-05 22:23:30 +01:00
parent 8b0a4ea33a
commit 4d8b94ce83

View File

@@ -8,6 +8,11 @@
services.prometheus.exporters.nats = { services.prometheus.exporters.nats = {
enable = true; enable = true;
url = "http://localhost:8222"; url = "http://localhost:8222";
extraFlags = [
"-varz" # General server info
"-connz" # Connection info
"-jsz=all" # JetStream info
];
}; };
services.nats = { services.nats = {