Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Added _delta in Histogram and Summary#413

Closed
ratanboddu wants to merge 1 commit intoprometheus:masterprometheus/client_python:masterfrom
ratanboddu:masterratanboddu/client_python:masterCopy head branch name to clipboard
Closed

Added _delta in Histogram and Summary#413
ratanboddu wants to merge 1 commit intoprometheus:masterprometheus/client_python:masterfrom
ratanboddu:masterratanboddu/client_python:masterCopy head branch name to clipboard

Conversation

@ratanboddu
Copy link

@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.

Signed-off-by: Ratan Boddu <ratan.boddu@lntinfotech.com>
@brian-brazil
Copy link
Contributor

If you want this you can use a Gauge. This is not generally useful, as it's only a arbitrary observation.

@ratanboddu
Copy link
Author

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.

@ratanboddu
Copy link
Author

Is there a workaround via which I'll be able to get all the Summary details as well as get the delta ?

@brian-brazil
Copy link
Contributor

brian-brazil commented May 22, 2019 via email

@ratanboddu
Copy link
Author

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.

@brian-brazil
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.