fix(monitor): vm_net add bytes and packages measurements (#22342)

This commit is contained in:
wanyaoqi
2025-03-26 15:06:13 +08:00
committed by GitHub
parent bcfb906879
commit 2ff5f9331f
@@ -138,5 +138,25 @@ var vmNetio = SMeasurement{
DisplayName: "Send packets per second",
Unit: monitor.METRIC_UNIT_PPS,
},
{
Name: "bytes_sent",
DisplayName: "The total number of bytes sent by the network interface",
Unit: monitor.METRIC_UNIT_BYTE,
},
{
Name: "bytes_recv",
DisplayName: "The total number of bytes received by the network interface",
Unit: monitor.METRIC_UNIT_BYTE,
},
{
Name: "packets_sent",
DisplayName: "The total number of packets sent by the network interface",
Unit: monitor.METRIC_UNIT_COUNT,
},
{
Name: "packets_recv",
DisplayName: "The total number of packets received by the network interface",
Unit: monitor.METRIC_UNIT_COUNT,
},
},
}