monitoringartist / zabbix-docker-monitoring

:whale: Docker/Kubernetes/Mesos/Marathon/Chronos/LXC/LXD/Swarm container monitoring - Docker image, Zabbix template and C module
https://hub.docker.com/r/monitoringartist/zabbix-agent-xxl-limited/
GNU General Public License v2.0
1.19k stars 268 forks source link

Is there any guide to calculate what CPU metric I need to set for 4 or 8 CPUs? #130

Closed ChuckB0ris closed 5 years ago

ChuckB0ris commented 5 years ago
docker.cpu[cid,cmetric] CPU metrics:cmetric - any available CPU metric in the pseudo-file cpuacct.stat/cpu.stat, e.g.: system, user, total (current sum of system/user or container throttling metrics: nr_throttled, throttled_timeNote: CPU user/system/total metrics must be recalculated to % utilization value by Zabbix - Delta (speed per second).

Default is 2500

jangaraj commented 5 years ago

I'm not sure what do you need. RAW metric can be 2500 (counter of used CPU jiffies), but it will be recalculated to % by Zabbix server - see configuration of item in the template.

ChuckB0ris commented 5 years ago

I mean how can I calculate "RAW metric" of whatever I need to put in the trigger, for example if I got 8 core CPUs and want to trigger alert when at >90% all cores/threads? Will it be the same value for a server with less CPUs? I do not understand the formula I need to use to calculate these :).

Thanks for the help Jangaraj.

jangaraj commented 5 years ago

Please use provided template. There is calculated normalized CPU utilization, so you really don't need to consider any CPU count.