-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Splunk exporter causing CPU regression with version update #29560
Comments
Pinging code owners for exporter/splunkhec: @atoulme @dmitryax. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
You might be comparing apples and oranges here because of the vast range of version changes. We had quite a few fixes go in to fix how metrics were exported. You can try to test with different versions to zoom on which version starts to exhibit the issue you see, which I don't expect you to do. Here are things to look at:
|
While you're in there, also make sure to move to 0.90.0 to pick up the change introduced by #27776 which should reduce quite a bit the CPU costs (78% to 92% reduction). |
Hello @atoulme, There was something I forgot to add I thought it might affect the performance of the Splunk exporter.
|
None of the data you showed pointed to processors. Any processor in the pipeline adds overhead, but that should be manageable. |
Alright, thank you for your input! |
Describe the bug
When comparing versions v0.54.0 and v0.87.0, there was a major issue with the CPU regression. This regression is happening because we are adding a Splunk exporter in our yaml file.
Steps to reproduce
In order to reproduce the error, I did a performance profiler
pprof
for the two versions on the same application that is using the otel collector.We add
pprof
in the extension of the config yaml file:The file saved is a binary file that can produce the results in the form of a FlamGraph through a software called
graphviz
.We can visualize the results by writing on the command line
go tool pprog -http : ${file_name}
Here are the results:
What did you expect to see?
I expected to not see a big difference in the CPU regression.
What did you see instead?
here is a table outline what is causing the main issue.
Indeed, there is a 656% increase in CPU regression
What version did you use?
Version:
v0.54.0
,v0.87.0
What config did you use?
The text was updated successfully, but these errors were encountered: