@@ -73,22 +73,6 @@ collectors:
7373 resource_attributes :
7474 k8s.cluster.name :
7575 enabled : true
76- # [Resource Processor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourceprocessor)
77- resource/k8s : # Resource attributes tailored for services within Kubernetes.
78- attributes :
79- - key : service.name # Set the service.name resource attribute based on the well-known app.kubernetes.io/name label
80- from_attribute : app.label.name
81- action : insert
82- - key : service.name # Set the service.name resource attribute based on the k8s.container.name attribute
83- from_attribute : k8s.container.name
84- action : insert
85- - key : app.label.name # Delete app.label.name attribute previously used for service.name
86- action : delete
87- - key : service.version # Set the service.version resource attribute based on the well-known app.kubernetes.io/version label
88- from_attribute : app.label.version
89- action : insert
90- - key : app.label.version # Delete app.label.version attribute previously used for service.version
91- action : delete
9276 resource/hostname :
9377 attributes :
9478 - key : host.name
@@ -121,13 +105,9 @@ collectors:
121105 - " k8s.pod.ip"
122106 - " k8s.pod.uid"
123107 - " k8s.pod.start_time"
124- labels :
125- - tag_name : app.label.name
126- key : app.kubernetes.io/name
127- from : pod
128- - tag_name : app.label.version
129- key : app.kubernetes.io/version
130- from : pod
108+ # Service attributes added based on https://opentelemetry.io/docs/specs/semconv/non-normative/k8s-attributes/#service-attributes
109+ - " service.name"
110+ - " service.version"
131111 receivers :
132112 # [K8s Objects Receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/k8sobjectsreceiver)
133113 k8sobjects :
@@ -171,7 +151,6 @@ collectors:
171151 - resourcedetection/eks
172152 - resourcedetection/gcp
173153 - resourcedetection/aks
174- - resource/k8s
175154 - resource/hostname
176155 receivers :
177156 - k8s_cluster
@@ -290,22 +269,6 @@ collectors:
290269 enabled : false
291270 host.id :
292271 enabled : true
293- # [Resource Processor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourceprocessor)
294- resource/k8s : # Resource attributes tailored for services within Kubernetes.
295- attributes :
296- - key : service.name # Set the service.name resource attribute based on the well-known app.kubernetes.io/name label
297- from_attribute : app.label.name
298- action : insert
299- - key : service.name # Set the service.name resource attribute based on the k8s.container.name attribute
300- from_attribute : k8s.container.name
301- action : insert
302- - key : app.label.name # Delete app.label.name attribute previously used for service.name
303- action : delete
304- - key : service.version # Set the service.version resource attribute based on the well-known app.kubernetes.io/version label
305- from_attribute : app.label.version
306- action : insert
307- - key : app.label.version # Delete app.label.version attribute previously used for service.version
308- action : delete
309272 resource/cloud :
310273 attributes :
311274 - key : cloud.instance.id
@@ -341,13 +304,9 @@ collectors:
341304 - " k8s.pod.ip"
342305 - " k8s.pod.uid"
343306 - " k8s.pod.start_time"
344- labels :
345- - tag_name : app.label.name
346- key : app.kubernetes.io/name
347- from : pod
348- - tag_name : app.label.version
349- key : app.kubernetes.io/version
350- from : pod
307+ # Service attributes added based on https://opentelemetry.io/docs/specs/semconv/non-normative/k8s-attributes/#service-attributes
308+ - " service.name"
309+ - " service.version"
351310 receivers :
352311 # [OTLP Receiver](https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/otlpreceiver)
353312 otlp :
@@ -493,7 +452,6 @@ collectors:
493452 - resourcedetection/eks
494453 - resourcedetection/gcp
495454 - resourcedetection/aks
496- - resource/k8s
497455 - resource/hostname
498456 - resource/cloud
499457 exporters :
@@ -509,7 +467,6 @@ collectors:
509467 - resourcedetection/eks
510468 - resourcedetection/gcp
511469 - resourcedetection/aks
512- - resource/k8s
513470 - resource/hostname
514471 - resource/cloud
515472 exporters :
0 commit comments