OS Manuals

/usr/bin/nats-top

A top-like tool for monitoring NATS servers.

From nats-top 0.6.5-r1 (os), captured 2026-11-05 by running nats-top --help (exit 0). permalink

Also provided by 1 other package version
usage: nats-top [-s server] [-m http_port] [-ms https_port] [-n num_connections] [-d delay_secs] [-r max] [-o FILE] [-l DELIMITER] [-sort by]
                [-cert FILE] [-key FILE] [-cacert FILE] [-k] [-b] [-lookup] [-v|--version] [-u|--display-subscriptions-column]

  -b	Display traffic in raw bytes.
  -cacert string
    	Root CA cert
  -cert string
    	Client cert in case NATS server using TLS
  -d int
    	Refresh interval in seconds. (default 1)
  -display-subscriptions-column
    	Display subscriptions-column upon launch.
  -k	Skip verifying server certificate
  -key string
    	Client private key in case NATS server using TLS
  -l string
    	Specifies the delimiter to use for the output file when the '-o' parameter is used. By default this option is unset which means that standard grid-like plain-text output will be used.
  -lookup
    	Enable client addresses DNS lookup.
  -m int
    	The NATS server monitoring port. (default 8222)
  -ms int
    	The NATS server secure monitoring port.
  -n int
    	Maximum number of connections to poll. (default 1024)
  -o string
    	Save the very first nats-top snapshot to the given file and exit. If '-' is passed then the snapshot is printed the standard output.
  -r int
    	Specifies the maximum number of times nats-top should refresh nats-stats before exiting (0 for no limit).
  -s string
    	The nats server host. (default "127.0.0.1")
  -sort string
    	Value for which to sort by the connections. (default "cid")
  -u	Same as --display-subscriptions-column.
  -v	Same as --version.
  -version
    	Show nats-top version.
Options (19)
OptionDescriptionSource
-bDisplay traffic in raw bytes.help
-cacert stringRoot CA certhelp
-cert stringClient cert in case NATS server using TLShelp
-d intRefresh interval in seconds.help
-display-subscriptions-columnDisplay subscriptions-column upon launch.help
-kSkip verifying server certificatehelp
-key stringClient private key in case NATS server using TLShelp
-l stringSpecifies the delimiter to use for the output file when the '-o' parameter is used.help
-lookupEnable client addresses DNS lookup.help
-m intThe NATS server monitoring port.help
-ms intThe NATS server secure monitoring port.help
-n intMaximum number of connections to poll.help
-o stringSave the very first nats-top snapshot to the given file and exit.help
-r intSpecifies the maximum number of times nats-top should refresh nats-stats before exiting (0 for no limit).help
-s stringThe nats server host.help
-sort stringValue for which to sort by the connections.help
-uSame as --display-subscriptions-column.help
-vSame as --version.help
-versionShow nats-top version.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.