mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-21 20:26:36 +00:00
fix: add missing vswitch packets_sent_total
Signed-off-by: ilyam8 <ilya@netdata.cloud>
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user