mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
Merge pull request #328 from prometheus/scrape-old-targets-on-sd-fail
Continue scraping old targets on SD fail.
This commit is contained in:
commit
b85ca7c657
1 changed files with 3 additions and 3 deletions
|
|
@ -127,10 +127,10 @@ func (p *TargetPool) runIteration(results chan<- *extraction.Result, interval ti
|
|||
if p.targetProvider != nil {
|
||||
targets, err := p.targetProvider.Targets()
|
||||
if err != nil {
|
||||
log.Printf("Error looking up targets: %s", err)
|
||||
return
|
||||
log.Printf("Error looking up targets, keeping old list: %s", err)
|
||||
} else {
|
||||
p.ReplaceTargets(targets)
|
||||
}
|
||||
p.ReplaceTargets(targets)
|
||||
}
|
||||
|
||||
p.RLock()
|
||||
|
|
|
|||
Loading…
Reference in a new issue