Merge pull request #676 from hashicorp/f-node-id

Added the node id to agent info
This commit is contained in:
Diptanu Choudhury 2016-01-14 15:42:53 -08:00
commit 16be33eb5b
1 changed files with 1 additions and 0 deletions

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