monitoring: add collector flags to nats exporter
Some checks failed
Run nix flake check / flake-check (push) Failing after 8m53s
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:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user