Merge pull request #1201 from ilyam8/fix_hyperv_vswitch_missing_sent_packets
fix: add missing vswitch packets_sent_total
This commit is contained in:
commit
79781c6d75
|
@ -1373,6 +1373,12 @@ func (c *HyperVCollector) collectVmSwitch(ch chan<- prometheus.Metric) (*prometh
|
||||||
float64(obj.PacketsReceivedPersec),
|
float64(obj.PacketsReceivedPersec),
|
||||||
obj.Name,
|
obj.Name,
|
||||||
)
|
)
|
||||||
|
ch <- prometheus.MustNewConstMetric(
|
||||||
|
c.PacketsSent,
|
||||||
|
prometheus.CounterValue,
|
||||||
|
float64(obj.PacketsSentPersec),
|
||||||
|
obj.Name,
|
||||||
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.PurgedMacAddresses,
|
c.PurgedMacAddresses,
|
||||||
prometheus.CounterValue,
|
prometheus.CounterValue,
|
||||||
|
|
Loading…
Reference in New Issue