From 92976347ce80a6bf46aa48204661fe4c697ff3ea Mon Sep 17 00:00:00 2001 From: Sergei Zyubin Date: Sun, 8 Oct 2023 00:13:31 +0200 Subject: [PATCH] fix: metric name --- exporter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter.go b/exporter.go index ed0be490..50417144 100644 --- a/exporter.go +++ b/exporter.go @@ -183,8 +183,8 @@ func (e *exporter) UpdateTarget(target []Target) { // registerSvcMetrics registers the metrics for the exporter itself. func registerSvcMetrics() *prometheus.CounterVec { scrapeErrors := prometheus.NewCounterVec(prometheus.CounterOpts{ - Name: "scrape_errors", - Help: "Total number of scrape errors per job, target, collector and query.", + Name: "scrape_errors_total", + Help: "Total number of scrape errors per job, target, collector and query", }, svcMetricLabels) SvcRegistry.MustRegister(scrapeErrors) return scrapeErrors