Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upInverted histogram #2018
Comments
This comment has been minimized.
This comment has been minimized.
|
Absolute values aren't of much use, it's the ratios that you care about. In that respect there's no particular advantage to one over the other, and having two slightly different ways to get the same data would not be a net benefit to users. |
This comment has been minimized.
This comment has been minimized.
|
On 22 September 2016 at 09:43, Jean-Pierre Bergamin
That's not really a very complicated expression. Check out the Björn Rabenstein, Engineer SoundCloud Ltd. | Rheinsberger Str. 76/77, 10115 Berlin, Germany |
This comment has been minimized.
This comment has been minimized.
|
We graph the ratio of slow requests which ends up in "very" complicated queries like:
The "gt" buckets could even be mapped to the "le" buckets by the server so that the clients do not need to care about any histogram change.
It would just make using histograms easier to use in most of our usecases: tracking slow and large stuff. |
This comment has been minimized.
This comment has been minimized.
|
On 22 September 2016 at 13:08, Jean-Pierre Bergamin < The "gt" buckets could even be mapped to the "le" buckets by the server so
SoundCloud Ltd. | Rheinsberger Str. 76/77, 10115 Berlin, Germany |
brian-brazil
added
the
kind/question
label
Oct 26, 2016
brian-brazil
closed this
Oct 26, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
ractive commentedSep 22, 2016
The current historgram metric type is a good tool to calculate SLAs or to generally report how much was "good".
But common usecases are e.g. tracking slow or large requests etc. where you want to report how much was "not good". And this is quite cumbersome with a histogram. To get e.g. the rate of requests taking more then 1s you'd need to do:
If you could define a histogram with buckets that contain datapoints that are greater then ("gt") a certain threshold, this query would be much simpler.
E.g. having these buckets:
You could track requests > 1s only with:
The {gt="0"} bucket would be similar to the {le="+Inf"} acting as a lower boundary matching all values not already catched by another bucket. The client libraries would need to make sure that a bucket with gt=0 exists.
I think this would be a nice addition to prometheus making some common tasks easier.