I’m trying to get some metrics from my docker installation on grafana. I’m fairly new to this so my apologies when asking something which cannot be done. Everything seems to work, the graphs for container CPU usage work just fine.
I’m running a query: sum(container_memory_rss{name=~“.+”}) by (name)
The result is always 0 for all my docker containers. It does list my containers so it does something.
See image above for the results of the query. My best bet is it looks at the second value in the array, I’ve massively searched online to figure out letting it look at the first result in the array, but either i’m just wrong or am not searching with the correct keywords. Either way, i cannot find my answer.
I’m using Grafana 8.1.2, prometheus 2.29.1.