hyperv

package
v0.27.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const Name = "hyperv"

Variables

View Source
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 New

func New(logger log.Logger, config *Config) *Collector

func NewWithFlags

func NewWithFlags(_ *kingpin.Application) *Collector

func (*Collector) Build added in v0.27.0

func (c *Collector) Build() error

func (*Collector) Close added in v0.27.0

func (c *Collector) Close() error

func (*Collector) Collect added in v0.27.0

func (c *Collector) Collect(_ *types.ScrapeContext, ch chan<- prometheus.Metric) error

Collect sends the metric values for each metric to the provided prometheus Metric channel.

func (*Collector) GetName added in v0.27.0

func (c *Collector) GetName() string

func (*Collector) GetPerfCounter added in v0.27.0

func (c *Collector) GetPerfCounter() ([]string, error)

func (*Collector) SetLogger added in v0.27.0

func (c *Collector) SetLogger(logger log.Logger)

type Config

type Config struct{}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL