Hi there!
Initial information:
I'm using the "Docker by Zabbix agent 2" template.
Statistics from containers are received without problems, except for “Container {#NAME}: CPU percent usage”.
I see an error:
The problem is that Zabbix cannot get the value of $.cpu_stats.cpu_usage.percent_usage.
But inside cpu_stats > cpu_usage there are only total_usage, usage_in_kernelmode and usage_in_usermode.
percent_usage - missing
Docker data:
How can I fix this?
Initial information:
- Zabbix: 6.4.13
- Docker by Zabbix agent 2: 6.4-0
- Docker: 24.0.5, build 24.0.5-0ubuntu1~22.04.1
I'm using the "Docker by Zabbix agent 2" template.
Statistics from containers are received without problems, except for “Container {#NAME}: CPU percent usage”.
I see an error:
Code:
Preprocessing failed for: {"cpu_stats":{"cpu_usage":{"total_usage":155439 400 0,"percpu_usage":null,"usage_in_kernelmode":162. ..
1. Failed: cannot extract value from json by path "$.cpu_stats.cpu_usage.percent_usage": no data matches the specified path
But inside cpu_stats > cpu_usage there are only total_usage, usage_in_kernelmode and usage_in_usermode.
percent_usage - missing
Docker data:
Code:
"cpu_stats":{
"cpu_usage":{
"total_usage":736150758000,
"usage_in_kernelmode":40129937000,
"usage_in_usermode":696020821000
},
"system_cpu_usage":1327539850000000,
"online_cpus":8,
"throttling_data":{
"periods":0,
"throttled_periods":0,
"throttled_time":0
}
},
How can I fix this?