-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
bugSomething isn't workingSomething isn't workingnever staleIssues marked with this label will be never staled and automatically removedIssues marked with this label will be never staled and automatically removedpriority:p2MediumMediumprocessor/k8sattributesk8s Attributes processork8s Attributes processor
Description
Component(s)
No response
What happened?
Description
The documetation states that k8s.cronjob.uid is a valid metadata field that can be extracted, however using it in an extract.metadata sections fails.
It seems that it's not listed here, not sure if by accident or not.
Steps to Reproduce
Start a collector with the config specified below.
Expected Result
Collector starts, pod are added with the k8s.cronjob.uid resource-attribute where applicable
Actual Result
Collector fails to start with the error message specified below.
Collector version
v0.116.0
Environment information
Environment
OS: Alpine Linux 3.22.1
Compiler(if manually compiled): Go 1.23
OpenTelemetry Collector configuration
receivers:
otlp:
protocols:
http:
endpoint: 0.0.0.0:4318
exporters:
otlphttp:
endpoint: http://localhost:8080
processors:
batch:
k8sattributes:
auth_type: serviceAccount
passthrough: false
extract:
metadata:
- k8s.cronjob.uid
pod_association:
- sources:
- from: resource_attribute
name: k8s.pod.uid
service:
pipelines:
logs:
receivers:
- otlp
processors:
- k8sattributes
exporters:
- otlphttpLog output
Error: invalid configuration: processors::k8sattributes: "k8s.cronjob.uid" is not a supported metadata field
2025/09/08 13:10:26 collector server run finished with error: invalid configuration: processors::k8sattributes: "k8s.cronjob.uid" is not a supported metadata fieldAdditional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingnever staleIssues marked with this label will be never staled and automatically removedIssues marked with this label will be never staled and automatically removedpriority:p2MediumMediumprocessor/k8sattributesk8s Attributes processork8s Attributes processor