NATS
Plugin: go.d.plugin Module: nats
Overview
This collector monitors the activity and performance of NATS servers.
It sends HTTP requests to the NATS HTTP server's dedicated monitoring port.
This collector is supported on all platforms.
This collector supports collecting metrics from multiple instances of this integration, including remote instances.
Default Behavior
Auto-Detection
The collector can automatically detect NATS instances running on:
- localhost that are listening on port 8222
- within Docker containers
Limits
The default configuration for this integration does not impose any limits on data collection.
Performance Impact
The default configuration for this integration is not expected to impose a significant performance impact on the system.
Metrics
Metrics grouped by scope.
The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.
Per server
These metrics refer to NATS servers.
Labels:
| Label | Description |
|---|---|
| cluster_name | The name of the NATS cluster this server belongs to. |
| server_id | A unique identifier for a server within the NATS cluster. |
| server_name | The configured name of the NATS server. |
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| nats.server_traffic | received, sent | bytes/s |
| nats.server_messages | received, sent | messages/s |
| nats.server_connections | active | connections |
| nats.server_connections_rate | connections | connections/s |
| nats.server_health_probe_status | ok, error | status |
| nats.server_cpu_usage | used | percent |
| nats.server_mem_usage | used | bytes |
| nats.server_uptime | uptime | seconds |
| nats.jetstream_streams | active | streams |
| nats.jetstream_streams_storage_bytes | used | bytes |
| nats.jetstream_streams_storage_messages | stored | messaged |
| nats.jetstream_consumers | active | consumers |
| nats.jetstream_api_requests | requests | requests/s |
| nats.jetstream_api_errors | errors | errors/s |
| nats.jetstream_api_inflight | inflight | requests |
| nats.jetstream_memory_used | used | bytes |
| nats.jetstream_storage_used | used | bytes |