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 ¶
NewMetrics returns all feature metrics. If 'withDefaults' is set, then all metrics will have defined all of their possible values.
Click to show internal directories.
Click to hide internal directories.