collector

package
v0.0.0-...-2ce8334 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: EUPL-1.2 Imports: 14 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 {
	// 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 NewNotifyCollector

func NewNotifyCollector(logger log.Logger) Collector

func NewQueueRunnerCollector

func NewQueueRunnerCollector(logger log.Logger) Collector

type HydraCollector

type HydraCollector struct {
	Collectors map[string]Collector
	// contains filtered or unexported fields
}

func NewHydraCollector

func NewHydraCollector(logger log.Logger) (*HydraCollector, error)

func (HydraCollector) Collect

func (n HydraCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface.

func (HydraCollector) Describe

func (n HydraCollector) 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