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

vacuum_interval for prometheus Export #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ynHuber
Copy link
Collaborator

@ynHuber ynHuber commented Nov 22, 2024

Added a parameter that defines a fixed intervall at which all prometheus exporter counters are getting reset
Fixes #80

Added a parameter that defines a fixed intervall at which all prometheus exporter counters are getting reset
MetricsPath string // optional, default is "/metrics"
FlowdataPath string // optional, default is "/flowdata"
Labels []string // optional, list of labels to be exported
VacuumInterval *time.Duration // optional, intervall in which counters should be reset
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should add some emphasis and warning that vacuuming might happen at an inconvenient time which leads to some data loss (at most about one scrape interval's worth).

I believe it might be possible to hook the next Gather operation and only vacuum then, which would prevent most of the possible data loss 🤔

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.

export/prometheus: metrics growing indefinitly, causing timeouts
2 participants