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 upAdd non-cumulative distribution type #4863
Comments
This comment has been minimized.
This comment has been minimized.
cheftako
commented
Nov 13, 2018
|
+1 |
1 similar comment
This comment has been minimized.
This comment has been minimized.
logicalhan
commented
Nov 13, 2018
|
+1 |
This comment has been minimized.
This comment has been minimized.
lavalamp
commented
Nov 13, 2018
|
Additional color: you can almost do this with the existing summary in two different ways:
Unfortunately neither of these (afaict) allow for concurrency guarantees around making observations, so the monitoring software could well take a reading while you're halfway through adding observations. |
This comment has been minimized.
This comment has been minimized.
|
PromQL already supports this via the |
This comment has been minimized.
This comment has been minimized.
|
Closing this as this is not an issue about the Prometheus server, but about how to expose this via client libraries (which is already possible). |
mml commentedNov 13, 2018
Proposal
Sometimes it's valuable to report a distribution that's not cumulative. Typical cumulative distributions aggregate approximately all observations since start time, and provide ways for us to examine rates and deltas to figure out things like QPS or "99th percentile latency in the last 30m".
Non-cumulative distribution types are like gauges. Example usages/observations: heap characteristics in a malloc implementation (i.e. "what are the counts and sizes of free objects"), or for a work queue, the amount of time each item has been in the queue.