Documentation
¶
Index ¶
- Variables
- func NewDumpCmd() *cobra.Command
- type Metrics
- func (m Metrics) AddCCEC()
- func (m Metrics) AddCCNP(_ *v2.CiliumNetworkPolicy)
- func (m Metrics) AddCEC()
- func (m Metrics) AddCNP(_ *v2.CiliumNetworkPolicy)
- func (m Metrics) AddClusterMeshConfig(clusterMeshMode string, maxConnectedClusters string)
- func (m Metrics) AddLRPConfig(_ loadbalancer.ServiceName)
- func (m Metrics) AddRule(r types.PolicyEntry)
- func (m Metrics) AddService(svc *loadbalancer.Service)
- func (m Metrics) DelCCEC()
- func (m Metrics) DelCCNP(_ *v2.CiliumNetworkPolicy)
- func (m Metrics) DelCEC()
- func (m Metrics) DelCNP(_ *v2.CiliumNetworkPolicy)
- func (m Metrics) DelClusterMeshConfig(clusterMeshMode string, maxConnectedClusters string)
- func (m Metrics) DelLRPConfig(_ loadbalancer.ServiceName)
- func (m Metrics) DelRule(r types.PolicyEntry)
- func (m Metrics) DelService(svc *loadbalancer.Service)
- type RuleFeatures
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 }, func(m Metrics) policytypes.PolicyMetrics { return m }, func(m Metrics) redirectpolicy.LRPMetrics { return m }, func(m Metrics) reflectors.SVCMetrics { return m }, func(m Metrics) ciliumenvoyconfig.FeatureMetrics { return m }, func(m Metrics) k8s2.CNPMetrics { return m }, func(m Metrics) clustermesh.ClusterMeshMetrics { 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 agent.
Functions ¶
func NewDumpCmd ¶ added in v1.20.0
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]
DPEndpointRoutes metric.Gauge
DPKernelVersion metric.Vec[metric.Gauge]
NPHostFirewallEnabled metric.Gauge
NPLocalRedirectPolicyEnabled metric.Gauge
NPMutualAuthEnabled metric.Gauge
NPNonDefaultDenyEnabled metric.Gauge
NPCIDRPoliciesMode 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
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
NPL3Ingested metric.Vec[metric.Counter]
NPHostNPIngested metric.Vec[metric.Counter]
NPDNSIngested metric.Vec[metric.Counter]
NPToFQDNsIngested metric.Vec[metric.Counter]
NPHTTPIngested metric.Vec[metric.Counter]
NPHTTPHeaderMatchesIngested metric.Vec[metric.Counter]
NPDenyPoliciesIngested metric.Vec[metric.Counter]
NPIngressCIDRGroupIngested metric.Vec[metric.Counter]
NPMutualAuthIngested metric.Vec[metric.Counter]
NPTLSInspectionIngested metric.Vec[metric.Counter]
NPSNIAllowListIngested metric.Vec[metric.Counter]
NPNonDefaultDenyIngested metric.Vec[metric.Counter]
NPLRPIngested metric.Vec[metric.Counter]
NPCNPIngested metric.Vec[metric.Counter]
NPCCNPIngested metric.Vec[metric.Counter]
ACLBInternalTrafficPolicyIngested metric.Vec[metric.Counter]
ACLBCiliumEnvoyConfigIngested metric.Vec[metric.Counter]
ACLBCiliumClusterwideEnvoyConfigIngested metric.Vec[metric.Counter]
ACLBClusterMeshEnabled metric.Vec[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 ¶
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.
func (Metrics) AddCCNP ¶
func (m Metrics) AddCCNP(_ *v2.CiliumNetworkPolicy)
func (Metrics) AddCNP ¶
func (m Metrics) AddCNP(_ *v2.CiliumNetworkPolicy)
func (Metrics) AddClusterMeshConfig ¶
func (Metrics) AddLRPConfig ¶
func (m Metrics) AddLRPConfig(_ loadbalancer.ServiceName)
func (Metrics) AddRule ¶
func (m Metrics) AddRule(r types.PolicyEntry)
func (Metrics) AddService ¶
func (m Metrics) AddService(svc *loadbalancer.Service)
func (Metrics) DelCCNP ¶
func (m Metrics) DelCCNP(_ *v2.CiliumNetworkPolicy)
func (Metrics) DelCNP ¶
func (m Metrics) DelCNP(_ *v2.CiliumNetworkPolicy)
func (Metrics) DelClusterMeshConfig ¶
func (Metrics) DelLRPConfig ¶
func (m Metrics) DelLRPConfig(_ loadbalancer.ServiceName)
func (Metrics) DelRule ¶
func (m Metrics) DelRule(r types.PolicyEntry)
func (Metrics) DelService ¶
func (m Metrics) DelService(svc *loadbalancer.Service)
Click to show internal directories.
Click to hide internal directories.