Skip to content

Commit

Permalink
fix: metric name
Browse files Browse the repository at this point in the history
  • Loading branch information
burningalchemist committed Oct 8, 2023
1 parent 69ef741 commit 9297634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9297634

Please sign in to comment.