Docker reports the CPU usage of a container like docker stats: 100 % per fully used CPU core. On a host with many cores a single container can show hundreds or thousands of percent, which breaks every threshold written for "total CPU in %". On Checkmk versions older than 2.5.0p12 the built-in service also shows a bogus "under high load for ... years" duration (Werk 20187).
This package adds the service Docker CPU utilization for Docker container hosts. It reports the utilization in percent of the available CPUs (always 0 to 100 %) and the number of CPU cores in use.
Total CPU: 1.48%, 1.07 of 72 CPUs in useutil (shown in the standard CPU graph) and docker_cpu_cores_usedmk_docker.py, no agent plug-in has to be rolled outmk_docker.py (container hosts as piggyback hosts)doc folder, in English).Tested live on Checkmk 2.5.0p10 in a distributed setup with the standard Docker data on Linux Docker hosts. The optional agent plug-in was checked on a Linux Docker host up to the delivery of its data. The Windows variant has not been tested on a real Windows Docker host.
Docker meldet die CPU-Nutzung eines Containers wie docker stats: 100 % pro voll ausgelastetem CPU-Kern. Auf einem Host mit vielen Kernen kann ein einzelner Container hunderte oder tausende Prozent zeigen, wodurch alle Schwellwerte für "Gesamt-CPU in %" nicht mehr funktionieren. Bei Checkmk-Versionen vor 2.5.0p12 zeigt der eingebaute Service außerdem eine falsche Dauer "under high load for ... years" (Werk 20187).
Dieses Paket fügt den Service Docker CPU utilization für Docker-Container-Hosts hinzu. Er zeigt die Auslastung in Prozent der verfügbaren CPUs (immer 0 bis 100 %) und die Zahl der genutzten CPU-Kerne.
Total CPU: 1.48%, 1.07 of 72 CPUs in useutil (im Standard-CPU-Graphen sichtbar) und docker_cpu_cores_usedmk_docker.py, es muss kein Agent-Plugin ausgerollt werdenmk_docker.py überwacht werden (Container-Hosts als Piggyback-Hosts)doc, auf Englisch).Live getestet auf Checkmk 2.5.0p10 in einer verteilten Umgebung mit den Standard-Docker-Daten auf Linux-Docker-Hosts. Das optionale Agent-Plugin wurde auf einem Linux-Docker-Host bis zur Lieferung seiner Daten geprüft. Die Windows-Variante wurde auf keinem echten Windows-Docker-Host getestet.