dcu / mongodb_exporter

MongoDB exporter for prometheus.io
MIT License
353 stars 216 forks source link

[fix] update to work w/ latest prom client code #44

Closed deepthawtz closed 7 years ago

deepthawtz commented 7 years ago

Fixes: #40

Prom client code changed the Counter Set() method to Add()

nistude commented 7 years ago

Didn't Set() set the absolute value while Add() increments the value?

https://github.com/prometheus/client_golang/commit/2fee50beaa152342e8347c41edf2202c3bd5f858#commitcomment-19628916 contains an explanation of the proper migration.

deepthawtz commented 7 years ago

ah, breaking change introduced. Looks like mongodb_exporter will need to either vendor prometheus client at v0.8.0 or take on a larger refactor