[ZBX-24012] Zabbix Agent2 missing Docker disk IO stats Created: 2024 Jan 29  Updated: 2025 Jul 03

Status: Confirmed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent2 plugin (G)
Affects Version/s: 6.4.10, 7.0.15
Fix Version/s: None

Type: Problem report Priority: Minor
Reporter: Pavel Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The Docker plugin for Zabbix Agent2 does not collect the I/O block, but even the docker stat command shows this important metric.{}

 

Steps to reproduce:

  1. Install Zabbix Agent 2 with Docker plugin
  2. Wait autoidiscovery
  3. Check lastest data
  4. Check "docker stat" output

Result:
No disk IO data

Expected:

Any type of IO metrics.

 

This has already been discussed on the forum : https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/457834-zabbix-agent2-docker-container-discovery-handles-cpu-mem-etc-but-not-block-io
Other exporters like cadvisor show this metrics.

Some kind of raw disk IO information may be obtained by requesting docker socket:

curl --silent --unix-socket /var/run/docker.sock  http://v1.41/containers/zabbix-zabbix-server-1/stats?stream=false&one-shot=true



 Comments   
Comment by Aigars Kadikis [ 2025 Jul 03 ]

I can confirm:
1) The official template "Docker by Zabbix agent 2" (July 2025) does not contain information regarding disk throughput.
2) A recent (28.3.1) version of Docker does print IO stats:

# curl --silent --unix-socket /var/run/docker.sock "http://v1.40/containers/z70prx.riga/stats?stream=false&one-shot=true" | jq .blkio_stats.io_service_bytes_recursive
[
  {
    "major": 8,
    "minor": 0,
    "op": "read",
    "value": 0
  },
  {
    "major": 8,
    "minor": 0,
    "op": "write",
    "value": 21843968
  }
]
Generated at Sat Aug 02 09:01:12 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.