updated documentation

This commit is contained in:
Chelsea Holland Komlo
2017-09-11 16:10:09 +00:00
parent 03b24df193
commit f25cbdb0d1

View File

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