labelsHashToGlobal is not being garbage collected #7003
Labels
bug
Something isn't working
needs-attention
An issue or PR has been sitting around and needs attention.
What's wrong?
Grafana-agent 0.39.0 in a flow mode via statefulset with clustering enabled does not release some of its memory consumed by GetOrAddGlobalRefID and GetOrAddLink
I believe this is related to the fact that not all cases are covered by this function https://github.com/grafana/agent/blob/v0.39.0/service/labelstore/service.go#L239
From the graphs I can confirm that agent_labelstore_global_ids_count is not decreasing over time, the only event that helps is restart.
Steps to reproduce
Run grafana-agent in high cardinality environment in a flow-mode
System information
k8s 1.26.12
Software version
v0.39.0
Configuration
No response
Logs
No response
The text was updated successfully, but these errors were encountered: