Tutorial
Prerequisites
1. Install nats-top
go install github.com/nats-io/nats-top@latestsudo -E go install github.com/nats-io/nats-top2. Start the NATS server with monitoring enabled
nats-server -m 82223. Start nats-top
nats-topnats-server version 0.6.6 (uptime: 2m2s)
Server:
Load: CPU: 0.0% Memory: 6.3M Slow Consumers: 0
In: Msgs: 0 Bytes: 0 Msgs/Sec: 0.0 Bytes/Sec: 0
Out: Msgs: 0 Bytes: 0 Msgs/Sec: 0.0 Bytes/Sec: 0
Connections: 0
HOST CID SUBS PENDING MSGS_TO MSGS_FROM BYTES_TO BYTES_FROM LANG VERSION4. Run NATS client programs
5. Check nats-top for statistics
6. Sort nats-top statistics
7. Use different sort options
8. Display the registered subscriptions.
9. Quit nats-top
10. Restart nats-top with a specified query
Last updated
Was this helpful?