We have deployed grafana-agent
using static mode kubernetes operator
.
In our setup we currently have 4 Integrations:
- statsd-exporter
- postgres-metrics
- redis-metrics
- custom one
The total memory used by grafana-agent-integrations-deploy is very high across all the clusters, reaching more than 5 GiB in some clusters.
PromQL query used: sum(container_memory_working_set_bytes{cluster!="", namespace!="", pod=~".+integrations-deploy.+", container!="",image!=""}) by (cluster, namespace, pod, container) / (1024 * 1024 * 1024)
I want to find out the reason for high memory usage (is this the expected behaviour ?) and any suggestions for reducing the same.
Can someone also point out on what factors the memory of grafana-agent-integrations-deploy
depends.
Thanks