github.com/cilium/cilium@v1.16.2/pkg/k8s/watchers/resources/resources.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright Authors of Cilium 3 4 // This package contains exported resource identifiers and metric resource labels related to 5 // K8s watchers. 6 package resources 7 8 const ( 9 // K8sAPIGroupServiceV1Core is the identifier for K8s resources of type core/v1/Service. 10 K8sAPIGroupServiceV1Core = "core/v1::Service" 11 // K8sAPIGroupPodV1Core is the identifier for K8s resources of type core/v1/Pod. 12 K8sAPIGroupPodV1Core = "core/v1::Pods" 13 // K8sAPIGroupEndpointSliceOrEndpoint is the combined identifier for K8s EndpointSlice and 14 // Endpoint resources. 15 K8sAPIGroupEndpointSliceOrEndpoint = "EndpointSliceOrEndpoint" 16 17 // MetricCNP is the scope label for CiliumNetworkPolicy event metrics. 18 MetricCNP = "CiliumNetworkPolicy" 19 // MetricCCNP is the scope label for CiliumClusterwideNetworkPolicy event metrics. 20 MetricCCNP = "CiliumClusterwideNetworkPolicy" 21 // MetricCCG is the scope label for CiliumCIDRGroup event metrics. 22 MetricCCG = "CiliumCIDRGroup" 23 // MetricService is the scope label for Kubernetes Service event metrics. 24 MetricService = "Service" 25 // MetricEndpoint is the scope label for Kubernetes Endpoint event metrics. 26 MetricEndpoint = "Endpoint" 27 // MetricEndpointSlice is the scope label for Kubernetes EndpointSlice event metrics. 28 MetricEndpointSlice = "EndpointSlice" 29 30 // MetricCreate the label for watcher metrics related to create events. 31 MetricCreate = "create" 32 // MetricUpdate the label for watcher metrics related to update events. 33 MetricUpdate = "update" 34 // MetricDelete the label for watcher metrics related to delete events. 35 MetricDelete = "delete" 36 )