Description
The Prometheus NATS Exporter collects metrics from NATS servers and exposes them to Prometheus for monitoring. It polls the server monitoring endpoints you choose, such as varz, connz, subz, routez and healthz, and combines them into a single Prometheus endpoint that defaults to port 7777 at /metrics. You point it at a NATS server by URL, over http or https when TLS is configured. Basic authentication can protect the metrics endpoint, using a username and password that you also set in your Prometheus configuration. You can build the exporter from source, or run it in Docker with the published image. It can also be embedded in your own program through its package, which lets you configure and start an exporter from code. For an approach that reads metrics through a System account instead of HTTP monitoring endpoints, the README points to NATS Surveyor. It is aimed at operators who run NATS and monitor it with Prometheus.…
Highlights
- Exports NATS server metrics to Prometheus
- Polls varz, connz, subz, routez and healthz
- Basic auth for the metrics endpoint
- Run in Docker or build from source
- Embeddable package for your own code
Ratings & Reviews
No ratings yet
Be the first to rate Prometheus Nats Exporter.
People also visit
Influxdb Exporter
A server that accepts InfluxDB metrics via the HTTP API and exports them
Prometheus Nats Exporter FAQ
What does it do?
It reads metrics from NATS server monitoring endpoints and serves them in a format Prometheus can scrape.
Which NATS endpoints does it read?
The README names varz, connz, subz, routez and healthz, and you choose which ones to poll.
Where are the metrics served?
By default at http://0.0.0.0:7777/metrics.
Can I protect the metrics endpoint?
Yes. Set --http_user and --http_pass, then configure basic_auth in Prometheus to match. The README advises a very low bcrypt cost, because scrapes happen often.
Is there an alternative?
NATS Surveyor reads metrics through a System account rather than HTTP monitoring endpoints.
What are the best Prometheus Nats Exporter alternatives?
Popular alternatives to Prometheus Nats Exporter include Nextcloud Exporter, Opnsense Exporter and Nats Surveyor. See all Prometheus Nats Exporter alternatives