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(newOperatorConfigMetricOnStart), cell.Provide( func(m Metrics) featureMetrics { return m }, ), cell.Metric(func() Metrics { if withDefaults != "" { return NewMetrics(true) } return NewMetrics(false) }), )
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 }
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.