监控采集

docker.net Metrics from DataDog

2018-08-25  本文已影响28人  xufeibuaa

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

Name

  • bytes/second
  • Bytes received per second from the network
  • 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):

容器对应的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
上一篇 下一篇

猜你喜欢

热点阅读