Documentation ¶
Index ¶
- Constants
- func Available() []string
- func MapCounterToIndex(name string) string
- type Collector
- type FSRMQuotaCollector
- type MSCluster_Cluster
- type MSCluster_ClusterCollector
- type MSCluster_Network
- type MSCluster_NetworkCollector
- type MSCluster_Node
- type MSCluster_NodeCollector
- type MSCluster_Resource
- type MSCluster_ResourceCollector
- type MSCluster_ResourceGroup
- type MSCluster_ResourceGroupCollector
- type MSFT_FSRMQuota
- type ScrapeContext
- type Win32_PerfRawData_Counters_ThermalZoneInformation
Constants ¶
const (
// TODO: Make package-local
Namespace = "windows"
)
...
Variables ¶
This section is empty.
Functions ¶
func MapCounterToIndex ¶ added in v0.13.0
Types ¶
type Collector ¶
type Collector interface { // Get new metrics and expose them via prometheus registry. Collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) (err error) }
Collector is the interface a collector has to implement.
func NewTextFileCollector ¶ added in v0.3.0
NewTextFileCollector returns a new Collector exposing metrics read from files in the given textfile directory.
func NewThermalZoneCollector ¶ added in v0.8.0
NewThermalZoneCollector ...
type FSRMQuotaCollector ¶ added in v0.14.0
type FSRMQuotaCollector struct { QuotasCount *prometheus.Desc Path *prometheus.Desc PeakUsage *prometheus.Desc Size *prometheus.Desc Usage *prometheus.Desc Description *prometheus.Desc Disabled *prometheus.Desc MatchesTemplate *prometheus.Desc SoftLimit *prometheus.Desc Template *prometheus.Desc }
func (*FSRMQuotaCollector) Collect ¶ added in v0.14.0
func (c *FSRMQuotaCollector) Collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) error
Collect sends the metric values for each metric to the provided prometheus Metric channel.
type MSCluster_Cluster ¶ added in v0.19.0
type MSCluster_Cluster struct { Name string AddEvictDelay uint AdminAccessPoint uint AutoAssignNodeSite uint AutoBalancerLevel uint AutoBalancerMode uint BackupInProgress uint BlockCacheSize uint ClusSvcHangTimeout uint ClusSvcRegroupOpeningTimeout uint ClusSvcRegroupPruningTimeout uint ClusSvcRegroupStageTimeout uint ClusSvcRegroupTickInMilliseconds uint ClusterEnforcedAntiAffinity uint ClusterFunctionalLevel uint ClusterGroupWaitDelay uint ClusterLogLevel uint ClusterLogSize uint ClusterUpgradeVersion uint CrossSiteDelay uint CrossSiteThreshold uint CrossSubnetDelay uint CrossSubnetThreshold uint CsvBalancer uint DatabaseReadWriteMode uint DefaultNetworkRole uint DetectedCloudPlatform uint DetectManagedEvents uint DetectManagedEventsThreshold uint DisableGroupPreferredOwnerRandomization uint DrainOnShutdown uint DynamicQuorumEnabled uint FixQuorum uint GracePeriodEnabled uint GracePeriodTimeout uint GroupDependencyTimeout uint HangRecoveryAction uint IgnorePersistentStateOnStartup uint LogResourceControls uint LowerQuorumPriorityNodeId uint MaxNumberOfNodes uint MessageBufferLength uint MinimumNeverPreemptPriority uint MinimumPreemptorPriority uint NetftIPSecEnabled uint PlacementOptions uint PlumbAllCrossSubnetRoutes uint PreventQuorum uint QuarantineDuration uint QuarantineThreshold uint QuorumArbitrationTimeMax uint QuorumArbitrationTimeMin uint QuorumLogFileSize uint QuorumTypeValue uint RequestReplyTimeout uint ResiliencyDefaultPeriod uint ResiliencyLevel uint ResourceDllDeadlockPeriod uint RootMemoryReserved uint RouteHistoryLength uint S2DBusTypes uint S2DCacheDesiredState uint S2DCacheFlashReservePercent uint S2DCachePageSizeKBytes uint S2DEnabled uint S2DIOLatencyThreshold uint S2DOptimizations uint SameSubnetDelay uint SameSubnetThreshold uint SecurityLevel uint SecurityLevelForStorage uint ShutdownTimeoutInMinutes uint WitnessDatabaseWriteTimeout uint WitnessDynamicWeight uint WitnessRestartInterval uint }
MSCluster_Cluster docs: - https://docs.microsoft.com/en-us/previous-versions/windows/desktop/cluswmi/mscluster-cluster
type MSCluster_ClusterCollector ¶ added in v0.19.0
type MSCluster_ClusterCollector struct { AddEvictDelay *prometheus.Desc AdminAccessPoint *prometheus.Desc AutoAssignNodeSite *prometheus.Desc AutoBalancerLevel *prometheus.Desc AutoBalancerMode *prometheus.Desc BackupInProgress *prometheus.Desc BlockCacheSize *prometheus.Desc ClusSvcHangTimeout *prometheus.Desc ClusSvcRegroupOpeningTimeout *prometheus.Desc ClusSvcRegroupPruningTimeout *prometheus.Desc ClusSvcRegroupStageTimeout *prometheus.Desc ClusSvcRegroupTickInMilliseconds *prometheus.Desc ClusterEnforcedAntiAffinity *prometheus.Desc ClusterFunctionalLevel *prometheus.Desc ClusterGroupWaitDelay *prometheus.Desc ClusterLogLevel *prometheus.Desc ClusterLogSize *prometheus.Desc ClusterUpgradeVersion *prometheus.Desc CrossSiteDelay *prometheus.Desc CrossSiteThreshold *prometheus.Desc CrossSubnetDelay *prometheus.Desc CrossSubnetThreshold *prometheus.Desc CsvBalancer *prometheus.Desc DatabaseReadWriteMode *prometheus.Desc DefaultNetworkRole *prometheus.Desc DetectedCloudPlatform *prometheus.Desc DetectManagedEvents *prometheus.Desc DetectManagedEventsThreshold *prometheus.Desc DisableGroupPreferredOwnerRandomization *prometheus.Desc DrainOnShutdown *prometheus.Desc DynamicQuorumEnabled *prometheus.Desc FixQuorum *prometheus.Desc GracePeriodEnabled *prometheus.Desc GracePeriodTimeout *prometheus.Desc GroupDependencyTimeout *prometheus.Desc HangRecoveryAction *prometheus.Desc IgnorePersistentStateOnStartup *prometheus.Desc LogResourceControls *prometheus.Desc LowerQuorumPriorityNodeId *prometheus.Desc MaxNumberOfNodes *prometheus.Desc MessageBufferLength *prometheus.Desc MinimumNeverPreemptPriority *prometheus.Desc MinimumPreemptorPriority *prometheus.Desc NetftIPSecEnabled *prometheus.Desc PlacementOptions *prometheus.Desc PlumbAllCrossSubnetRoutes *prometheus.Desc PreventQuorum *prometheus.Desc QuarantineDuration *prometheus.Desc QuarantineThreshold *prometheus.Desc QuorumArbitrationTimeMax *prometheus.Desc QuorumArbitrationTimeMin *prometheus.Desc QuorumLogFileSize *prometheus.Desc QuorumTypeValue *prometheus.Desc RequestReplyTimeout *prometheus.Desc ResiliencyDefaultPeriod *prometheus.Desc ResiliencyLevel *prometheus.Desc ResourceDllDeadlockPeriod *prometheus.Desc RootMemoryReserved *prometheus.Desc RouteHistoryLength *prometheus.Desc S2DBusTypes *prometheus.Desc S2DCacheDesiredState *prometheus.Desc S2DCacheFlashReservePercent *prometheus.Desc S2DCachePageSizeKBytes *prometheus.Desc S2DEnabled *prometheus.Desc S2DIOLatencyThreshold *prometheus.Desc S2DOptimizations *prometheus.Desc SameSubnetDelay *prometheus.Desc SameSubnetThreshold *prometheus.Desc SecurityLevel *prometheus.Desc SecurityLevelForStorage *prometheus.Desc ShutdownTimeoutInMinutes *prometheus.Desc WitnessDatabaseWriteTimeout *prometheus.Desc WitnessDynamicWeight *prometheus.Desc WitnessRestartInterval *prometheus.Desc }
A MSCluster_ClusterCollector is a Prometheus collector for WMI MSCluster_Cluster metrics
func (*MSCluster_ClusterCollector) Collect ¶ added in v0.19.0
func (c *MSCluster_ClusterCollector) Collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) error
Collect sends the metric values for each metric to the provided prometheus Metric channel.
type MSCluster_Network ¶ added in v0.19.0
type MSCluster_Network struct { Name string Characteristics uint Flags uint Metric uint Role uint State uint }
MSCluster_Network docs: - https://docs.microsoft.com/en-us/previous-versions/windows/desktop/cluswmi/mscluster-network
type MSCluster_NetworkCollector ¶ added in v0.19.0
type MSCluster_NetworkCollector struct { Characteristics *prometheus.Desc Flags *prometheus.Desc Metric *prometheus.Desc Role *prometheus.Desc State *prometheus.Desc }
A MSCluster_NetworkCollector is a Prometheus collector for WMI MSCluster_Network metrics
func (*MSCluster_NetworkCollector) Collect ¶ added in v0.19.0
func (c *MSCluster_NetworkCollector) Collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) error
Collect sends the metric values for each metric to the provided prometheus Metric channel.
type MSCluster_Node ¶ added in v0.19.0
type MSCluster_Node struct { Name string BuildNumber uint Characteristics uint DetectedCloudPlatform uint DynamicWeight uint Flags uint MajorVersion uint MinorVersion uint NeedsPreventQuorum uint NodeDrainStatus uint NodeHighestVersion uint NodeLowestVersion uint NodeWeight uint State uint StatusInformation uint }
MSCluster_Node docs: - https://docs.microsoft.com/en-us/previous-versions/windows/desktop/cluswmi/mscluster-node
type MSCluster_NodeCollector ¶ added in v0.19.0
type MSCluster_NodeCollector struct { BuildNumber *prometheus.Desc Characteristics *prometheus.Desc DetectedCloudPlatform *prometheus.Desc DynamicWeight *prometheus.Desc Flags *prometheus.Desc MajorVersion *prometheus.Desc MinorVersion *prometheus.Desc NeedsPreventQuorum *prometheus.Desc NodeDrainStatus *prometheus.Desc NodeHighestVersion *prometheus.Desc NodeLowestVersion *prometheus.Desc NodeWeight *prometheus.Desc State *prometheus.Desc StatusInformation *prometheus.Desc }
A MSCluster_NodeCollector is a Prometheus collector for WMI MSCluster_Node metrics
func (*MSCluster_NodeCollector) Collect ¶ added in v0.19.0
func (c *MSCluster_NodeCollector) Collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) error
Collect sends the metric values for each metric to the provided prometheus Metric channel.
type MSCluster_Resource ¶ added in v0.19.0
type MSCluster_Resource struct { Name string Type string OwnerGroup string Characteristics uint DeadlockTimeout uint EmbeddedFailureAction uint Flags uint IsAlivePollInterval uint LooksAlivePollInterval uint MonitorProcessId uint PendingTimeout uint ResourceClass uint RestartAction uint RestartDelay uint RestartPeriod uint RestartThreshold uint RetryPeriodOnFailure uint State uint Subclass uint }
MSCluster_Resource docs: - https://docs.microsoft.com/en-us/previous-versions/windows/desktop/cluswmi/mscluster-resource
type MSCluster_ResourceCollector ¶ added in v0.19.0
type MSCluster_ResourceCollector struct { Characteristics *prometheus.Desc DeadlockTimeout *prometheus.Desc EmbeddedFailureAction *prometheus.Desc Flags *prometheus.Desc IsAlivePollInterval *prometheus.Desc LooksAlivePollInterval *prometheus.Desc MonitorProcessId *prometheus.Desc PendingTimeout *prometheus.Desc ResourceClass *prometheus.Desc RestartAction *prometheus.Desc RestartDelay *prometheus.Desc RestartPeriod *prometheus.Desc RestartThreshold *prometheus.Desc RetryPeriodOnFailure *prometheus.Desc State *prometheus.Desc Subclass *prometheus.Desc }
A MSCluster_ResourceCollector is a Prometheus collector for WMI MSCluster_Resource metrics
func (*MSCluster_ResourceCollector) Collect ¶ added in v0.19.0
func (c *MSCluster_ResourceCollector) Collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) error
Collect sends the metric values for each metric to the provided prometheus Metric channel.
type MSCluster_ResourceGroup ¶ added in v0.19.0
type MSCluster_ResourceGroup struct { Name string AutoFailbackType uint Characteristics uint ColdStartSetting uint DefaultOwner uint FailbackWindowEnd int FailbackWindowStart int FailoverPeriod uint FailoverThreshold uint Flags uint GroupType uint Priority uint ResiliencyPeriod uint State uint }
MSCluster_ResourceGroup docs: - https://docs.microsoft.com/en-us/previous-versions/windows/desktop/cluswmi/mscluster-resourcegroup
type MSCluster_ResourceGroupCollector ¶ added in v0.19.0
type MSCluster_ResourceGroupCollector struct { AutoFailbackType *prometheus.Desc Characteristics *prometheus.Desc ColdStartSetting *prometheus.Desc DefaultOwner *prometheus.Desc FailbackWindowEnd *prometheus.Desc FailbackWindowStart *prometheus.Desc FailoverPeriod *prometheus.Desc FailoverThreshold *prometheus.Desc FaultDomain *prometheus.Desc Flags *prometheus.Desc GroupType *prometheus.Desc PlacementOptions *prometheus.Desc Priority *prometheus.Desc ResiliencyPeriod *prometheus.Desc State *prometheus.Desc }
A MSCluster_ResourceGroupCollector is a Prometheus collector for WMI MSCluster_ResourceGroup metrics
func (*MSCluster_ResourceGroupCollector) Collect ¶ added in v0.19.0
func (c *MSCluster_ResourceGroupCollector) Collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) error
Collect sends the metric values for each metric to the provided prometheus Metric channel.
type MSFT_FSRMQuota ¶ added in v0.14.0
type MSFT_FSRMQuota struct { Name string Path string PeakUsage uint64 Size uint64 Usage uint64 Description string Template string //Threshold string Disabled bool MatchesTemplate bool SoftLimit bool }
MSFT_FSRMQuota docs: https://docs.microsoft.com/en-us/previous-versions/windows/desktop/fsrm/msft-fsrmquota
type ScrapeContext ¶ added in v0.8.0
type ScrapeContext struct {
// contains filtered or unexported fields
}
func PrepareScrapeContext ¶ added in v0.8.0
func PrepareScrapeContext(collectors []string) (*ScrapeContext, error)
PrepareScrapeContext creates a ScrapeContext to be used during a single scrape
type Win32_PerfRawData_Counters_ThermalZoneInformation ¶ added in v0.8.0
type Win32_PerfRawData_Counters_ThermalZoneInformation struct { Name string HighPrecisionTemperature uint32 PercentPassiveLimit uint32 ThrottleReasons uint32 }
Win32_PerfRawData_Counters_ThermalZoneInformation docs: https://wutils.com/wmi/root/cimv2/win32_perfrawdata_counters_thermalzoneinformation/