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: 18 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 cilium-agent",

	cell.Invoke(updateAgentConfigMetricOnStart),
	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 agent.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	CPIPAM                        metric.Vec[metric.Gauge]
	CPIdentityAllocation          metric.Vec[metric.Gauge]
	CPCiliumEndpointSlicesEnabled metric.Gauge

	DPMode         metric.Vec[metric.Gauge]
	DPChaining     metric.Vec[metric.Gauge]
	DPIP           metric.Vec[metric.Gauge]
	DPDeviceConfig metric.Vec[metric.Gauge]

	NPHostFirewallEnabled        metric.Gauge
	NPLocalRedirectPolicyEnabled metric.Gauge
	NPMutualAuthEnabled          metric.Gauge
	NPNonDefaultDenyEnabled      metric.Gauge
	NPCIDRPoliciesToNodes        metric.Vec[metric.Gauge]

	ACLBTransparentEncryption        metric.Vec[metric.Gauge]
	ACLBKubeProxyReplacementEnabled  metric.Gauge
	ACLBNodePortConfig               metric.Vec[metric.Gauge]
	ACLBBGPEnabled                   metric.Gauge
	ACLBEgressGatewayEnabled         metric.Gauge
	ACLBBandwidthManagerEnabled      metric.Gauge
	ACLBSCTPEnabled                  metric.Gauge
	ACLBInternalTrafficPolicyEnabled metric.Gauge
	ACLBVTEPEnabled                  metric.Gauge
	ACLBCiliumEnvoyConfigEnabled     metric.Gauge
	ACLBBigTCPEnabled                metric.Vec[metric.Gauge]
	ACLBL2LBEnabled                  metric.Gauge
	ACLBL2PodAnnouncementEnabled     metric.Gauge
	ACLBExternalEnvoyProxyEnabled    metric.Vec[metric.Gauge]
	ACLBCiliumNodeConfigEnabled      metric.Gauge
}

Metrics represents a collection of metrics related to a specific feature. Each field is named according to the specific feature that it tracks.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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