From 579369dbf5a55cd111dc97c28fcadef2fc5d1c13 Mon Sep 17 00:00:00 2001 From: ilyam8 Date: Thu, 4 May 2023 18:59:25 +0300 Subject: [PATCH] fix: add missing vswitch packets_sent_total Signed-off-by: ilyam8 --- collector/hyperv.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/collector/hyperv.go b/collector/hyperv.go index da749123..f75703cb 100644 --- a/collector/hyperv.go +++ b/collector/hyperv.go @@ -1373,6 +1373,12 @@ func (c *HyperVCollector) collectVmSwitch(ch chan<- prometheus.Metric) (*prometh float64(obj.PacketsReceivedPersec), obj.Name, ) + ch <- prometheus.MustNewConstMetric( + c.PacketsSent, + prometheus.CounterValue, + float64(obj.PacketsSentPersec), + obj.Name, + ) ch <- prometheus.MustNewConstMetric( c.PurgedMacAddresses, prometheus.CounterValue,