Documentation ¶
Index ¶
- Constants
- Variables
- type Collector
- func (c *Collector) Build(_ *slog.Logger, wmiClient *wmi.Client) error
- func (c *Collector) Close(_ *slog.Logger) error
- func (c *Collector) Collect(_ *types.ScrapeContext, logger *slog.Logger, ch chan<- prometheus.Metric) error
- func (c *Collector) GetName() string
- func (c *Collector) GetPerfCounter(_ *slog.Logger) ([]string, error)
- type Config
- type Win32_PerfRawData_BalancerStats_HyperVDynamicMemoryVM
- type Win32_PerfRawData_Counters_HyperVVirtualStorageDevice
- type Win32_PerfRawData_EthernetPerfProvider_HyperVLegacyNetworkAdapter
- type Win32_PerfRawData_HvStats_HyperVHypervisor
- type Win32_PerfRawData_HvStats_HyperVHypervisorLogicalProcessor
- type Win32_PerfRawData_HvStats_HyperVHypervisorRootPartition
- type Win32_PerfRawData_HvStats_HyperVHypervisorRootVirtualProcessor
- type Win32_PerfRawData_HvStats_HyperVHypervisorVirtualProcessor
- type Win32_PerfRawData_NvspNicStats_HyperVVirtualNetworkAdapter
- type Win32_PerfRawData_NvspSwitchStats_HyperVVirtualSwitch
- type Win32_PerfRawData_VidPerfProvider_HyperVVMVidPartition
- type Win32_PerfRawData_VmmsVirtualMachineStats_HyperVVirtualMachineHealthSummary
Constants ¶
const Name = "hyperv"
Variables ¶
var ConfigDefaults = Config{}
Functions ¶
This section is empty.
Types ¶
type Collector ¶ added in v0.27.0
type Collector struct {
// contains filtered or unexported fields
}
Collector is a Prometheus Collector for hyper-v.
func NewWithFlags ¶
func NewWithFlags(_ *kingpin.Application) *Collector
func (*Collector) Collect ¶ added in v0.27.0
func (c *Collector) Collect(_ *types.ScrapeContext, logger *slog.Logger, ch chan<- prometheus.Metric) error
Collect sends the metric values for each metric to the provided prometheus Metric channel.
type Win32_PerfRawData_BalancerStats_HyperVDynamicMemoryVM ¶
type Win32_PerfRawData_BalancerStats_HyperVDynamicMemoryVM struct { Name string AddedMemory uint64 AveragePressure uint64 CurrentPressure uint64 GuestVisiblePhysicalMemory uint64 MaximumPressure uint64 MemoryAddOperations uint64 MemoryRemoveOperations uint64 MinimumPressure uint64 PhysicalMemory uint64 RemovedMemory uint64 }
Win32_PerfRawData_BalancerStats_HyperVDynamicMemoryVM ...
type Win32_PerfRawData_Counters_HyperVVirtualStorageDevice ¶
type Win32_PerfRawData_Counters_HyperVVirtualStorageDevice struct { Name string ErrorCount uint64 QueueLength uint32 ReadBytesPersec uint64 ReadOperationsPerSec uint64 WriteBytesPersec uint64 WriteOperationsPerSec uint64 }
Win32_PerfRawData_Counters_HyperVVirtualStorageDevice ...
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_HyperVHypervisorLogicalProcessor ¶
type Win32_PerfRawData_HvStats_HyperVHypervisorLogicalProcessor struct { Name string PercentGuestRunTime uint64 PercentHypervisorRunTime uint64 PercentTotalRunTime uint }
Win32_PerfRawData_HvStats_HyperVHypervisorLogicalProcessor ...
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 CPUWaitTimePerDispatch uint64 }
Win32_PerfRawData_HvStats_HyperVHypervisorRootVirtualProcessor ...
type Win32_PerfRawData_HvStats_HyperVHypervisorVirtualProcessor ¶
type Win32_PerfRawData_HvStats_HyperVHypervisorVirtualProcessor struct { Name string PercentGuestRunTime uint64 PercentHypervisorRunTime uint64 PercentRemoteRunTime uint64 PercentTotalRunTime uint64 CPUWaitTimePerDispatch uint64 }
Win32_PerfRawData_HvStats_HyperVHypervisorVirtualProcessor ...
type Win32_PerfRawData_NvspNicStats_HyperVVirtualNetworkAdapter ¶
type Win32_PerfRawData_NvspNicStats_HyperVVirtualNetworkAdapter struct { Name string BytesReceivedPersec uint64 BytesSentPersec uint64 DroppedPacketsIncomingPersec uint64 DroppedPacketsOutgoingPersec uint64 PacketsReceivedPersec uint64 PacketsSentPersec uint64 }
Win32_PerfRawData_NvspNicStats_HyperVVirtualNetworkAdapter ...
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.