Skip to content

Commit 217d470

Browse files
committed
e.stats.Error.Set(0)
1 parent 163327f commit 217d470

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

collector/exporter.go

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
9393
}
9494

9595
func (e *Exporter) scrape(ch chan<- prometheus.Metric) {
96+
e.stats.Error.Set(0)
9697
e.stats.TotalScrapes.Inc()
9798
var err error
9899

0 commit comments

Comments
 (0)