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 ¶
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 NewFRRCollector ¶
NewFRRCollector returns a new Collector exposing buddyinfo stats.
func NewNetlinkCollector ¶
NewNetlinkCollector returns a new Collector exposing buddyinfo stats.
type DasSchiffNetworkOperatorCollector ¶
DasSchiffNetworkOperatorCollector implements the prometheus.Collector interface.
func NewDasSchiffNetworkOperatorCollector ¶
func NewDasSchiffNetworkOperatorCollector(collectorConfig map[string]bool) (*DasSchiffNetworkOperatorCollector, error)
NewDasSchiffNetworkOperatorCollector creates a new DasSchiffNetworkOperatorCollector.
func (DasSchiffNetworkOperatorCollector) Collect ¶
func (n DasSchiffNetworkOperatorCollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (DasSchiffNetworkOperatorCollector) Describe ¶
func (DasSchiffNetworkOperatorCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface.
Click to show internal directories.
Click to hide internal directories.