Browse Source

Merge pull request #2199 from hashicorp/f-stats

Adds consul info data into /v1/agent/self endpoint.
pull/2201/head
James Phillips 8 years ago committed by GitHub
parent
commit
49424aefa0
  1. 2
      command/agent/agent_endpoint.go

2
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
}

Loading…
Cancel
Save