Configuring Monitoring
The NATS monitoring endpoints support and CORS, making it easy to create single page monitoring web applications.
Example:
Output
Enable monitoring from the configuration file
You can also enable monitoring using the configuration file as follows:
Binding to localhost
as well:
Monitoring Tools
In addition to writing custom monitoring tools, you can monitor nats-server in Prometheus. The allows you to configure the metrics you want to observe and store in Prometheus. There’s a sample Grafana dashboard that you can use to visualize the server metrics.