You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prom Client should support sliding windows for summaries as described here and here.
This is needed for metrics like request duration where you don't want your request from a week ago influencing the quantiles that are calculated for now.
Without this feature, the exported quantiles don't really tell a good estimate about the state of the system right now, rendering them rather useless in many scenarios.
Activity
siimon commentedon Jul 20, 2018
We are using https://github.com/welch/tdigest for quantiles calculations, not sure if that library has support for setting max ages. If it does it should be trivial to implement, if not then it will be abit more work..
florianmutter commentedon Jul 23, 2018
As far as I can tell they don't have built in support. You would need to implement it in the prom client. Like the Java implementation you would need multiple t-digest buckets which have a given length and where the quantiles are calculated. Here is the official Java-Implementation which does that: https://github.com/prometheus/client_java/blob/master/simpleclient/src/main/java/io/prometheus/client/Summary.java#L70-L77 and https://github.com/prometheus/client_java/blob/master/simpleclient/src/main/java/io/prometheus/client/TimeWindowQuantiles.java
Wenzil commentedon Aug 30, 2018
Without this feature, the exported quantiles don't really tell a good estimate about the state of the system right now, rendering them rather useless in many scenarios.