-
Notifications
You must be signed in to change notification settings - Fork 90
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
Add support for native histograms #125
Comments
So it looks like as a result of
Example output. |
The example output just shows classic buckets, not native buckets. The JSON rendering of |
Yea I realized that after the fact, but I forgot to update 😵💫 |
Also based on your comment here, I am curious about one thing I know that buckets are bounded with open an closed. It seems like the boundaries are open towards zero and closed as their absolute value increases. Does this change with offset? I am wondering if it's worth showing or not.
|
That's a good question. And there is an even more fundamental one: Do we want to represent the buckets like in the exposition format (and how it is done internally), i.e. with spans and schema etc., so that bucket boundaries are implicit and not really readable for humans? Or do we want to convert them into individual buckets with explicit boundaries? We are doing the latter for the query API, see https://prometheus.io/docs/prometheus/latest/querying/api/#native-histograms . This does have a solution to your question about open and closed boundaries. My current gut feeling is to make |
Just to clarify the nature of the boundaries in native histograms: The boundary that is farther away from zero is inclusive AKA closed, while the boundary that is closer to zero is exclusive AKA open. (Note that this implies that buckets for negative observations are "mirrored" in their behavior.) The zero bucket is a special case, it is closed on both ends. Also note that the format used in the Prometheus query API is "future proof" for upcoming other bucket schemas. It can describe arbitrary bucket boundaries (in terms of value, openness and closedness). |
Ok yes that looks better, array of arrays does make it a bit more compact too. I'd agree, let's try to keep it the same. |
@hdost are you still working on this? |
Sadly i don't have the time recently I'll put this up for someone else. |
And @jan--f has already picked it up. |
It's still an experimental feature, but it would be great if
prom2json
wouldn't choke on it.The text was updated successfully, but these errors were encountered: