features

package
v1.17.0-pre.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"enabled-features",
	"Exports prometheus metrics describing which features are enabled in operator",

	cell.Invoke(updateOperatorConfigMetricOnStart),
	cell.Provide(
		func(m Metrics) featureMetrics {
			return m
		},
	),
	metrics.Metric(func() Metrics {
		return NewMetrics(true)
	}),
)

Cell will retrieve information from all other cells / configuration to describe, in form of prometheus metrics, which features are enabled on the operator.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	ACLBGatewayAPIEnabled               metric.Gauge
	ACLBIngressControllerEnabled        metric.Gauge
	ACLBIPAMEnabled                     metric.Gauge
	ACLBL7AwareTrafficManagementEnabled metric.Gauge
	ACLBNodeIPAMEnabled                 metric.Gauge
}

func NewMetrics

func NewMetrics(withDefaults bool) Metrics

NewMetrics returns all feature metrics. If 'withDefaults' is set, then all metrics will have defined all of their possible values.

Jump to

Keyboard shortcuts

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