Documentation ¶
Rendered for windows/amd64
Index ¶
Constants ¶
View Source
const ( DefaultCollectors = "cpu,cs,logical_disk,physical_disk,net,os,service,system,textfile" DefaultCollectorsPlaceholder = "[defaults]" Namespace = "windows" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface { Build() error // GetName get the name of the collector GetName() string // GetPerfCounter returns the perf counter required by the collector GetPerfCounter() ([]string, error) // Collect Get new metrics and expose them via prometheus registry. Collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) (err error) SetLogger(logger log.Logger) }
Collector is the interface a collector has to implement.
type CollectorBuilder ¶
type CollectorBuilderWithFlags ¶
type CollectorBuilderWithFlags func(*kingpin.Application) Collector
type ScrapeContext ¶
type ScrapeContext struct {
PerfObjects map[string]*perflib.PerfObject
}
Click to show internal directories.
Click to hide internal directories.