-
Notifications
You must be signed in to change notification settings - Fork 486
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
spanmetrics grow indefinitely #5271
Comments
Hello, thank you for reporting this. I will take a look next week. |
It seems like https://github.com/grafana/agent/compare/main...nijave:grafana-agent:d59717e8-metrics-flush?expand=1 (the HEAD~1 commit adds the fields) |
I see what the issue is now. dimensions cache gets reset here: For metric series to go away, ideally |
Here's some data from our dev environment with agent v0.36.2 built with open-telemetry/opentelemetry-collector-contrib#27083 cherry-picked. Left most grouping is "long running" agent (a few days). Middle grouping is v0.36.1 after a restart. Right grouping is agents with patched v0.36.2 Metric series over a lot longer window (showing indefinite growth). Each drop off is an agent restart. Not sure what the giant spike is--I assume related to some testing we were doing in dev. |
@ptodev Is this still on your radar? Should we clear the assignment? |
Yes, I unassigned myself. @nijave recently fixed this issue in the Collector, but unfortunately upgrading OpenTelemetry is such a major effort that I am not able to do it right away. I'd rather unassign myself so that we can prioritise this separately later. Maybe someone else can pick it up as well. I raised #5467 just now, for updating the Collector dependencies to a version high enough that we will pick up this bugfix. When #5467 is done, we can close this issue. |
It is worth mentioning that this should not be an issue for Flow's otelcol.connector.spanmetrics. As per a comment on the Otel issue, the spanmetrics connector doesn't have this issue. The Agent Flow component is based on the connector, whereas the Agent Static mode component is based on the processor. |
Hi, @nijave! We have to upgrade the Agent to version 0.86 of the OTel Collector in order to pick up a few security patches. We decided to upgrade to the latest version, 0.87, and pick up your patch as well. It will go in via #5529, which will be released in the next Agent release on 2023-11-21. I hope you don't mind that I listed you in our changelog in #5529. Thank you for making the Agent and the Collector better! |
What's wrong?
spanmetrics series appear to continue to grow indefinitely
I think this might be related to #4614--maybe flushing is only setup if you use flow mode?
Steps to reproduce
Leave the Grafana Agent with spanmetrics enabled running for a few days
System information
No response
Software version
0.36.1
Configuration
Logs
No response
The text was updated successfully, but these errors were encountered: