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
commit 79781c6d75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

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,