Skip to content

Commit

Permalink
Fix wrong metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
dewey committed Aug 18, 2018
1 parent aeb9060 commit 036fc55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (r *Runner) Start() {

duration := time.Since(start)
scrapesDurationHistogram.WithLabelValues(cp.String()).Observe(duration.Seconds())
pluginItemsScraped.WithLabelValues(cp.String()).Add(float64(ss.Items))
pluginItemsScraped.WithLabelValues(cp.String()).Set(float64(ss.Items))
log.With(r.l, "plugin", cp.String()).Log("msg", "scrape finished", "feed_items", ss.Items)
}(cp)
}
Expand Down

0 comments on commit 036fc55

Please sign in to comment.