AWS EMF Exporter does not properly enforce map TTL #25058
Labels
bug
Something isn't working
exporter/awsemf
awsemf exporter
priority:p1
High
receiver/awscontainerinsight
Component(s)
exporter/awsemf, receiver/awscontainerinsight
What happened?
Description
The AWS EMF Exporter does not properly enforce a TTL in the map used to store metric information. This map is used when performing cummulative to delta conversions. The result of this is that the map will continue to grow along with the collectors memory footprint.
We were able to observe this behavior and also quickly patch in a proof of concept fix that aggressively cleans the map each time the exporter exports. A memory graph can be seen below.
Green line is a collector using a published EMF Exporter and the orange line is a collector with patched EMF Exporter.
Collector version
v0.82.0
Environment information
No response
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
I am currently working on a fix for this. The change requires modifications to the /internal/aws/metrics pacakge which is also used by the Container insights receiver.
The text was updated successfully, but these errors were encountered: