collector

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO: Make package-local
	Namespace = "windows"
)

...

Variables

This section is empty.

Functions

func Available added in v0.13.0

func Available() []string

func MapCounterToIndex added in v0.13.0

func MapCounterToIndex(name string) string

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 Build added in v0.13.0

func Build(collector string) (Collector, error)

func NewTextFileCollector added in v0.3.0

func NewTextFileCollector() (Collector, error)

NewTextFileCollector returns a new Collector exposing metrics read from files in the given textfile directory.

func NewThermalZoneCollector added in v0.8.0

func NewThermalZoneCollector() (Collector, error)

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 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/

Jump to

Keyboard shortcuts

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