-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
processor/k8sattributesk8s Attributes processork8s Attributes processor
Description
We should extract the label attributes from the semconv package directly (conventions "go.opentelemetry.io/otel/semconv/v1.38.0" ->
opentelemetry-collector-contrib/processor/k8sattributesprocessor/internal/kube/client.go
Line 20 in 8ce72b2
| conventions "go.opentelemetry.io/otel/semconv/v1.38.0" |
That goes for all of
opentelemetry-collector-contrib/processor/k8sattributesprocessor/internal/kube/client.go
Lines 43 to 66 in 8ce72b2
| K8sPodLabelsKey = "k8s.pod.labels.%s" | |
| K8sPodLabelKey = "k8s.pod.label.%s" | |
| K8sPodAnnotationsKey = "k8s.pod.annotations.%s" | |
| K8sPodAnnotationKey = "k8s.pod.annotation.%s" | |
| K8sNodeLabelsKey = "k8s.node.labels.%s" | |
| K8sNodeLabelKey = "k8s.node.label.%s" | |
| K8sNodeAnnotationsKey = "k8s.node.annotations.%s" | |
| K8sNodeAnnotationKey = "k8s.node.annotation.%s" | |
| K8sNamespaceLabelsKey = "k8s.namespace.labels.%s" | |
| K8sNamespaceLabelKey = "k8s.namespace.label.%s" | |
| K8sNamespaceAnnotationsKey = "k8s.namespace.annotations.%s" | |
| K8sNamespaceAnnotationKey = "k8s.namespace.annotation.%s" | |
| // Semconv attributes https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/k8s.md#deployment | |
| K8sDeploymentLabel = "k8s.deployment.label.%s" | |
| K8sDeploymentAnnotation = "k8s.deployment.annotation.%s" | |
| // Semconv attributes https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/k8s.md#statefulset | |
| K8sStatefulSetLabel = "k8s.statefulset.label.%s" | |
| K8sStatefulSetAnnotation = "k8s.statefulset.annotation.%s" | |
| // Semconv attributes https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/k8s.md#daemonset | |
| K8sDaemonSetLabel = "k8s.daemonset.label.%s" | |
| K8sDaemonSetAnnotation = "k8s.daemonset.annotation.%s" | |
| // Semconv attributes https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/k8s.md#job | |
| K8sJobLabel = "k8s.job.label.%s" | |
| K8sJobAnnotation = "k8s.job.annotation.%s" |
Originally posted by @ChrsMark in #45307 (comment)
Metadata
Metadata
Assignees
Labels
processor/k8sattributesk8s Attributes processork8s Attributes processor