Merge pull request #1201 from ilyam8/fix_hyperv_vswitch_missing_sent_packets

fix: add missing vswitch packets_sent_total
This commit is contained in:
Ben Reedy
2023-05-07 20:46:22 +10:00
committed by GitHub

View File

@@ -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,