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 { showDefaults := withDefaults != "" showEnvVersion := withoutEnvVersion == "" return NewMetrics(showDefaults, showEnvVersion) }), )
Cell will retrieve information from all other cells / configuration to describe, in form of prometheus metrics, which features are enabled on the operator.
Functions ¶
func NewDumpCmd ¶ added in v1.20.0
Types ¶
type Metrics ¶
type Metrics struct {
ACLBGatewayAPIEnabled metric.Gauge
ACLBIngressControllerEnabled metric.Gauge
ACLBIPAMEnabled metric.Gauge
ACLBL7AwareTrafficManagementEnabled metric.Gauge
ACLBNodeIPAMEnabled metric.Gauge
CPKubernetesVersion metric.Vec[metric.Gauge]
}
func NewMetrics ¶
NewMetrics returns all feature metrics. If 'withDefaults' is set, then all metrics will have defined all of their possible values. If 'withEnvVersion' is set, then we include things like version information from the host.
Click to show internal directories.
Click to hide internal directories.