monitoring

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoData = errors.New("collector returned no data")

ErrNoData indicates the collector found no data to collect, but had no other error.

Functions

func IsNoDataError

func IsNoDataError(err error) bool

Types

type Collector

type Collector interface {
	// Get new metrics and expose them via prometheus registry.
	Update(ch chan<- prometheus.Metric) error
}

Collector is the interface a collector has to implement.

func NewBPFCollector

func NewBPFCollector() (Collector, error)

func NewFRRCollector

func NewFRRCollector() (Collector, error)

NewFRRCollector returns a new Collector exposing buddyinfo stats.

func NewNetlinkCollector

func NewNetlinkCollector() (Collector, error)

NewNetlinkCollector returns a new Collector exposing buddyinfo stats.

type DasSchiffNetworkOperatorCollector

type DasSchiffNetworkOperatorCollector struct {
	Collectors map[string]Collector
}

DasSchiffNetworkOperatorCollector implements the prometheus.Collector interface.

func NewDasSchiffNetworkOperatorCollector

func NewDasSchiffNetworkOperatorCollector(collectorConfig map[string]bool) (*DasSchiffNetworkOperatorCollector, error)

NewDasSchiffNetworkOperatorCollector creates a new DasSchiffNetworkOperatorCollector.

func (DasSchiffNetworkOperatorCollector) Collect

Collect implements the prometheus.Collector interface.

func (DasSchiffNetworkOperatorCollector) Describe

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

Describe implements the prometheus.Collector interface.

Jump to

Keyboard shortcuts

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