mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 14:39:40 -08:00
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
This commit is contained in:
parent
a0078ec84c
commit
293486c7b1
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue