Skip to content

Vector config for better collecting metrics perfomance #10881

Answered by StephenWakely
EvgeniiAl asked this question in Q&A
Discussion options

You must be logged in to vote

In answer to the questions the solution you have here is a pretty good one. You could potentially do the whole thing in the lua transform since that transform could maintain the histogram in global memory and only emit once every 10 seconds, but that could get complex.

However, the main question is why this is actually having a significant impact on performance. The processing required to reduce the events and generate the histogram shouldn't be less than what the prometheus exporter already does.

It is possible you are running into the issue here #10635, which has now been fixed. If so it would be worth trying your original config with the latest version of Vector - either v0.19.2 or v0.…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jszwedko
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants