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

Use Histogram, not Summary, in WAI #18

Merged
merged 5 commits into from Jul 2, 2017
Merged

Conversation

jml
Copy link
Collaborator

@jml jml commented Jul 2, 2017

Tiny follow-on from #17, but logically independent. Probably shouldn't be reviewed until after #16 and #17.

Uses Histograms, not Summary, in WAI, which allows metrics gathered from multiple processes to be aggregated meaningfully.

This is kind of a breaking change, as queries that work on summaries don't work on histograms. I suggest combining this change with #17 in a release, so that at least at the PromQL level, we change a name at the same time as changing the semantics.

Full discussion of summaries vs histograms at https://prometheus.io/docs/practices/histograms/

jml added 5 commits July 2, 2017 11:51
https://prometheus.io/docs/practices/histograms/ has a full discussion,
but the gist is that histograms can be aggregated across processes whereas
summaries cannot.

This makes histograms more useful in environments where there is more than one
process handling web requests, which is perhaps the more common case.
@jml
Copy link
Collaborator Author

jml commented Jul 2, 2017

Test failure looks like an unrelated intermittent failure due to summary approximation.

@fimad fimad merged commit 8d8a804 into fimad:master Jul 2, 2017
@fimad
Copy link
Owner

fimad commented Jul 2, 2017

Agreed, the summary tests are unfortunately a bit flaky :(

fimad added a commit that referenced this pull request Jul 2, 2017
@fimad
Copy link
Owner

fimad commented Jul 2, 2017

Just pushed v0.2.0 with these changes. Thanks for all the contributions!

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

Successfully merging this pull request may close these issues.

None yet

2 participants