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

enhancement: batch events out metric in Pipeline #8383

Merged
merged 2 commits into from
Jul 21, 2021

Conversation

tobz
Copy link
Contributor

@tobz tobz commented Jul 20, 2021

Instead of incrementing events_out_total -- via emit!(EventOut { .. }) -- every time we get an event in Pipeline, we instead batch the updates and flush them out in Pipeline::try_flush. For high events/second configurations, this can provide a significant reduction in metric emissions overall.

Signed-off-by: Toby Lawrence [email protected]

@netlify
Copy link

netlify bot commented Jul 20, 2021

✔️ Deploy Preview for vector-project canceled.

🔨 Explore the source changes: b809ec6

🔍 Inspect the deploy log: https://app.netlify.com/sites/vector-project/deploys/60f705d7a5aff6000817fbf5

Copy link
Member

@jszwedko jszwedko left a comment

Choose a reason for hiding this comment

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

🚀

Signed-off-by: Toby Lawrence <[email protected]>
@tobz tobz merged commit 5a00f06 into master Jul 21, 2021
@tobz tobz deleted the tobz/pipeline-metrics-batching branch July 21, 2021 01:09
jdrouet pushed a commit that referenced this pull request Jul 23, 2021
* enhancement: batch events out metric in Pipeline

Signed-off-by: Toby Lawrence <[email protected]>
jaysonsantos pushed a commit to jaysonsantos/vector that referenced this pull request Aug 1, 2021
* enhancement: batch events out metric in Pipeline

Signed-off-by: Toby Lawrence <[email protected]>
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.

4 participants