Added the node id to agent info
This commit is contained in:
parent
39b263ed7f
commit
e18f9d787e
|
@ -339,6 +339,7 @@ func (c *Client) Stats() map[string]map[string]string {
|
|||
|
||||
stats := map[string]map[string]string{
|
||||
"client": map[string]string{
|
||||
"node_id": c.Node().ID,
|
||||
"known_servers": toString(uint64(len(c.Servers()))),
|
||||
"num_allocations": toString(uint64(numAllocs)),
|
||||
"last_heartbeat": fmt.Sprintf("%v", time.Since(c.lastHeartbeat)),
|
||||
|
|
Loading…
Reference in a new issue