From 6b7f03911ede148f38360ad2c3c637e6305dbb95 Mon Sep 17 00:00:00 2001 From: Paul O'Connor <465717+pauloconnor@users.noreply.github.com> Date: Wed, 3 Oct 2018 22:47:56 +0100 Subject: [PATCH] Fix prometheus error message (#4745) --- agent/agent_endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/agent_endpoint.go b/agent/agent_endpoint.go index 33bd610f8f..499567e315 100644 --- a/agent/agent_endpoint.go +++ b/agent/agent_endpoint.go @@ -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{