美文网首页监控采集
docker.io Metrics from DataDog A

docker.io Metrics from DataDog A

作者: xufeibuaa | 来源:发表于2018-08-25 18:43 被阅读16次

RATE: 函数,(当前采集值 - 上一个采集值) / 采集时间差

Name

  • docker.io.write_bytes
  • bytes/second
  • Bytes written per second to disk by the processes of the container
  • docker.io.read_bytes
  • bytes/second
  • Bytes read per second from disk by the processes of the container

计算公式

io_read = blkio.throttle.io_service_bytes文件中所有包含Read行的累计值
io_write = blkio.throttle.io_service_bytes文件中所有包含Write行的累计值

docker.io.write_bytes = RATE(io_write)
docker.io.read_bytes = RATE(io_read)

文件位置

容器对应的blkio.throttle.io_service_bytes文件可能在如下三个目录中:

  • /sys/fs/cgroup/blkio/docker/<container_id>/
  • /sys/fs/cgroup/blkio/kubepods/burstable/<pod_id>/<container_id>/
  • /sys/fs/cgroup/blkio/kubepods/besteffort/<pod_id>/<container_id>/

blkio.throttle.io_service_bytes文件示例内容如下:

cat blkio.throttle.io_service_bytes

7:0 Read 246784
7:0 Write 209481728
7:0 Sync 0
7:0 Async 209728512
7:0 Total 209728512
253:0 Read 246784
253:0 Write 209481728
253:0 Sync 0
253:0 Async 209728512
253:0 Total 209728512
253:2 Read 99832832
253:2 Write 267956224
253:2 Sync 58458112
253:2 Async 309330944
253:2 Total 367789056
Total 787246080

相关文章

网友评论

    本文标题:docker.io Metrics from DataDog A

    本文链接:https://www.haomeiwen.com/subject/itbgiftx.html