Documentation ¶
Index ¶
- func New() ([]collector.Collector, error)
- func NewCacheCollector(cfgBaseName string) (collector.Collector, error)
- func NewDiskCollector(cfgBaseName string) (collector.Collector, error)
- func NewMemoryCollector(cfgBaseName string) (collector.Collector, error)
- func NewNetIPCollector(cfgBaseName string) (collector.Collector, error)
- func NewNetInterfaceCollector(cfgBaseName string) (collector.Collector, error)
- func NewNetTCPCollector(cfgBaseName string) (collector.Collector, error)
- func NewNetUDPCollector(cfgBaseName string) (collector.Collector, error)
- func NewObjectsCollector(cfgBaseName string) (collector.Collector, error)
- func NewPagingFileCollector(cfgBaseName string) (collector.Collector, error)
- func NewProcessesCollector(cfgBaseName string) (collector.Collector, error)
- func NewProcessorCollector(cfgBaseName string) (collector.Collector, error)
- type Cache
- type Disk
- type Memory
- type NetIP
- type NetIPOptions
- type NetInterface
- type NetTCP
- type NetTCPOptions
- type NetUDP
- type NetUDPOptions
- type Objects
- type PagingFile
- type Processes
- type ProcessesOptions
- type Processor
- type Win32_PerfFormattedData_PerfDisk_LogicalDisk
- type Win32_PerfFormattedData_PerfDisk_PhysicalDisk
- type Win32_PerfFormattedData_PerfOS_Cache
- type Win32_PerfFormattedData_PerfOS_Memory
- type Win32_PerfFormattedData_PerfOS_Objects
- type Win32_PerfFormattedData_PerfOS_PagingFile
- type Win32_PerfFormattedData_PerfOS_Processor
- type Win32_PerfFormattedData_PerfProc_Process
- type Win32_PerfRawData_Tcpip_IPv4
- type Win32_PerfRawData_Tcpip_IPv6
- type Win32_PerfRawData_Tcpip_NetworkInterface
- type Win32_PerfRawData_Tcpip_TCPv4
- type Win32_PerfRawData_Tcpip_TCPv6
- type Win32_PerfRawData_Tcpip_UDPv4
- type Win32_PerfRawData_Tcpip_UDPv6
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCacheCollector ¶
NewCacheCollector creates new wmi collector
func NewDiskCollector ¶
NewDiskCollector creates new wmi collector
func NewMemoryCollector ¶
NewMemoryCollector creates new wmi collector
func NewNetIPCollector ¶
NewNetIPCollector creates new wmi collector
func NewNetInterfaceCollector ¶
NewNetInterfaceCollector creates new wmi collector
func NewNetTCPCollector ¶
NewNetTCPCollector creates new wmi collector
func NewNetUDPCollector ¶
NewNetUDPCollector creates new wmi collector
func NewObjectsCollector ¶
NewObjectsCollector creates new wmi collector
func NewPagingFileCollector ¶
NewPagingFileCollector creates new wmi collector
func NewProcessesCollector ¶
NewProcessesCollector creates new wmi collector
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache metrics from the Windows Management Interface (wmi)
func (*Cache) Inventory ¶
func (c *Cache) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type Disk ¶
type Disk struct {
// contains filtered or unexported fields
}
Disk metrics from the Windows Management Interface (wmi)
func (*Disk) Inventory ¶
func (c *Disk) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory metrics from the Windows Management Interface (wmi)
func (*Memory) Inventory ¶
func (c *Memory) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type NetIP ¶
type NetIP struct {
// contains filtered or unexported fields
}
NetIP metrics from the Windows Management Interface (wmi)
func (*NetIP) Inventory ¶
func (c *NetIP) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type NetIPOptions ¶
type NetIPOptions struct { ID string `json:"id" toml:"id" yaml:"id"` MetricNameRegex string `json:"metric_name_regex" toml:"metric_name_regex" yaml:"metric_name_regex"` MetricNameChar string `json:"metric_name_char" toml:"metric_name_char" yaml:"metric_name_char"` RunTTL string `json:"run_ttl" toml:"run_ttl" yaml:"run_ttl"` EnableIPv4 string `json:"enable_ipv4" toml:"enable_ipv4" yaml:"enable_ipv4"` EnableIPv6 string `json:"enable_ipv6" toml:"enable_ipv6" yaml:"enable_ipv6"` }
NetIPOptions defines what elements can be overridden in a config file
type NetInterface ¶
type NetInterface struct {
// contains filtered or unexported fields
}
NetInterface metrics from the Windows Management Interface (wmi)
func (*NetInterface) Collect ¶
func (c *NetInterface) Collect(ctx context.Context) error
Collect metrics from the wmi resource
func (*NetInterface) Inventory ¶
func (c *NetInterface) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type NetTCP ¶
type NetTCP struct {
// contains filtered or unexported fields
}
NetTCP metrics from the Windows Management Interface (wmi)
func (*NetTCP) Inventory ¶
func (c *NetTCP) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type NetTCPOptions ¶
type NetTCPOptions struct { ID string `json:"id" toml:"id" yaml:"id"` MetricNameRegex string `json:"metric_name_regex" toml:"metric_name_regex" yaml:"metric_name_regex"` MetricNameChar string `json:"metric_name_char" toml:"metric_name_char" yaml:"metric_name_char"` RunTTL string `json:"run_ttl" toml:"run_ttl" yaml:"run_ttl"` EnableIPv4 string `json:"enable_ipv4" toml:"enable_ipv4" yaml:"enable_ipv4"` EnableIPv6 string `json:"enable_ipv6" toml:"enable_ipv6" yaml:"enable_ipv6"` }
NetTCPOptions defines what elements can be overridden in a config file
type NetUDP ¶
type NetUDP struct {
// contains filtered or unexported fields
}
NetUDP metrics from the Windows Management Interface (wmi)
func (*NetUDP) Inventory ¶
func (c *NetUDP) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type NetUDPOptions ¶
type NetUDPOptions struct { ID string `json:"id" toml:"id" yaml:"id"` MetricNameRegex string `json:"metric_name_regex" toml:"metric_name_regex" yaml:"metric_name_regex"` MetricNameChar string `json:"metric_name_char" toml:"metric_name_char" yaml:"metric_name_char"` RunTTL string `json:"run_ttl" toml:"run_ttl" yaml:"run_ttl"` EnableIPv4 string `json:"enable_ipv4" toml:"enable_ipv4" yaml:"enable_ipv4"` EnableIPv6 string `json:"enable_ipv6" toml:"enable_ipv6" yaml:"enable_ipv6"` }
NetUDPOptions defines what elements can be overridden in a config file
type Objects ¶
type Objects struct {
// contains filtered or unexported fields
}
Objects metrics from the Windows Management Interface (wmi)
func (*Objects) Inventory ¶
func (c *Objects) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type PagingFile ¶
type PagingFile struct {
// contains filtered or unexported fields
}
PagingFile metrics from the Windows Management Interface (wmi)
func (*PagingFile) Collect ¶
func (c *PagingFile) Collect(ctx context.Context) error
Collect metrics from the wmi resource
func (*PagingFile) Inventory ¶
func (c *PagingFile) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type Processes ¶
type Processes struct {
// contains filtered or unexported fields
}
Processes metrics from the Windows Management Interface (wmi)
func (*Processes) Inventory ¶
func (c *Processes) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type ProcessesOptions ¶
type ProcessesOptions struct { ID string `json:"id" toml:"id" yaml:"id"` IncludeRegex string `json:"include_regex" toml:"include_regex" yaml:"include_regex"` ExcludeRegex string `json:"exclude_regex" toml:"exclude_regex" yaml:"exclude_regex"` MetricNameRegex string `json:"metric_name_regex" toml:"metric_name_regex" yaml:"metric_name_regex"` MetricNameChar string `json:"metric_name_char" toml:"metric_name_char" yaml:"metric_name_char"` RunTTL string `json:"run_ttl" toml:"run_ttl" yaml:"run_ttl"` }
ProcessesOptions defines what elements can be overridden in a config file
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor metrics from the Windows Management Interface (wmi)
func (*Processor) Inventory ¶
func (c *Processor) Inventory() collector.InventoryStats
Inventory returns collector stats for /inventory endpoint
type Win32_PerfFormattedData_PerfDisk_LogicalDisk ¶
type Win32_PerfFormattedData_PerfDisk_LogicalDisk struct { Name string AvgDiskBytesPerRead uint64 AvgDiskBytesPerTransfer uint64 AvgDiskBytesPerWrite uint64 AvgDiskQueueLength uint64 AvgDiskReadQueueLength uint64 AvgDiskWriteQueueLength uint64 DiskBytesPersec uint64 DiskReadBytesPersec uint64 DiskWriteBytesPersec uint64 DiskWritesPersec uint64 PercentDiskReadTime uint64 PercentDiskTime uint64 PercentDiskWriteTime uint64 PercentIdleTime uint64 AvgDisksecPerRead uint32 AvgDisksecPerTransfer uint32 AvgDisksecPerWrite uint32 CurrentDiskQueueLength uint32 DiskReadsPersec uint32 DiskTransfersPersec uint32 FreeMegabytes uint32 PercentFreeSpace uint32 SplitIOPerSec uint32 }
Win32_PerfFormattedData_PerfDisk_LogicalDisk defines the metrics to collect https://technet.microsoft.com/en-ca/aa394261(v=vs.71)
type Win32_PerfFormattedData_PerfDisk_PhysicalDisk ¶
type Win32_PerfFormattedData_PerfDisk_PhysicalDisk struct { Name string AvgDiskBytesPerRead uint64 AvgDiskBytesPerTransfer uint64 AvgDiskBytesPerWrite uint64 AvgDiskQueueLength uint64 AvgDiskReadQueueLength uint64 AvgDiskWriteQueueLength uint64 DiskBytesPersec uint64 DiskReadBytesPersec uint64 DiskWriteBytesPersec uint64 DiskWritesPersec uint64 PercentDiskReadTime uint64 PercentDiskTime uint64 PercentDiskWriteTime uint64 PercentIdleTime uint64 CurrentDiskQueueLength uint32 AvgDisksecPerRead uint32 AvgDisksecPerTransfer uint32 AvgDisksecPerWrite uint32 DiskReadsPersec uint32 DiskTransfersPersec uint32 SplitIOPerSec uint32 }
Win32_PerfFormattedData_PerfDisk_PhysicalDisk defines the metrics to collect
type Win32_PerfFormattedData_PerfOS_Cache ¶
type Win32_PerfFormattedData_PerfOS_Cache struct { AsyncCopyReadsPersec uint32 AsyncDataMapsPersec uint32 AsyncFastReadsPersec uint32 AsyncMDLReadsPersec uint32 AsyncPinReadsPersec uint32 CopyReadHitsPercent uint32 CopyReadsPersec uint32 DataFlushesPersec uint32 DataFlushPagesPersec uint32 DataMapHitsPercent uint32 DataMapPinsPersec uint32 DataMapsPersec uint32 DirtyPages uint64 DirtyPageThreshold uint64 FastReadNotPossiblesPersec uint32 FastReadResourceMissesPersec uint32 FastReadsPersec uint32 LazyWriteFlushesPersec uint32 LazyWritePagesPersec uint32 MDLReadHitsPercent uint32 MDLReadsPersec uint32 PinReadHitsPercent uint32 PinReadsPersec uint32 ReadAheadsPersec uint32 SyncCopyReadsPersec uint32 SyncDataMapsPersec uint32 SyncFastReadsPersec uint32 SyncMDLReadsPersec uint32 SyncPinReadsPersec uint32 }
Win32_PerfFormattedData_PerfOS_Cache defines the metrics to collect https://wutils.com/wmi/root/cimv2/win32_perfformatteddata_perfos_cache/
type Win32_PerfFormattedData_PerfOS_Memory ¶
type Win32_PerfFormattedData_PerfOS_Memory struct { AvailableBytes uint64 CacheBytes uint64 CacheFaultsPersec uint64 CommittedBytes uint64 DemandZeroFaultsPersec uint64 FreeAndZeroPageListBytes uint64 FreeSystemPageTableEntries uint64 ModifiedPageListBytes uint64 PageFaultsPersec uint64 PageReadsPersec uint64 PagesInputPersec uint64 PagesOutputPersec uint64 PagesPersec uint64 PageWritesPersec uint64 PercentCommittedBytesInUse uint64 PoolNonpagedAllocs uint64 PoolNonpagedBytes uint64 PoolPagedAllocs uint64 PoolPagedBytes uint64 PoolPagedResidentBytes uint64 StandbyCacheCoreBytes uint64 StandbyCacheNormalPriorityBytes uint64 StandbyCacheReserveBytes uint64 SystemCacheResidentBytes uint64 SystemCodeResidentBytes uint64 SystemCodeTotalBytes uint64 SystemDriverTotalBytes uint64 TransitionFaultsPersec uint64 TransitionPagesRePurposedPersec uint64 WriteCopiesPersec uint64 }
Win32_PerfFormattedData_PerfOS_Memory defines the metrics to collect
type Win32_PerfFormattedData_PerfOS_Objects ¶
type Win32_PerfFormattedData_PerfOS_Objects struct { Events uint32 Mutexes uint32 Processes uint32 Sections uint32 Semaphores uint32 Threads uint32 }
Win32_PerfFormattedData_PerfOS_Objects defines the metrics to collect
type Win32_PerfFormattedData_PerfOS_PagingFile ¶
Win32_PerfFormattedData_PerfOS_PagingFile defines the metrics to collect
type Win32_PerfFormattedData_PerfOS_Processor ¶
type Win32_PerfFormattedData_PerfOS_Processor struct { Name string C1TransitionsPersec uint64 C2TransitionsPersec uint64 C3TransitionsPersec uint64 DPCsQueuedPersec uint32 InterruptsPersec uint32 PercentC1Time uint64 PercentC2Time uint64 PercentC3Time uint64 PercentDPCTime uint64 PercentIdleTime uint64 PercentInterruptTime uint64 PercentPrivilegedTime uint64 PercentProcessorTime uint64 PercentUserTime uint64 }
Win32_PerfFormattedData_PerfOS_Processor defines the metrics to collect
type Win32_PerfFormattedData_PerfProc_Process ¶
type Win32_PerfFormattedData_PerfProc_Process struct { Name string ElapsedTime uint64 IODataBytesPersec uint64 IODataOperationsPersec uint64 IOOtherBytesPersec uint64 IOOtherOperationsPersec uint64 IOReadBytesPersec uint64 IOReadOperationsPersec uint64 IOWriteBytesPersec uint64 IOWriteOperationsPersec uint64 PageFileBytes uint64 PageFileBytesPeak uint64 PercentPrivilegedTime uint64 PercentProcessorTime uint64 PercentUserTime uint64 PrivateBytes uint64 VirtualBytes uint64 VirtualBytesPeak uint64 WorkingSet uint64 WorkingSetPeak uint64 WorkingSetPrivate uint64 CreatingProcessID uint32 HandleCount uint32 IDProcess uint32 PageFaultsPersec uint32 PoolNonpagedBytes uint32 PoolPagedBytes uint32 PriorityBase uint32 ThreadCount uint32 }
Win32_PerfFormattedData_PerfProc_Process defines the metrics to collect https://technet.microsoft.com/en-ca/aa394277(v=vs.71)
type Win32_PerfRawData_Tcpip_IPv4 ¶
type Win32_PerfRawData_Tcpip_IPv4 struct { DatagramsForwardedPersec uint32 DatagramsOutboundDiscarded uint32 DatagramsOutboundNoRoute uint32 DatagramsPersec uint32 DatagramsReceivedAddressErrors uint32 DatagramsReceivedDeliveredPersec uint32 DatagramsReceivedDiscarded uint32 DatagramsReceivedHeaderErrors uint32 DatagramsReceivedPersec uint32 DatagramsReceivedUnknownProtocol uint32 DatagramsSentPersec uint32 FragmentationFailures uint32 FragmentedDatagramsPersec uint32 FragmentReassemblyFailures uint32 FragmentsCreatedPersec uint32 FragmentsReassembledPersec uint32 FragmentsReceivedPersec uint32 }
Win32_PerfRawData_Tcpip_IPv4 defines the metrics to collect
type Win32_PerfRawData_Tcpip_IPv6 ¶
type Win32_PerfRawData_Tcpip_IPv6 struct { DatagramsForwardedPersec uint32 DatagramsOutboundDiscarded uint32 DatagramsOutboundNoRoute uint32 DatagramsPersec uint32 DatagramsReceivedAddressErrors uint32 DatagramsReceivedDeliveredPersec uint32 DatagramsReceivedDiscarded uint32 DatagramsReceivedHeaderErrors uint32 DatagramsReceivedPersec uint32 DatagramsReceivedUnknownProtocol uint32 DatagramsSentPersec uint32 FragmentationFailures uint32 FragmentedDatagramsPersec uint32 FragmentReassemblyFailures uint32 FragmentsCreatedPersec uint32 FragmentsReassembledPersec uint32 FragmentsReceivedPersec uint32 }
Win32_PerfRawData_Tcpip_IPv6 defines the metrics to collect
type Win32_PerfRawData_Tcpip_NetworkInterface ¶
type Win32_PerfRawData_Tcpip_NetworkInterface struct { BytesReceivedPersec uint64 BytesSentPersec uint64 BytesTotalPersec uint64 CurrentBandwidth uint64 Name string OffloadedConnections uint64 OutputQueueLength uint64 PacketsOutboundDiscarded uint64 PacketsOutboundErrors uint64 PacketsPersec uint64 PacketsReceivedDiscarded uint64 PacketsReceivedErrors uint64 PacketsReceivedNonUnicastPersec uint64 PacketsReceivedPersec uint64 PacketsReceivedUnicastPersec uint64 PacketsReceivedUnknown uint64 PacketsSentNonUnicastPersec uint64 PacketsSentPersec uint64 PacketsSentUnicastPersec uint64 TCPActiveRSCConnections uint64 TCPRSCAveragePacketSize uint64 TCPRSCCoalescedPacketsPersec uint64 TCPRSCExceptionsPersec uint64 }
Win32_PerfRawData_Tcpip_NetworkInterface defines the metrics to collect https://technet.microsoft.com/en-us/security/aa394340(v=vs.80)
type Win32_PerfRawData_Tcpip_TCPv4 ¶
type Win32_PerfRawData_Tcpip_TCPv4 struct { ConnectionFailures uint32 ConnectionsActive uint32 ConnectionsEstablished uint32 ConnectionsPassive uint32 ConnectionsReset uint32 SegmentsPersec uint32 SegmentsReceivedPersec uint32 SegmentsRetransmittedPersec uint32 SegmentsSentPersec uint32 }
Win32_PerfRawData_Tcpip_TCPv4 defines the metrics to collect
type Win32_PerfRawData_Tcpip_TCPv6 ¶
type Win32_PerfRawData_Tcpip_TCPv6 struct { ConnectionFailures uint32 ConnectionsActive uint32 ConnectionsEstablished uint32 ConnectionsPassive uint32 ConnectionsReset uint32 SegmentsPersec uint32 SegmentsReceivedPersec uint32 SegmentsRetransmittedPersec uint32 SegmentsSentPersec uint32 }
Win32_PerfRawData_Tcpip_TCPv6 defines the metrics to collect