collectors

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerCollector

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

ControllerCollector collects metrics for the NGF controller. Implements the prometheus.Collector interface.

func NewControllerCollector

func NewControllerCollector(constLabels map[string]string) *ControllerCollector

NewControllerCollector creates a new ControllerCollector.

func (*ControllerCollector) Collect

func (c *ControllerCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface Collect method.

func (*ControllerCollector) Describe

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

Describe implements prometheus.Collector interface Describe method.

func (*ControllerCollector) ObserveLastEventBatchProcessTime

func (c *ControllerCollector) ObserveLastEventBatchProcessTime(duration time.Duration)

ObserveLastEventBatchProcessTime adds the last event batch processing time to the histogram.

type ControllerNoopCollector

type ControllerNoopCollector struct{}

ControllerNoopCollector used to initialize the ControllerCollector when metrics are disabled to avoid nil pointer errors.

func NewControllerNoopCollector

func NewControllerNoopCollector() *ControllerNoopCollector

NewControllerNoopCollector returns an instance of the ControllerNoopCollector.

func (*ControllerNoopCollector) ObserveLastEventBatchProcessTime

func (c *ControllerNoopCollector) ObserveLastEventBatchProcessTime(_ time.Duration)

Jump to

Keyboard shortcuts

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