Skip to content
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

Histogram is really a cumulative histogram #48

Closed
defsprite opened this issue Mar 7, 2017 · 3 comments
Closed

Histogram is really a cumulative histogram #48

defsprite opened this issue Mar 7, 2017 · 3 comments

Comments

@defsprite
Copy link

In contrast to other prometheus clients (i.e. golang) the histogram does not use disjoint buckets but cumulative values (see https://github.com/prometheus/client_ruby/blob/master/lib/prometheus/client/histogram.rb#L28)

While this is also a nice way to collect metrics, it should be named as CumulativeHistogram and Histogram should behave as other client libraries do, as this can be confusing, especially when using quantile conversion.

@brian-brazil
Copy link

This is the same as other clients, just implemented a different way.

@grobie
Copy link
Member

grobie commented Mar 7, 2017

All Prometheus histograms are cumulative by definition. The golang library does this later in the Write() method. The ruby client library will follow suit once #36 is implemented (e.g. after the big rewrite).

@grobie grobie closed this as completed Mar 7, 2017
@defsprite
Copy link
Author

I stand corrected. Sorry for bugging you and thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants