Added _delta in Histogram and Summary#413
Added _delta in Histogram and Summary#413ratanboddu wants to merge 1 commit intoprometheus:masterprometheus/client_python:masterfrom
Conversation
Signed-off-by: Ratan Boddu <ratan.boddu@lntinfotech.com>
|
If you want this you can use a Gauge. This is not generally useful, as it's only a arbitrary observation. |
|
I actually had a constraint and had to use Summary. So, was looking for a way to to do it using Summary and couldn't find one, hence I've made the following changes. |
|
Is there a workaround via which I'll be able to get all the Summary details as well as get the delta ? |
|
Use a Gauge for this, though it's of very little use statistically.
…On Wed 22 May 2019, 20:12 Ratan Boddu, ***@***.***> wrote:
Is there a workaround via which I'll be able to get all the Summary
details as well as get the delta ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#413?email_source=notifications&email_token=ABWJG5TJ6YXK5HPCY2RSTQLPWWEJ5A5CNFSM4HOU4JE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV73J4Q#issuecomment-494908658>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABWJG5W4RI5NJEVGH7ZBOVLPWWEJ5ANCNFSM4HOU4JEQ>
.
|
|
Yes, Gauge is not as useful as Summary. So, was wondering if there could be a way to add something to Summary so as to be able to get much better analysis of the data at hand. Adding the delta field to Summary could very well help a user with their analysis. |
|
This isn't something that'd be generally useful, and data model changes like this aren't something that can just be changed in one client. |
@brian-brazil
Added a new field in Summary and Histogram named "_delta". As, "_sum" is cumulative, it's difficult to get the value("amount" in this case) by which the graph has increased and use those values for plotting a graph. Hence, "_delta" will contain the "amount" which can be used for plotting a graph and gaining much better insights.