Added the node id to agent info

This commit is contained in:
Diptanu Choudhury 2016-01-14 15:42:30 -08:00
parent 39b263ed7f
commit e18f9d787e

View file

@ -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)),