mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-04 09:36:35 +00:00
Remove/rename persec metrics
This commit is contained in:
@@ -32,9 +32,9 @@ type HyperVCollector struct {
|
|||||||
DeviceInterruptMappings *prometheus.Desc
|
DeviceInterruptMappings *prometheus.Desc
|
||||||
DeviceInterruptThrottleEvents *prometheus.Desc
|
DeviceInterruptThrottleEvents *prometheus.Desc
|
||||||
GPAPages *prometheus.Desc
|
GPAPages *prometheus.Desc
|
||||||
GPASpaceModificationsPersec *prometheus.Desc
|
GPASpaceModifications *prometheus.Desc
|
||||||
IOTLBFlushCost *prometheus.Desc
|
IOTLBFlushCost *prometheus.Desc
|
||||||
IOTLBFlushesPersec *prometheus.Desc
|
IOTLBFlushes *prometheus.Desc
|
||||||
RecommendedVirtualTLBSize *prometheus.Desc
|
RecommendedVirtualTLBSize *prometheus.Desc
|
||||||
SkippedTimerTicks *prometheus.Desc
|
SkippedTimerTicks *prometheus.Desc
|
||||||
Value1Gdevicepages *prometheus.Desc
|
Value1Gdevicepages *prometheus.Desc
|
||||||
@@ -43,7 +43,7 @@ type HyperVCollector struct {
|
|||||||
Value2MGPApages *prometheus.Desc
|
Value2MGPApages *prometheus.Desc
|
||||||
Value4Kdevicepages *prometheus.Desc
|
Value4Kdevicepages *prometheus.Desc
|
||||||
Value4KGPApages *prometheus.Desc
|
Value4KGPApages *prometheus.Desc
|
||||||
VirtualTLBFlushEntiresPersec *prometheus.Desc
|
VirtualTLBFlushEntires *prometheus.Desc
|
||||||
VirtualTLBPages *prometheus.Desc
|
VirtualTLBPages *prometheus.Desc
|
||||||
|
|
||||||
// Win32_PerfRawData_HvStats_HyperVHypervisor
|
// Win32_PerfRawData_HvStats_HyperVHypervisor
|
||||||
@@ -57,38 +57,35 @@ type HyperVCollector struct {
|
|||||||
PercentTotalRunTime *prometheus.Desc
|
PercentTotalRunTime *prometheus.Desc
|
||||||
|
|
||||||
// Win32_PerfRawData_NvspSwitchStats_HyperVVirtualSwitch
|
// Win32_PerfRawData_NvspSwitchStats_HyperVVirtualSwitch
|
||||||
BroadcastPacketsReceivedPersec *prometheus.Desc
|
BroadcastPacketsReceived *prometheus.Desc
|
||||||
BroadcastPacketsSentPersec *prometheus.Desc
|
BroadcastPacketsSent *prometheus.Desc
|
||||||
BytesPersec *prometheus.Desc
|
Bytes *prometheus.Desc
|
||||||
BytesReceivedPersec *prometheus.Desc
|
BytesReceived *prometheus.Desc
|
||||||
BytesSentPersec *prometheus.Desc
|
BytesSent *prometheus.Desc
|
||||||
DirectedPacketsReceivedPersec *prometheus.Desc
|
DirectedPacketsReceived *prometheus.Desc
|
||||||
DirectedPacketsSentPersec *prometheus.Desc
|
DirectedPacketsSent *prometheus.Desc
|
||||||
DroppedPacketsIncomingPersec *prometheus.Desc
|
DroppedPacketsIncoming *prometheus.Desc
|
||||||
DroppedPacketsOutgoingPersec *prometheus.Desc
|
DroppedPacketsOutgoing *prometheus.Desc
|
||||||
ExtensionsDroppedPacketsIncomingPersec *prometheus.Desc
|
ExtensionsDroppedPacketsIncoming *prometheus.Desc
|
||||||
ExtensionsDroppedPacketsOutgoingPersec *prometheus.Desc
|
ExtensionsDroppedPacketsOutgoing *prometheus.Desc
|
||||||
LearnedMacAddresses *prometheus.Desc
|
LearnedMacAddresses *prometheus.Desc
|
||||||
LearnedMacAddressesPersec *prometheus.Desc
|
MulticastPacketsReceived *prometheus.Desc
|
||||||
MulticastPacketsReceivedPersec *prometheus.Desc
|
MulticastPacketsSent *prometheus.Desc
|
||||||
MulticastPacketsSentPersec *prometheus.Desc
|
NumberofSendChannelMoves *prometheus.Desc
|
||||||
NumberofSendChannelMovesPersec *prometheus.Desc
|
NumberofVMQMoves *prometheus.Desc
|
||||||
NumberofVMQMovesPersec *prometheus.Desc
|
PacketsFlooded *prometheus.Desc
|
||||||
PacketsFlooded *prometheus.Desc
|
Packets *prometheus.Desc
|
||||||
PacketsFloodedPersec *prometheus.Desc
|
PacketsReceived *prometheus.Desc
|
||||||
PacketsPersec *prometheus.Desc
|
PacketsSent *prometheus.Desc
|
||||||
PacketsReceivedPersec *prometheus.Desc
|
PurgedMacAddresses *prometheus.Desc
|
||||||
PacketsSentPersec *prometheus.Desc
|
|
||||||
PurgedMacAddresses *prometheus.Desc
|
|
||||||
PurgedMacAddressesPersec *prometheus.Desc
|
|
||||||
|
|
||||||
// Win32_PerfRawData_EthernetPerfProvider_HyperVLegacyNetworkAdapter
|
// Win32_PerfRawData_EthernetPerfProvider_HyperVLegacyNetworkAdapter
|
||||||
AdapterBytesDropped *prometheus.Desc
|
AdapterBytesDropped *prometheus.Desc
|
||||||
AdapterBytesReceivedPersec *prometheus.Desc
|
AdapterBytesReceived *prometheus.Desc
|
||||||
AdapterBytesSentPersec *prometheus.Desc
|
AdapterBytesSent *prometheus.Desc
|
||||||
AdapterFramesDropped *prometheus.Desc
|
AdapterFramesDropped *prometheus.Desc
|
||||||
AdapterFramesReceivedPersec *prometheus.Desc
|
AdapterFramesReceived *prometheus.Desc
|
||||||
AdapterFramesSentPersec *prometheus.Desc
|
AdapterFramesSent *prometheus.Desc
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewHyperVCollector ...
|
// NewHyperVCollector ...
|
||||||
@@ -178,8 +175,8 @@ func NewHyperVCollector() (Collector, error) {
|
|||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
GPASpaceModificationsPersec: prometheus.NewDesc(
|
GPASpaceModifications: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "hv", "gpa_space_modifications_persec"),
|
prometheus.BuildFQName(Namespace, "hv", "gpa_space_modifications"),
|
||||||
"The rate of modifications to the GPA space of the partition",
|
"The rate of modifications to the GPA space of the partition",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
@@ -190,8 +187,8 @@ func NewHyperVCollector() (Collector, error) {
|
|||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
IOTLBFlushesPersec: prometheus.NewDesc(
|
IOTLBFlushes: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "hv", "io_tlb_flush_persec"),
|
prometheus.BuildFQName(Namespace, "hv", "io_tlb_flush"),
|
||||||
"The rate of flushes of I/O TLBs of the partition",
|
"The rate of flushes of I/O TLBs of the partition",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
@@ -244,8 +241,8 @@ func NewHyperVCollector() (Collector, error) {
|
|||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
VirtualTLBFlushEntiresPersec: prometheus.NewDesc(
|
VirtualTLBFlushEntires: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "hv", "virtual_tlb_flush_entires_persec"),
|
prometheus.BuildFQName(Namespace, "hv", "virtual_tlb_flush_entires"),
|
||||||
"The rate of flushes of the entire virtual TLB",
|
"The rate of flushes of the entire virtual TLB",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
@@ -300,167 +297,149 @@ func NewHyperVCollector() (Collector, error) {
|
|||||||
),
|
),
|
||||||
|
|
||||||
//
|
//
|
||||||
BroadcastPacketsReceivedPersec: prometheus.NewDesc(
|
BroadcastPacketsReceived: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "broadcast_packets_received_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "broadcast_packets_received_total"),
|
||||||
"This represents the total number of broadcast packets received per second by the virtual switch",
|
"This represents the total number of broadcast packets received per second by the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
BroadcastPacketsSentPersec: prometheus.NewDesc(
|
BroadcastPacketsSent: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "broadcast_packets_sent_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "broadcast_packets_sent_total"),
|
||||||
"This represents the total number of broadcast packets sent per second by the virtual switch",
|
"This represents the total number of broadcast packets sent per second by the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
BytesPersec: prometheus.NewDesc(
|
Bytes: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "bytes_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "bytes_total"),
|
||||||
"This represents the total number of bytes per second traversing the virtual switch",
|
"This represents the total number of bytes per second traversing the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
BytesReceivedPersec: prometheus.NewDesc(
|
BytesReceived: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "bytes_received_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "bytes_received_total"),
|
||||||
"This represents the total number of bytes received per second by the virtual switch",
|
"This represents the total number of bytes received per second by the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
BytesSentPersec: prometheus.NewDesc(
|
BytesSent: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "bytes_sent_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "bytes_sent_total"),
|
||||||
"This represents the total number of bytes sent per second by the virtual switch",
|
"This represents the total number of bytes sent per second by the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
DirectedPacketsReceivedPersec: prometheus.NewDesc(
|
DirectedPacketsReceived: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "directed_packets_received_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "directed_packets_received_total"),
|
||||||
"This represents the total number of directed packets received per second by the virtual switch",
|
"This represents the total number of directed packets received per second by the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
DirectedPacketsSentPersec: prometheus.NewDesc(
|
DirectedPacketsSent: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "directed_packets_send_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "directed_packets_send_total"),
|
||||||
"This represents the total number of directed packets sent per second by the virtual switch",
|
"This represents the total number of directed packets sent per second by the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
DroppedPacketsIncomingPersec: prometheus.NewDesc(
|
DroppedPacketsIncoming: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "dropped_packets_incoming_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "dropped_packets_incoming_total"),
|
||||||
"This represents the total number of packet dropped per second by the virtual switch in the incoming direction",
|
"This represents the total number of packet dropped per second by the virtual switch in the incoming direction",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
DroppedPacketsOutgoingPersec: prometheus.NewDesc(
|
DroppedPacketsOutgoing: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "dropped_packets_outcoming_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "dropped_packets_outcoming_total"),
|
||||||
"This represents the total number of packet dropped per second by the virtual switch in the outgoing direction",
|
"This represents the total number of packet dropped per second by the virtual switch in the outgoing direction",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
ExtensionsDroppedPacketsIncomingPersec: prometheus.NewDesc(
|
ExtensionsDroppedPacketsIncoming: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "extensions_dropped_packets_incoming_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "extensions_dropped_packets_incoming_total"),
|
||||||
"This represents the total number of packet dropped per second by the virtual switch extensions in the incoming direction",
|
"This represents the total number of packet dropped per second by the virtual switch extensions in the incoming direction",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
ExtensionsDroppedPacketsOutgoingPersec: prometheus.NewDesc(
|
ExtensionsDroppedPacketsOutgoing: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "extensions_dropped_packets_outcoming_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "extensions_dropped_packets_outcoming_total"),
|
||||||
"This represents the total number of packet dropped per second by the virtual switch extensions in the outgoing direction",
|
"This represents the total number of packet dropped per second by the virtual switch extensions in the outgoing direction",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
LearnedMacAddresses: prometheus.NewDesc(
|
LearnedMacAddresses: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "learned_mac_addresses"),
|
prometheus.BuildFQName(Namespace, "switch", "learned_mac_addresses_total"),
|
||||||
"This counter represents the total number of learned MAC addresses of the virtual switch",
|
"This counter represents the total number of learned MAC addresses of the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
LearnedMacAddressesPersec: prometheus.NewDesc(
|
MulticastPacketsReceived: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "learned_mac_addresses_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "multicast_packets_received_total"),
|
||||||
"This represents the total number MAC addresses learned per second by the virtual switch",
|
|
||||||
nil,
|
|
||||||
nil,
|
|
||||||
),
|
|
||||||
MulticastPacketsReceivedPersec: prometheus.NewDesc(
|
|
||||||
prometheus.BuildFQName(Namespace, "switch", "multicast_packets_received_total_persec"),
|
|
||||||
"This represents the total number of multicast packets received per second by the virtual switch",
|
"This represents the total number of multicast packets received per second by the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
MulticastPacketsSentPersec: prometheus.NewDesc(
|
MulticastPacketsSent: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "multicast_packets_sent_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "multicast_packets_sent_total"),
|
||||||
"This represents the total number of multicast packets sent per second by the virtual switch",
|
"This represents the total number of multicast packets sent per second by the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
NumberofSendChannelMovesPersec: prometheus.NewDesc(
|
NumberofSendChannelMoves: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "number_of_send_channel_moves_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "number_of_send_channel_moves_total"),
|
||||||
"This represents the total number of send channel moves per second on this virtual switch",
|
"This represents the total number of send channel moves per second on this virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
NumberofVMQMovesPersec: prometheus.NewDesc(
|
NumberofVMQMoves: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "number_of_vmq_moves_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "number_of_vmq_moves_total"),
|
||||||
"This represents the total number of VMQ moves per second on this virtual switch",
|
"This represents the total number of VMQ moves per second on this virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
PacketsFlooded: prometheus.NewDesc(
|
PacketsFlooded: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "packets_flooded"),
|
prometheus.BuildFQName(Namespace, "switch", "packets_flooded_total"),
|
||||||
"This counter represents the total number of packets flooded by the virtual switch",
|
"This counter represents the total number of packets flooded by the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
PacketsFloodedPersec: prometheus.NewDesc(
|
Packets: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "packets_flooded_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "packets_total"),
|
||||||
"This represents the total number of packets flooded per second by the virtual switch",
|
|
||||||
nil,
|
|
||||||
nil,
|
|
||||||
),
|
|
||||||
PacketsPersec: prometheus.NewDesc(
|
|
||||||
prometheus.BuildFQName(Namespace, "switch", "packets_total_persec"),
|
|
||||||
"This represents the total number of packets per second traversing the virtual switch",
|
"This represents the total number of packets per second traversing the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
PacketsReceivedPersec: prometheus.NewDesc(
|
PacketsReceived: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "packets_received_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "packets_received_total"),
|
||||||
"This represents the total number of packets received per second by the virtual switch",
|
"This represents the total number of packets received per second by the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
PacketsSentPersec: prometheus.NewDesc(
|
PacketsSent: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "packets_sent_total_persec"),
|
prometheus.BuildFQName(Namespace, "switch", "packets_sent_total"),
|
||||||
"This represents the total number of packets send per second by the virtual switch",
|
"This represents the total number of packets send per second by the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
PurgedMacAddresses: prometheus.NewDesc(
|
PurgedMacAddresses: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "switch", "purged_mac_addresses"),
|
prometheus.BuildFQName(Namespace, "switch", "purged_mac_addresses_total"),
|
||||||
"This counter represents the total number of purged MAC addresses of the virtual switch",
|
"This counter represents the total number of purged MAC addresses of the virtual switch",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
PurgedMacAddressesPersec: prometheus.NewDesc(
|
|
||||||
prometheus.BuildFQName(Namespace, "switch", "purged_mac_addresses_total_persec"),
|
|
||||||
"This represents the total number MAC addresses purged per second by the virtual switch",
|
|
||||||
nil,
|
|
||||||
nil,
|
|
||||||
),
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
AdapterBytesDropped: prometheus.NewDesc(
|
AdapterBytesDropped: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "ethernet", "bytes_persec"),
|
prometheus.BuildFQName(Namespace, "ethernet", "bytes"),
|
||||||
"Bytes Dropped is the number of bytes dropped on the network adapter",
|
"Bytes Dropped is the number of bytes dropped on the network adapter",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
AdapterBytesReceivedPersec: prometheus.NewDesc(
|
AdapterBytesReceived: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "ethernet", "bytes_received_persec"),
|
prometheus.BuildFQName(Namespace, "ethernet", "bytes_received"),
|
||||||
"Bytes Received/sec is the number of bytes received per second on the network adapter",
|
"Bytes Received/sec is the number of bytes received per second on the network adapter",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
AdapterBytesSentPersec: prometheus.NewDesc(
|
AdapterBytesSent: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "ethernet", "bytes_sent_persec"),
|
prometheus.BuildFQName(Namespace, "ethernet", "bytes_sent"),
|
||||||
"Bytes Sent/sec is the number of bytes sent per second over the network adapter",
|
"Bytes Sent/sec is the number of bytes sent per second over the network adapter",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
@@ -471,14 +450,14 @@ func NewHyperVCollector() (Collector, error) {
|
|||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
AdapterFramesReceivedPersec: prometheus.NewDesc(
|
AdapterFramesReceived: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "ethernet", "frames_received_persec"),
|
prometheus.BuildFQName(Namespace, "ethernet", "frames_received"),
|
||||||
"Frames Received/sec is the number of frames received per second on the network adapter",
|
"Frames Received/sec is the number of frames received per second on the network adapter",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
AdapterFramesSentPersec: prometheus.NewDesc(
|
AdapterFramesSent: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, "ethernet", "frames_sent_persec"),
|
prometheus.BuildFQName(Namespace, "ethernet", "frames_sent"),
|
||||||
"Frames Sent/sec is the number of frames sent per second over the network adapter",
|
"Frames Sent/sec is the number of frames sent per second over the network adapter",
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
@@ -678,8 +657,8 @@ func (c *HyperVCollector) collectVmHv(ch chan<- prometheus.Metric) (*prometheus.
|
|||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.GPASpaceModificationsPersec,
|
c.GPASpaceModifications,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.GPASpaceModificationsPersec),
|
float64(obj.GPASpaceModificationsPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -690,8 +669,8 @@ func (c *HyperVCollector) collectVmHv(ch chan<- prometheus.Metric) (*prometheus.
|
|||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.IOTLBFlushesPersec,
|
c.IOTLBFlushes,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.IOTLBFlushesPersec),
|
float64(obj.IOTLBFlushesPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -740,8 +719,8 @@ func (c *HyperVCollector) collectVmHv(ch chan<- prometheus.Metric) (*prometheus.
|
|||||||
float64(obj.Value4KGPApages),
|
float64(obj.Value4KGPApages),
|
||||||
)
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.VirtualTLBFlushEntiresPersec,
|
c.VirtualTLBFlushEntires,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.VirtualTLBFlushEntiresPersec),
|
float64(obj.VirtualTLBFlushEntiresPersec),
|
||||||
)
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
@@ -886,64 +865,64 @@ func (c *HyperVCollector) collectVmSwitch(ch chan<- prometheus.Metric) (*prometh
|
|||||||
}
|
}
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.BroadcastPacketsReceivedPersec,
|
c.BroadcastPacketsReceived,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.BroadcastPacketsReceivedPersec),
|
float64(obj.BroadcastPacketsReceivedPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.BroadcastPacketsSentPersec,
|
c.BroadcastPacketsSent,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.BroadcastPacketsSentPersec),
|
float64(obj.BroadcastPacketsSentPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.BytesPersec,
|
c.Bytes,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.BytesPersec),
|
float64(obj.BytesPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.BytesReceivedPersec,
|
c.BytesReceived,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.BytesReceivedPersec),
|
float64(obj.BytesReceivedPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.BytesSentPersec,
|
c.BytesSent,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.BytesSentPersec),
|
float64(obj.BytesSentPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.DirectedPacketsReceivedPersec,
|
c.DirectedPacketsReceived,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.DirectedPacketsReceivedPersec),
|
float64(obj.DirectedPacketsReceivedPersec),
|
||||||
)
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.DirectedPacketsSentPersec,
|
c.DirectedPacketsSent,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.DirectedPacketsSentPersec),
|
float64(obj.DirectedPacketsSentPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.DroppedPacketsIncomingPersec,
|
c.DroppedPacketsIncoming,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.DroppedPacketsIncomingPersec),
|
float64(obj.DroppedPacketsIncomingPersec),
|
||||||
)
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.DroppedPacketsOutgoingPersec,
|
c.DroppedPacketsOutgoing,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.DroppedPacketsOutgoingPersec),
|
float64(obj.DroppedPacketsOutgoingPersec),
|
||||||
)
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.ExtensionsDroppedPacketsIncomingPersec,
|
c.ExtensionsDroppedPacketsIncoming,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.ExtensionsDroppedPacketsIncomingPersec),
|
float64(obj.ExtensionsDroppedPacketsIncomingPersec),
|
||||||
)
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.ExtensionsDroppedPacketsOutgoingPersec,
|
c.ExtensionsDroppedPacketsOutgoing,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.ExtensionsDroppedPacketsOutgoingPersec),
|
float64(obj.ExtensionsDroppedPacketsOutgoingPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -953,28 +932,23 @@ func (c *HyperVCollector) collectVmSwitch(ch chan<- prometheus.Metric) (*prometh
|
|||||||
float64(obj.LearnedMacAddresses),
|
float64(obj.LearnedMacAddresses),
|
||||||
)
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.LearnedMacAddressesPersec,
|
c.MulticastPacketsReceived,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.LearnedMacAddressesPersec),
|
|
||||||
)
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
|
||||||
c.MulticastPacketsReceivedPersec,
|
|
||||||
prometheus.GaugeValue,
|
|
||||||
float64(obj.MulticastPacketsReceivedPersec),
|
float64(obj.MulticastPacketsReceivedPersec),
|
||||||
)
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.MulticastPacketsSentPersec,
|
c.MulticastPacketsSent,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.MulticastPacketsSentPersec),
|
float64(obj.MulticastPacketsSentPersec),
|
||||||
)
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.NumberofSendChannelMovesPersec,
|
c.NumberofSendChannelMoves,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.NumberofSendChannelMovesPersec),
|
float64(obj.NumberofSendChannelMovesPersec),
|
||||||
)
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.NumberofVMQMovesPersec,
|
c.NumberofVMQMoves,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.NumberofVMQMovesPersec),
|
float64(obj.NumberofVMQMovesPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -986,20 +960,14 @@ func (c *HyperVCollector) collectVmSwitch(ch chan<- prometheus.Metric) (*prometh
|
|||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.PacketsFloodedPersec,
|
c.Packets,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.PacketsFloodedPersec),
|
|
||||||
)
|
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
|
||||||
c.PacketsPersec,
|
|
||||||
prometheus.GaugeValue,
|
|
||||||
float64(obj.PacketsPersec),
|
float64(obj.PacketsPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.PacketsReceivedPersec,
|
c.PacketsReceived,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.PacketsReceivedPersec),
|
float64(obj.PacketsReceivedPersec),
|
||||||
)
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
@@ -1007,13 +975,6 @@ func (c *HyperVCollector) collectVmSwitch(ch chan<- prometheus.Metric) (*prometh
|
|||||||
prometheus.CounterValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.PurgedMacAddresses),
|
float64(obj.PurgedMacAddresses),
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
|
||||||
c.PurgedMacAddressesPersec,
|
|
||||||
prometheus.GaugeValue,
|
|
||||||
float64(obj.PurgedMacAddressesPersec),
|
|
||||||
)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil, nil
|
return nil, nil
|
||||||
@@ -1048,32 +1009,32 @@ func (c *HyperVCollector) collectVmEthernet(ch chan<- prometheus.Metric) (*prome
|
|||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.AdapterBytesReceivedPersec,
|
c.AdapterBytesReceived,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.BytesReceivedPersec),
|
float64(obj.BytesReceivedPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.AdapterBytesSentPersec,
|
c.AdapterBytesSent,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.BytesSentPersec),
|
float64(obj.BytesSentPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.AdapterFramesReceivedPersec,
|
c.AdapterFramesReceived,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.FramesReceivedPersec),
|
float64(obj.FramesReceivedPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.AdapterFramesDropped,
|
c.AdapterFramesDropped,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.BytesSentPersec),
|
float64(obj.FramesDropped),
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.AdapterFramesSentPersec,
|
c.AdapterFramesSent,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(obj.FramesSentPersec),
|
float64(obj.FramesSentPersec),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user