Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(summary): summary "sum" metric must also be sent as delta #101

Merged
merged 3 commits into from
Oct 26, 2020

Conversation

ardias
Copy link
Contributor

@ardias ardias commented Oct 23, 2020

in order to properly allow for average calculation, the "sum" attribute of the summary must also be delta

fixes #100

arvdias and others added 3 commits October 23, 2020 17:43
in order to properly allow for average calculation, the "sum" attribute of the summary must also be delta
@ardias ardias requested a review from a team October 23, 2020 16:37
Name: metric.name + "_sum",
Attributes: metric.attributes,
Count: 1,
Sum: sumCount.Value,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would thought that this value already come in the original prometheus metric and we just need it to send it as it is.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In prometheus it comes as a counter and so in order for us to be able to calculate the average (_sum/_count) we also need to send it as a delta, like we do for the _count

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.

Summary metric should do delta calculation for summary metric
3 participants