diff --git a/retrieval/target.go b/retrieval/target.go index a706c9cf6..d0e6d336b 100644 --- a/retrieval/target.go +++ b/retrieval/target.go @@ -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 }