Fix prometheus error message (#4745)

This commit is contained in:
Paul O'Connor 2018-10-03 22:47:56 +01:00 committed by Jack Pearkes
parent 2fac2d1439
commit 964f1c3bb6
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ func (s *HTTPServer) AgentMetrics(resp http.ResponseWriter, req *http.Request) (
if enablePrometheusOutput(req) {
if s.agent.config.Telemetry.PrometheusRetentionTime < 1 {
resp.WriteHeader(http.StatusUnsupportedMediaType)
fmt.Fprint(resp, "Prometheus is not enable since its retention time is not positive")
fmt.Fprint(resp, "Prometheus is not enabled since its retention time is not positive")
return nil, nil
}
handlerOptions := promhttp.HandlerOpts{