From 745f0a6f6181f0286099af4c7af46d6ad95d9562 Mon Sep 17 00:00:00 2001 From: jimliming Date: Fri, 17 Mar 2017 11:12:47 -0700 Subject: [PATCH] updating Win32_PerfRawData_Tcpip_NetworkInterface to uint64 (#61) --- collector/net.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/collector/net.go b/collector/net.go index 86752407..079cd390 100644 --- a/collector/net.go +++ b/collector/net.go @@ -138,18 +138,18 @@ func mangleNetworkName(name string) string { } type Win32_PerfRawData_Tcpip_NetworkInterface struct { - BytesReceivedPerSec uint32 - BytesSentPerSec uint32 + BytesReceivedPerSec uint64 + BytesSentPerSec uint64 BytesTotalPerSec uint64 Name string - PacketsOutboundDiscarded uint32 - PacketsOutboundErrors uint32 - PacketsPerSec uint32 - PacketsReceivedDiscarded uint32 - PacketsReceivedErrors uint32 - PacketsReceivedPerSec uint32 - PacketsReceivedUnknown uint32 - PacketsSentPerSec uint32 + PacketsOutboundDiscarded uint64 + PacketsOutboundErrors uint64 + PacketsPerSec uint64 + PacketsReceivedDiscarded uint64 + PacketsReceivedErrors uint64 + PacketsReceivedPerSec uint64 + PacketsReceivedUnknown uint64 + PacketsSentPerSec uint64 } func (c *NetworkCollector) collect(ch chan<- prometheus.Metric) (*prometheus.Desc, error) {