{"repo":"nats-io/prometheus-nats-exporter","free":true,"listed":false,"github":"https://github.com/nats-io/prometheus-nats-exporter","clone":"git clone https://github.com/nats-io/prometheus-nats-exporter.git","description":"A Prometheus exporter for NATS metrics","language":"Go","stars":495,"topics":["prometheus","nats","publish-subscribe","monitoring","nats-client","grafana-dashboard","nats-server","nats-streaming"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"[![License][License-Image]][License-Url] ![Build][Build-Status-Image] [![Coverage][Coverage-Image]][Coverage-Url] The Prometheus NATS Exporter The Prometheus NATS Exporter consists of both a package and an application that exports NATS server metrics to Prometheus for monitoring. The exporter aggregates metrics from the NATS server server monitoring endpoints you choose (varz, connz, subz, routez, healthz...) into a single Prometheus exporter endpoint. For an alternative approach that uses a System account instead of HTTP monitoring endpoints, see also: NATS Surveyor Build If you want to run tests, you can do this. Run Start the prometheus-nats-exporter executable, and poll the varz metrics endpoints of the NATS server located on localhost configured with a monitor port of 5555 . To run with docker, you can use the following image: Usage The URL parameter The url parameter is a standard url. Both http and https (when TLS is configured) is supported. e.g. http://denver1.foobar.com:8222 Monitoring The NATS Prometheus exporter exposes metrics through an HTTP interface, and will default to: http://0.0.0.0:7777/metrics . When --http user and --http pass is used, you will need to set the username password in prometheus. See basic auth in the prometheus configuration documentation. If using a bcrypted password use a very low cost as scrapes occur frequently. It will return output that is readable by Prometheus. The returned data looks like this: The NATS Prometheus Exporter API The ","default_branch":null,"files":null,"tree":[],"storefront":"/r/nats-io","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nats-io/prometheus-nats-exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}