mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-06 15:12:11 -04:00
Fix wrong EOF error on successful target scraping
This commit is contained in:
parent
cb86a4300b
commit
cd28b88b08
1 changed files with 2 additions and 1 deletions
|
|
@ -544,7 +544,8 @@ func (t *Target) scrape(appender storage.SampleAppender) error {
|
|||
}
|
||||
|
||||
if err == io.EOF {
|
||||
return nil
|
||||
// Set err to nil since it is used in the scrape health recording.
|
||||
err = nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue