网络指标采集汇总
node_network_address_assign_type #gauge类型,/sys/class/net/<iface>的address_assign_type的值
node_network_carrier #gauge类型
node_network_carrier_changes_total #gauge类型。
node_network_device_id #gauge类型
node_network_dormant #gauge类型
node_network_flags #gauge类型
node_network_iface_id #gauge类型
node_network_iface_link #gauge类型
node_network_iface_link_mode #gauge类型
node_network_info #gauge类型,值始终为1。
node_network_mtu_bytes #gauge类型
node_network_net_dev_group #gauge类型
node_network_protocol_type #gauge类型
node_network_receive_bytes_total #counter类型,各个网卡的入流量
node_network_receive_compressed_total #counter类型,各个网卡接收的压缩数据包总数
node_network_receive_drop_total #counter类型,各个网卡接收的丢弃的数据包总数
node_network_receive_errs_total #counter类型,各个网卡接收的错误数据包总数
node_network_receive_fifo_total #counter类型,各个网卡接收的 fifo包总数
node_network_receive_frame_total #counter类型
node_network_receive_multicast_total #counter类型,各个网卡接收的多播的包数
node_network_receive_packets_total #counter类型,各个网卡接收到的数据包总数
node_network_transmit_bytes_total #counter类型,各个网卡的出网流量
node_network_transmit_carrier_total #counter类型,各个网卡检测到的载波损耗的数量
node_network_transmit_colls_total #counter类型,各个网卡上检测到的冲突数
node_network_transmit_compressed_total #counter类型,各个网卡发送的压缩数据包总数
node_network_transmit_drop_total #counter类型,各个网卡发送的丢弃的数据包总数
node_network_transmit_errs_total #counter类型,各个网卡发送的错误数据包总数
node_network_transmit_fifo_total #counter类型,各个网卡发送的 fifo 包总数
node_network_transmit_packets_total #counter类型,各个网卡发送的数据包总数
node_network_transmit_queue_length #gauge类型
node_network_up #gauge类型,如果操作状态为"up",则值为1,否则为0
比如:查询网关mac地址为fa:16:3e:d6:51:bb 的各个网卡发送的数据包总数。
注意:
-
GAUGE类型 是采集当前值,是计量器的意思。可以理解为最终图表上显示的数据就是采集来的第一手数据。比如气温的实时数据,停车场中空车位的数目,这种数据随时间变化,并且可上可下,没有固定的规律。
-
COUNTER类型 是采集总量值,是计数器的意思。这种类型一般用于记录连续增长的数据,例如某张网卡上流出或流入的数据量。
参考文档
1.https://www.kancloud.cn/pshizhsysu/prometheus/1803791
2.https://yunlzheng.gitbook.io/prometheus-book/
支持开源,拥抱开源,为开发者赋能!