From 2f8f46f890923c609e613fd971954249f1711a73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Wed, 11 Mar 2026 13:49:50 +0800 Subject: [PATCH] fix(monitor): add vm out bandwidth metric (#24416) --- pkg/monitor/dbinit/measurements/metrics.csv | 2 ++ pkg/monitor/dbinit/measurements/vm_guest.go | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/pkg/monitor/dbinit/measurements/metrics.csv b/pkg/monitor/dbinit/measurements/metrics.csv index ac50564a63..119fe76401 100644 --- a/pkg/monitor/dbinit/measurements/metrics.csv +++ b/pkg/monitor/dbinit/measurements/metrics.csv @@ -310,10 +310,12 @@ Measurement,MeasurementNote,ResourceType,Database,Metric,MetricNote,MetricUnit "vm_netio","Guest network traffic","guest","telegraf","bps_sent","Send traffic per second","bps" "vm_netio","Guest network traffic","guest","telegraf","pps_recv","Received packets per second","pps" "vm_netio","Guest network traffic","guest","telegraf","pps_sent","Send packets per second","pps" + "vm_netio","Guest network traffic","guest","telegraf","bytes_sent","The total number of bytes sent by the network interface","byte" "vm_netio","Guest network traffic","guest","telegraf","bytes_recv","The total number of bytes received by the network interface","byte" "vm_netio","Guest network traffic","guest","telegraf","packets_sent","The total number of packets sent by the network interface","count" "vm_netio","Guest network traffic","guest","telegraf","packets_recv","The total number of packets received by the network interface","count" +"vm_netio","Guest network traffic","guest","telegraf","out_bandwidth_usage","Outbound bandwidth utilization","%" "pod_netio","Pod network traffic","container","telegraf","bps_recv","Received traffic per second","bps" "pod_netio","Pod network traffic","container","telegraf","bps_sent","Send traffic per second","bps" "pod_netio","Pod network traffic","container","telegraf","pps_recv","Received packets per second","pps" diff --git a/pkg/monitor/dbinit/measurements/vm_guest.go b/pkg/monitor/dbinit/measurements/vm_guest.go index 978ef7b525..f48fa76fac 100644 --- a/pkg/monitor/dbinit/measurements/vm_guest.go +++ b/pkg/monitor/dbinit/measurements/vm_guest.go @@ -164,5 +164,10 @@ var vmNetio = SMeasurement{ DisplayName: "The total number of packets received by the network interface", Unit: monitor.METRIC_UNIT_COUNT, }, + { + Name: "out_bandwidth_usage", + DisplayName: "Outbound bandwidth utilization", + Unit: monitor.METRIC_UNIT_PERCENT, + }, }, }