-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[k8sattributes] Revisit regex based metadata extraction #44831
Copy link
Copy link
Open
Labels
component-stability-phase-1Part of the Phase 1 Component Stability Project.Part of the Phase 1 Component Stability Project.never staleIssues marked with this label will be never staled and automatically removedIssues marked with this label will be never staled and automatically removedpriority:p1HighHighprocessor/k8sattributesk8s Attributes processork8s Attributes processor
Metadata
Metadata
Assignees
Labels
component-stability-phase-1Part of the Phase 1 Component Stability Project.Part of the Phase 1 Component Stability Project.never staleIssues marked with this label will be never staled and automatically removedIssues marked with this label will be never staled and automatically removedpriority:p1HighHighprocessor/k8sattributesk8s Attributes processork8s Attributes processor
Type
Projects
Status
In Progress
As it was mentioned at #23067 (comment) recently, we should ensure that metadata extraction is consistent for different types of workloads.
Right now we use some regexp patterns for extracting owners' names:
opentelemetry-collector-contrib/processor/k8sattributesprocessor/internal/kube/client.go
Lines 135 to 145 in 07228c0
#42534 added support for extracting the deployment name from the replicaset's name behind a setting. But for other workloads that's not configurable ie:
opentelemetry-collector-contrib/processor/k8sattributesprocessor/internal/kube/client.go
Line 892 in 9cbe6fb
We should revisit this and aim for consistency.
As it was also mentioned in the other issue this logic is not guaranteed: kubernetes/kubernetes#121687 (comment). Hence we should also evaluate if we actually want this pattern.
FYI @dashpole @JeffLuoo