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

docker.net Metrics from DataDog

作者: xufeibuaa | 来源:发表于2018-08-25 20:09 被阅读28次

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

Name

  • docker.net.bytes_rcvd
  • bytes/second
  • Bytes received per second from the network
  • docker.net.bytes_sent
  • bytes/second
  • Bytes sent per second to the network

计算方式

# Receive.bytes是行的第1个值
docker.net.bytes_rcvd = RATE(Receive.bytes)
# Transmit.bytes是行的第9个值
docker.net.bytes_sent = RATE(Transmit.bytes)

文件位置

容器对应的net/dev文件目录如下(需要找到容器对应的进程ID):

  • /proc/<PID>/net

容器对应的net/dev文件示例内容如下:

Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
  eth0: 62978456398 158675734    0    0    0     0          0         0 91176847460 158073410    0    0    0     0       0          0
    lo:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0

相关文章

网友评论

    本文标题:docker.net Metrics from DataDog

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