From cd28b88b08de98b2cca24269742b1bc256eca1ff Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Mon, 15 Feb 2016 17:23:04 +0100 Subject: [PATCH] Fix wrong EOF error on successful target scraping --- retrieval/target.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }