collectors

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	Collect(context.Context, chan<- prometheus.Metric) (err error)
}

type CollectorManager

type CollectorManager struct {
	// contains filtered or unexported fields
}

CollectorManager is a collector that executes all other collectors

func NewCollectorManager

func NewCollectorManager(endpoint string, timeout time.Duration) *CollectorManager

func (*CollectorManager) Collect

func (manager *CollectorManager) Collect(ch chan<- prometheus.Metric)

Collect executes all collectors and sends the collected metrics to the provided channel. It also sends the duration of the collection to the scrapeDurations collector.

func (*CollectorManager) Describe

func (manager *CollectorManager) Describe(ch chan<- *prometheus.Desc)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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