mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 22:49:40 -08:00
Merge pull request #1395 from prometheus/fabxc/eof
Fix wrong EOF error on successful target scraping
This commit is contained in:
commit
f1101590ee
|
@ -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