types

package
v0.26.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 4 Imported by: 2

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 CollectorBuilder func(logger log.Logger) Collector

type CollectorBuilderWithFlags

type CollectorBuilderWithFlags func(*kingpin.Application) Collector

type ScrapeContext

type ScrapeContext struct {
	PerfObjects map[string]*perflib.PerfObject
}

Jump to

Keyboard shortcuts

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