Bump docker/bake-action from 7.1.0 to 7.2.0 (#425)
Bumps docker/bake-action from 7.1.0 to 7.2.0.
updated-dependencies:
- dependency-name: docker/bake-action dependency-version: 7.2.0 dependency-type: direct:production update-type: version-update:semver-minor …
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
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
varzmetrics endpoints of the NATS server located onlocalhostconfigured with a monitor port of5555.To run with docker, you can use the following image:
Usage
The URL parameter
The url parameter is a standard url. Both
httpandhttps(when TLS is configured) is supported.e.g.
http://denver1.foobar.com:8222Monitoring
The NATS Prometheus exporter exposes metrics through an HTTP interface, and will default to:
http://0.0.0.0:7777/metrics.When
--http_userand--http_passis used, you will need to set the username password in prometheus. Seebasic_authin 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 NATS prometheus exporter also provides a simple and easy to use API that allows it to run embedded in your code.
Import the exporter package
API Usage
In just a few lines of code, configure and launch an instance of the exporter.
Monitoring Walkthrough
For additional information, refer to the walkthrough of monitoring NATS with Prometheus and Grafana.