munin-monitoring / contrib

Contributed stuff for munin (plugins, tools, etc...)
http://munin-monitoring.org
1.05k stars 679 forks source link

docker_cpu: enable configuring warnings for cpu usage #1430

Closed ap-wtioit closed 3 months ago

ap-wtioit commented 3 months ago

Enable detecting ncpu (number of cpus the container can use) from cgroup (v2) cpu.max. This is set when limiting the number of cpus with docker compose:

services:
  service_name:
    ...
    deploy:
      resources:
        limits:
          # limit container to using 100% (one core)
          cpus: "1.0"

And enable defining warnings for containers using too much CPU. As a follow up to be able to check for bugs like this: https://gitlab.isc.org/isc-projects/bind9/-/issues/4656

Info @wt-io-it