diff --git a/internal/cmd/oohelperd/handler.go b/internal/cmd/oohelperd/handler.go index 4b3d343..4129210 100644 --- a/internal/cmd/oohelperd/handler.go +++ b/internal/cmd/oohelperd/handler.go @@ -74,7 +74,7 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, req *http.Request) { elapsed := time.Since(started) metricWCTaskDurationSeconds.Observe(float64(elapsed.Seconds())) if err != nil { - metricRequestsCount.WithLabelValues("400", "measurement_failed").Inc() + metricRequestsCount.WithLabelValues("400", "wctask_failed").Inc() w.WriteHeader(400) return } diff --git a/internal/cmd/oohelperd/metrics.go b/internal/cmd/oohelperd/metrics.go index 73325ce..f8468b2 100644 --- a/internal/cmd/oohelperd/metrics.go +++ b/internal/cmd/oohelperd/metrics.go @@ -27,7 +27,7 @@ var ( // metricWCTaskDurationSeconds summarizes the duration of the web connectivity measurement task. metricWCTaskDurationSeconds = promauto.NewSummary(prometheus.SummaryOpts{ Name: "oohelperd_wctask_duration_seconds", - Help: "Summarizes the time to perform a test-helper measurement (in seconds)", + Help: "Summarizes the time to complete the Web Connectivity measurement task (in seconds)", // See https://grafana.com/blog/2022/03/01/how-summary-metrics-work-in-prometheus/ // // TODO(bassosimone,FedericoCeratto): investigate whether using