From ca08161b54435e2207a8ac0dff516e4362a07079 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sat, 12 Sep 2020 00:14:04 +0300 Subject: [PATCH] lib/promscrape: typo fix --- lib/promscrape/scrapework.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/promscrape/scrapework.go b/lib/promscrape/scrapework.go index 7f64a00ee..fb3088a16 100644 --- a/lib/promscrape/scrapework.go +++ b/lib/promscrape/scrapework.go @@ -351,7 +351,7 @@ func (sw *scrapeWork) updateSeriesAdded(wc *writeRequestCtx) { func (sw *scrapeWork) finalizeSeriesAdded(lastScrapeSize int) int { seriesAdded := sw.seriesAdded sw.seriesAdded = 0 - if len(sw.seriesMap) > 2*lastScrapeSize { + if len(sw.seriesMap) > 4*lastScrapeSize { // Reset seriesMap, since it occupies more than 4x metrics collected during the last scrape. sw.seriesMap = make(map[uint64]struct{}, lastScrapeSize) }