From 293486c7b17a0455f3e33cf4d4c65382883ad644 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Mon, 15 Feb 2016 22:40:56 +0100 Subject: [PATCH] Remove old superfluous calls to setLastScrape(). This is called from within the scrape()->report() flow now. See https://github.com/prometheus/prometheus/pull/1394/files#r52945817 --- retrieval/target.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/retrieval/target.go b/retrieval/target.go index cefee430a..7f62798a6 100644 --- a/retrieval/target.go +++ b/retrieval/target.go @@ -433,7 +433,6 @@ func (t *Target) RunScraper(sampleAppender storage.SampleAppender) { ticker := time.NewTicker(lastScrapeInterval) defer ticker.Stop() - t.status.setLastScrape(time.Now()) t.scrape(sampleAppender) // Explanation of the contraption below: @@ -453,7 +452,6 @@ func (t *Target) RunScraper(sampleAppender storage.SampleAppender) { return case <-ticker.C: took := time.Since(t.status.LastScrape()) - t.status.setLastScrape(time.Now()) intervalStr := lastScrapeInterval.String()