From f421ce0636621693d6d7f2d94e1cd78eb5ffb923 Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Fri, 16 Dec 2016 18:00:52 +0000 Subject: [PATCH] Remove label from prometheus_target_skipped_scrapes_total (#2289) This avoids it not being intialised, and breaking out by interval wasn't partiuclarly useful. Fixes #2269 --- retrieval/scrape.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/retrieval/scrape.go b/retrieval/scrape.go index 9114a4ad2..0b4e4a8e9 100644 --- a/retrieval/scrape.go +++ b/retrieval/scrape.go @@ -47,12 +47,11 @@ var ( }, []string{"interval"}, ) - targetSkippedScrapes = prometheus.NewCounterVec( + targetSkippedScrapes = prometheus.NewCounter( prometheus.CounterOpts{ Name: "prometheus_target_skipped_scrapes_total", Help: "Total number of scrapes that were skipped because the metric storage was throttled.", }, - []string{"interval"}, ) targetReloadIntervalLength = prometheus.NewSummaryVec( prometheus.SummaryOpts{ @@ -430,7 +429,7 @@ func (sl *scrapeLoop) run(interval, timeout time.Duration, errc chan<- error) { sl.report(start, time.Since(start), len(samples), err) last = start } else { - targetSkippedScrapes.WithLabelValues(interval.String()).Inc() + targetSkippedScrapes.Inc() } select {