Merge branch 'dev-2.0' of github.com:prometheus/prometheus into dev-2.0

This commit is contained in:
Fabian Reinartz 2017-09-07 14:15:12 +02:00
commit a8887f46dc

View file

@ -637,9 +637,12 @@ mainLoop:
var b []byte
if scrapeErr == nil {
b = buf.Bytes()
} else if errc != nil {
} else {
sl.l.With("err", scrapeErr.Error()).Debug("scrape failed")
if errc != nil {
errc <- scrapeErr
}
}
// A failed scrape is the same as an empty scrape,
// we still call sl.append to trigger stale markers.