Documentation ¶
Index ¶
- Constants
- type Collector
- type HyperVCollector
- type Win32_PerfRawData_EthernetPerfProvider_HyperVLegacyNetworkAdapter
- type Win32_PerfRawData_HvStats_HyperVHypervisor
- type Win32_PerfRawData_HvStats_HyperVHypervisorRootPartition
- type Win32_PerfRawData_HvStats_HyperVHypervisorRootVirtualProcessor
- type Win32_PerfRawData_NvspSwitchStats_HyperVVirtualSwitch
- type Win32_PerfRawData_VidPerfProvider_HyperVVMVidPartition
- type Win32_PerfRawData_VmmsVirtualMachineStats_HyperVVirtualMachineHealthSummary
Constants ¶
const (
Namespace = "hyperV"
)
...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface { // Get new metrics and expose them via prometheus registry. Collect(ch chan<- prometheus.Metric) (err error) }
Collector is the interface a collector has to implement.
type HyperVCollector ¶
type HyperVCollector struct { // Win32_PerfRawData_VmmsVirtualMachineStats_HyperVVirtualMachineHealthSummary HealthCritical *prometheus.Desc HealthOk *prometheus.Desc // Win32_PerfRawData_VidPerfProvider_HyperVVMVidPartition PhysicalPagesAllocated *prometheus.Desc PreferredNUMANodeIndex *prometheus.Desc RemotePhysicalPages *prometheus.Desc // Win32_PerfRawData_HvStats_HyperVHypervisorRootPartition AddressSpaces *prometheus.Desc AttachedDevices *prometheus.Desc DepositedPages *prometheus.Desc DeviceDMAErrors *prometheus.Desc DeviceInterruptErrors *prometheus.Desc DeviceInterruptMappings *prometheus.Desc DeviceInterruptThrottleEvents *prometheus.Desc GPAPages *prometheus.Desc GPASpaceModificationsPersec *prometheus.Desc IOTLBFlushCost *prometheus.Desc IOTLBFlushesPersec *prometheus.Desc RecommendedVirtualTLBSize *prometheus.Desc SkippedTimerTicks *prometheus.Desc Value1Gdevicepages *prometheus.Desc Value1GGPApages *prometheus.Desc Value2Mdevicepages *prometheus.Desc Value2MGPApages *prometheus.Desc Value4Kdevicepages *prometheus.Desc Value4KGPApages *prometheus.Desc VirtualTLBFlushEntiresPersec *prometheus.Desc VirtualTLBPages *prometheus.Desc // Win32_PerfRawData_HvStats_HyperVHypervisor LogicalProcessors *prometheus.Desc VirtualProcessors *prometheus.Desc // Win32_PerfRawData_HvStats_HyperVHypervisorVirtualProcessor PercentGuestRunTime *prometheus.Desc PercentHypervisorRunTime *prometheus.Desc PercentRemoteRunTime *prometheus.Desc PercentTotalRunTime *prometheus.Desc // Win32_PerfRawData_NvspSwitchStats_HyperVVirtualSwitch BroadcastPacketsReceivedPersec *prometheus.Desc BroadcastPacketsSentPersec *prometheus.Desc BytesPersec *prometheus.Desc BytesReceivedPersec *prometheus.Desc BytesSentPersec *prometheus.Desc DirectedPacketsReceivedPersec *prometheus.Desc DirectedPacketsSentPersec *prometheus.Desc DroppedPacketsIncomingPersec *prometheus.Desc DroppedPacketsOutgoingPersec *prometheus.Desc ExtensionsDroppedPacketsIncomingPersec *prometheus.Desc ExtensionsDroppedPacketsOutgoingPersec *prometheus.Desc LearnedMacAddresses *prometheus.Desc LearnedMacAddressesPersec *prometheus.Desc MulticastPacketsReceivedPersec *prometheus.Desc MulticastPacketsSentPersec *prometheus.Desc NumberofSendChannelMovesPersec *prometheus.Desc NumberofVMQMovesPersec *prometheus.Desc PacketsFlooded *prometheus.Desc PacketsFloodedPersec *prometheus.Desc PacketsPersec *prometheus.Desc PacketsReceivedPersec *prometheus.Desc PacketsSentPersec *prometheus.Desc PurgedMacAddresses *prometheus.Desc PurgedMacAddressesPersec *prometheus.Desc // Win32_PerfRawData_EthernetPerfProvider_HyperVLegacyNetworkAdapter AdapterBytesDropped *prometheus.Desc AdapterBytesReceivedPersec *prometheus.Desc AdapterBytesSentPersec *prometheus.Desc AdapterFramesDropped *prometheus.Desc AdapterFramesReceivedPersec *prometheus.Desc AdapterFramesSentPersec *prometheus.Desc }
HyperVCollector is a Prometheus collector for hyper-v
func (*HyperVCollector) Collect ¶
func (c *HyperVCollector) Collect(ch chan<- prometheus.Metric) error
Collect sends the metric values for each metric to the provided prometheus Metric channel.
type Win32_PerfRawData_EthernetPerfProvider_HyperVLegacyNetworkAdapter ¶
type Win32_PerfRawData_EthernetPerfProvider_HyperVLegacyNetworkAdapter struct { Name string BytesDropped uint64 BytesReceivedPersec uint64 BytesSentPersec uint64 FramesDropped uint64 FramesReceivedPersec uint64 FramesSentPersec uint64 }
Win32_PerfRawData_EthernetPerfProvider_HyperVLegacyNetworkAdapter ...
type Win32_PerfRawData_HvStats_HyperVHypervisor ¶
type Win32_PerfRawData_HvStats_HyperVHypervisor struct { LogicalProcessors uint64 VirtualProcessors uint64 }
Win32_PerfRawData_HvStats_HyperVHypervisor ...
type Win32_PerfRawData_HvStats_HyperVHypervisorRootPartition ¶
type Win32_PerfRawData_HvStats_HyperVHypervisorRootPartition struct { Name string AddressSpaces uint64 AttachedDevices uint64 DepositedPages uint64 DeviceDMAErrors uint64 DeviceInterruptErrors uint64 DeviceInterruptMappings uint64 DeviceInterruptThrottleEvents uint64 GPAPages uint64 GPASpaceModificationsPersec uint64 IOTLBFlushCost uint64 IOTLBFlushesPersec uint64 RecommendedVirtualTLBSize uint64 SkippedTimerTicks uint64 Value1Gdevicepages uint64 Value1GGPApages uint64 Value2Mdevicepages uint64 Value2MGPApages uint64 Value4Kdevicepages uint64 Value4KGPApages uint64 VirtualTLBFlushEntiresPersec uint64 VirtualTLBPages uint64 }
Win32_PerfRawData_HvStats_HyperVHypervisorRootPartition ...
type Win32_PerfRawData_HvStats_HyperVHypervisorRootVirtualProcessor ¶
type Win32_PerfRawData_HvStats_HyperVHypervisorRootVirtualProcessor struct { Name string PercentGuestRunTime uint64 PercentHypervisorRunTime uint64 PercentRemoteRunTime uint64 PercentTotalRunTime uint64 }
Win32_PerfRawData_HvStats_HyperVHypervisorRootVirtualProcessor ...
type Win32_PerfRawData_NvspSwitchStats_HyperVVirtualSwitch ¶
type Win32_PerfRawData_NvspSwitchStats_HyperVVirtualSwitch struct { Name string BroadcastPacketsReceivedPersec uint64 BroadcastPacketsSentPersec uint64 BytesPersec uint64 BytesReceivedPersec uint64 BytesSentPersec uint64 DirectedPacketsReceivedPersec uint64 DirectedPacketsSentPersec uint64 DroppedPacketsIncomingPersec uint64 DroppedPacketsOutgoingPersec uint64 ExtensionsDroppedPacketsIncomingPersec uint64 ExtensionsDroppedPacketsOutgoingPersec uint64 LearnedMacAddresses uint64 LearnedMacAddressesPersec uint64 MulticastPacketsReceivedPersec uint64 MulticastPacketsSentPersec uint64 NumberofSendChannelMovesPersec uint64 NumberofVMQMovesPersec uint64 PacketsFlooded uint64 PacketsFloodedPersec uint64 PacketsPersec uint64 PacketsReceivedPersec uint64 PacketsSentPersec uint64 PurgedMacAddresses uint64 PurgedMacAddressesPersec uint64 }
Win32_PerfRawData_NvspSwitchStats_HyperVVirtualSwitch ...
type Win32_PerfRawData_VidPerfProvider_HyperVVMVidPartition ¶
type Win32_PerfRawData_VidPerfProvider_HyperVVMVidPartition struct { Name string PhysicalPagesAllocated uint64 PreferredNUMANodeIndex uint64 RemotePhysicalPages uint64 }
Win32_PerfRawData_VidPerfProvider_HyperVVMVidPartition ..,
type Win32_PerfRawData_VmmsVirtualMachineStats_HyperVVirtualMachineHealthSummary ¶
type Win32_PerfRawData_VmmsVirtualMachineStats_HyperVVirtualMachineHealthSummary struct { HealthCritical uint32 HealthOk uint32 }
Win32_PerfRawData_VmmsVirtualMachineStats_HyperVVirtualMachineHealthSummary vm health status