diff --git a/lib/promscrape/scrapework.go b/lib/promscrape/scrapework.go index a516354f31..3fe5c4d437 100644 --- a/lib/promscrape/scrapework.go +++ b/lib/promscrape/scrapework.go @@ -832,9 +832,9 @@ func (sw *scrapeWork) sendStaleSeries(lastScrape, currScrape string, timestamp i if addAutoSeries { am := &autoMetrics{} sw.addAutoMetrics(am, wc, timestamp) + setStaleMarkersForRows(wc.writeRequest.Timeseries) + sw.pushData(sw.Config.AuthToken, &wc.writeRequest) } - setStaleMarkersForRows(wc.writeRequest.Timeseries) - sw.pushData(sw.Config.AuthToken, &wc.writeRequest) } func setStaleMarkersForRows(series []prompbmarshal.TimeSeries) {