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

[aggregators/histogram] Add option to reset buckets on flush #5641

Merged
merged 5 commits into from
Apr 1, 2019

Conversation

oplehto
Copy link
Contributor

@oplehto oplehto commented Mar 27, 2019

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

For some use cases it is desireable for the histogram buckets to be reset between operations.

A good example is collecting data from processes using the PID as a tag where the cardinality may become very high and series can become "stale". With the current implementation, series for already dead processes will still continue to be reported on.

This functionality could be further improved by adding a reset interval and per-subconfig reset options but I expect that for most use cases just having everything reset on flush is a simple and effective solution.

@vlamug It would be good to hear your thoughts on this

@danielnelson danielnelson added this to the 1.11.0 milestone Mar 27, 2019
@danielnelson danielnelson added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Mar 27, 2019
Copy link
Contributor

@danielnelson danielnelson left a comment

Choose a reason for hiding this comment

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

Looks perfect. Perhaps in the future, not in this pr, we can add a duration option where a series would be cleared after some period of inactivity. This might give the best of both worlds.

@danielnelson danielnelson merged commit 13a00ee into influxdata:master Apr 1, 2019
@oplehto oplehto deleted the reset_histogram branch April 9, 2019 05:28
dupondje pushed a commit to dupondje/telegraf that referenced this pull request Apr 22, 2019
hwaastad pushed a commit to hwaastad/telegraf that referenced this pull request Jun 13, 2019
bitcharmer pushed a commit to bitcharmer/telegraf that referenced this pull request Oct 18, 2019
athoune pushed a commit to bearstech/telegraf that referenced this pull request Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants