-
Notifications
You must be signed in to change notification settings - Fork 886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export counters as counters #178
Comments
Thanks for raising the issue. |
Actually, it might be a lot more easy change than I initially thought. Replacing this part: redis_exporter/exporter/redis.go Lines 905 to 916 in 8d260bf
with something that uses NewCounterFunc might do the trick. |
@jkohen IMO Gauges are more appropriate for common case (redis values can go up and down) only ones that get pass making are included redis_exporter/exporter/redis.go Lines 335 to 341 in 56bddc2
@oliver006 perhaps |
|
Thank you, Oliver! @mtanda FYI, this has been closed. In reference to Stackdriver/stackdriver-prometheus#14 you filed. |
@jkohen That's fantastic! Dear Oliver, |
I work on the Stackdriver integration with Prometheus and a user filed an issue because this redis exporter exports counters as gauges, and Stackdriver doesn't allow rate computations over gauge. I know this isn't a major problem for Prometheus (it can mostly cause glitches on process restart), but would you consider fixing the setMetrics method to set the right metric type? Any workaround on our side will be hard to maintain. Thanks!
The text was updated successfully, but these errors were encountered: