Closed sstratoti closed 4 years ago
Yes, the containers_memory is for all containers. To have it per container, add the following one: memory_percentage
Woohoo! Thank you!
Also, don't know if you saw this post:
But the user describes a step where you need to modify the docker.service file:
ExecStart=/usr/bin/dockerd` -H fd:// --containerd=/run/containerd/containerd.sock -H tcp://0.0.0.0
I didn't see that in your install instructions, so I thought I'd mention it. :) Thanks again!
@sstratoti thanks for the link and other information. Which Linux distribution are you using? I myself us Ubuntu 18.04 with Docker CE and it worked directly (no manual changes required). Also, is the monitor_docker connection to a remote Docker host or really locally?
Great component!
I'm attempting to set up a pie chart in my system monitor page that'll show me which docker containers are using the most cpu and memory.
I'm trying to get the containers_memory_percent to come through, and it's only giving me the total memory MB totals.
Config is:
I do see a sensor for: sensor.docker_memory_percent (overall docker system memory), but not for each of the individual containers. For each container I see sensors that resemble sensor.docker_db_memory with the MB total for the container.
I can see this data in the debug log. Not sure if I'm missing something in the config. Thanks!
Sample from debug log: