Skip to content

Identify gnatsd by pid/hostname/ip/port #30

@glycerine

Description

@glycerine

I'm running two gnatsd on the same host, to allow blue-green deployment.

To aid in distinguishing which instance I am looking at, would be nice to indicate which port we are monitoring at the top of the nats-top display, as well as other details of the gnatsd process itself.

For example, currently:

NATS server version 0.7.5 (uptime: 7d6h15m45s) 
Server:
  Load: CPU:  0.1%  Memory: 13.7M  Slow Consumers: 0
  In:   Msgs: 1.1M  Bytes: 467.2M  Msgs/Sec: 0.0  Bytes/Sec: 0      
  Out:  Msgs: 1.5M  Bytes: 655.2M  Msgs/Sec: 0.0  Bytes/Sec: 0      
...

With proposed helpful distinguishing information in the top line:

NATS server version 0.7.5 (uptime: 7d6h15m45s)  pid:1078 on host: blue-green.org[10.0.0.12]  port:4443  https_port:18822
Server:
  Load: CPU:  0.1%  Memory: 13.7M  Slow Consumers: 0
  In:   Msgs: 1.1M  Bytes: 467.2M  Msgs/Sec: 0.0  Bytes/Sec: 0      
  Out:  Msgs: 1.5M  Bytes: 655.2M  Msgs/Sec: 0.0  Bytes/Sec: 0    
...  

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions