types

package
v0.0.0-...-b6f583f Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 4 Imported by: 0

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