From 5d83d507b4e59d5841caab95c3ac7c25364a386f Mon Sep 17 00:00:00 2001 From: James Phillips Date: Wed, 20 Jul 2016 15:12:26 -0700 Subject: [PATCH] Adds consul info data into /v1/agent/self endpoint. --- command/agent/agent_endpoint.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command/agent/agent_endpoint.go b/command/agent/agent_endpoint.go index 83e2e94cb..d8c327529 100644 --- a/command/agent/agent_endpoint.go +++ b/command/agent/agent_endpoint.go @@ -16,6 +16,7 @@ type AgentSelf struct { Config *Config Coord *coordinate.Coordinate Member serf.Member + Stats map[string]map[string]string } func (s *HTTPServer) AgentSelf(resp http.ResponseWriter, req *http.Request) (interface{}, error) { @@ -31,6 +32,7 @@ func (s *HTTPServer) AgentSelf(resp http.ResponseWriter, req *http.Request) (int Config: s.agent.config, Coord: c, Member: s.agent.LocalMember(), + Stats: s.agent.Stats(), }, nil }