From f25cbdb0d1fae96e9697cb3b83942b8bcab22c8e Mon Sep 17 00:00:00 2001 From: Chelsea Holland Komlo Date: Mon, 11 Sep 2017 16:10:09 +0000 Subject: [PATCH] updated documentation --- command/agent/metrics_endpoint.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command/agent/metrics_endpoint.go b/command/agent/metrics_endpoint.go index d8ae838d5..b0702c38a 100644 --- a/command/agent/metrics_endpoint.go +++ b/command/agent/metrics_endpoint.go @@ -7,7 +7,8 @@ import ( "github.com/prometheus/client_golang/prometheus/promhttp" ) -// MetricsRequest returns metrics in JSON format +// MetricsRequest returns metrics for the agent. Metrics are JSON by default +// but Prometheus is an optional format. func (s *HTTPServer) MetricsRequest(resp http.ResponseWriter, req *http.Request) (interface{}, error) { if req.Method != "GET" { return nil, CodedError(405, ErrInvalidMethod)