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

Store sum of events for different metrics #1254

Merged
merged 1 commit into from
Jan 9, 2018
Merged

Conversation

arteam
Copy link
Member

@arteam arteam commented Jan 5, 2018

Original contribution is in #1181

This is a rework of PR #1022 by @hashbrowncipher (and fixes @slovdahl's
issue #712). This PR is based on the 4.0-development branch, which has
evolved further than master.

The main differences are:

  • Introduction of a new Summing interface, which is implemented by
    Meter, Timer and Histogram
  • Reporting of the Summing.sum() is done as a long to avoid loss of precision on
    high values due to floating point properties
  • All reporters report the sum() property of the relevant metrics

The main purpose of storing the sum is to facilitate monitoring systems
that use raw ascending counters (e.g. Prometheus), and time-series
databases such as InfluxDB (see also @mevdschee comment)

@arteam arteam changed the title Introduce Summing to keep track of sum of events Store sum of events for different metrics Jan 5, 2018
@arteam arteam added this to the 5.0.0 milestone Jan 5, 2018
This is a rework of PR #1022 by @hashbrowncipher (and fixes @slovdahl's
issue #712). This PR is based on the 4.0-development branch, which has
evolved further than master.

The main differences are:

* Introduction of a new Summing interface, which is implemented by
Meter, Timer and Histogram
* Reporting of the Summing.sum() is done as a long to avoid loss of precision on
high values due to floating point properties
* All reporters report the sum() property of the relevant metrics

The main purpose of storing the sum is to facilitate monitoring systems
that use raw ascending counters (e.g. Prometheus), and time-series
databases such as InfluxDB (see also @mevdschee comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants