Help us shape the future of Go! Take the 2026 Go Developer Survey

metrics

package
v1.44.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatorCollector

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

OperatorCollector implements prometheus.Collector and exposes custom operator metrics.

func NewOperatorCollector

func NewOperatorCollector(c client.Client, licenseAvailable bool) *OperatorCollector

NewOperatorCollector creates a new OperatorCollector. Set licenseAvailable to true when the LicenseKey CRD exists (Calico Enterprise).

func (*OperatorCollector) Collect

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

Collect implements prometheus.Collector.

func (*OperatorCollector) Describe

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

Describe implements prometheus.Collector.

Jump to

Keyboard shortcuts

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