Usage of /usr/bin/prometheus-nats-exporter:
-D Enable debug log level.
-DV
Enable debug and trace log levels.
-V Enable trace log level.
-a string
Network host to listen on. (default "0.0.0.0")
-accountz
Get account details metrics.
-accstatz
Get accstatz metrics.
-addr string
Network host to listen on. (default "0.0.0.0")
-connz
Get connection metrics.
-connz_detailed connz
Get detailed connection metrics for each client. Enables flag connz implicitly.
-gatewayz
Get gateway metrics.
-healthz
Get health metrics.
-healthz_js_enabled_only
Get health metrics with js-enabled-only=true.
-healthz_js_server_only
Get health metrics with js-server-only=true.
-http_pass string
Set the password for HTTP scrapes. NATS bcrypt supported.
-http_user string
Enable basic auth and set user name for HTTP scrapes.
-jsz string
Select JetStream metrics to filter (e.g streams, accounts, consumers)
-jsz_consumer_meta_keys string
Select JetStream consumer metadata to output (comma separated)
-jsz_stream_meta_keys string
Select JetStream stream metadata to output (comma separated)
-l string
Log file name.
-leafz
Get leaf metrics.
-log string
Log file name.
-p int
Port to listen on. (default 7777)
-path string
URL path from which to serve scrapes. (default "/metrics")
-port int
Port to listen on. (default 7777)
-prefix string
Replace the default prefix for all the metrics.
-r string
Remote syslog address to write log statements.
-remote_syslog string
Write log statements to a remote syslog.
-ri int
Interval in seconds to retry NATS Server monitor URL. (default 30)
-routez
Get route metrics.
-s Write log statements to the syslog.
-subz
Get subscription metrics.
-syslog
Write log statements to the syslog.
-tlscacert string
Client certificate CA for verification (used with HTTPS).
-tlscert string
Server certificate file (Enables HTTPS).
-tlskey string
Private key for server certificate (used with HTTPS).
-use_internal_server_id
Enables using ServerID from /varz
-use_internal_server_name
Enables using ServerName from /varz
-varz
Get general metrics.
-version
Show exporter version and exit.
Options (39)
| Option | Description | Source |
|---|---|---|
-D | Enable debug log level. | help |
-DV | Enable debug and trace log levels. | help |
-V | Enable trace log level. | help |
-a string | Network host to listen on. | help |
-accountz | Get account details metrics. | help |
-accstatz | Get accstatz metrics. | help |
-addr string | Network host to listen on. | help |
-connz | Get connection metrics. | help |
-connz_detailed connz | Get detailed connection metrics for each client. | help |
-gatewayz | Get gateway metrics. | help |
-healthz | Get health metrics. | help |
-healthz_js_enabled_only | Get health metrics with js-enabled-only=true. | help |
-healthz_js_server_only | Get health metrics with js-server-only=true. | help |
-http_pass string | Set the password for HTTP scrapes. | help |
-http_user string | Enable basic auth and set user name for HTTP scrapes. | help |
-jsz string | Select JetStream metrics to filter (e.g streams, accounts, consumers) | help |
-jsz_consumer_meta_keys string | Select JetStream consumer metadata to output (comma separated) | help |
-jsz_stream_meta_keys string | Select JetStream stream metadata to output (comma separated) | help |
-l string | Log file name. | help |
-leafz | Get leaf metrics. | help |
-log string | Log file name. | help |
-p int | Port to listen on. | help |
-path string | URL path from which to serve scrapes. | help |
-port int | Port to listen on. | help |
-prefix string | Replace the default prefix for all the metrics. | help |
-r string | Remote syslog address to write log statements. | help |
-remote_syslog string | Write log statements to a remote syslog. | help |
-ri int | Interval in seconds to retry NATS Server monitor URL. | help |
-routez | Get route metrics. | help |
-s | Write log statements to the syslog. | help |
-subz | Get subscription metrics. | help |
-syslog | Write log statements to the syslog. | help |
-tlscacert string | Client certificate CA for verification (used with HTTPS). | help |
-tlscert string | Server certificate file (Enables HTTPS). | help |
-tlskey string | Private key for server certificate (used with HTTPS). | help |
-use_internal_server_id | Enables using ServerID from /varz | help |
-use_internal_server_name | Enables using ServerName from /varz | help |
-varz | Get general metrics. | help |
-version | Show exporter version and exit. | help |