@@ -77,22 +77,6 @@ collectors:
77
77
resource_attributes :
78
78
k8s.cluster.name :
79
79
enabled : true
80
- # [Resource Processor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourceprocessor)
81
- resource/k8s : # Resource attributes tailored for services within Kubernetes.
82
- attributes :
83
- - key : service.name # Set the service.name resource attribute based on the well-known app.kubernetes.io/name label
84
- from_attribute : app.label.name
85
- action : insert
86
- - key : service.name # Set the service.name resource attribute based on the k8s.container.name attribute
87
- from_attribute : k8s.container.name
88
- action : insert
89
- - key : app.label.name # Delete app.label.name attribute previously used for service.name
90
- action : delete
91
- - key : service.version # Set the service.version resource attribute based on the well-known app.kubernetes.io/version label
92
- from_attribute : app.label.version
93
- action : insert
94
- - key : app.label.version # Delete app.label.version attribute previously used for service.version
95
- action : delete
96
80
resource/hostname :
97
81
attributes :
98
82
- key : host.name
@@ -125,13 +109,9 @@ collectors:
125
109
- " k8s.pod.ip"
126
110
- " k8s.pod.uid"
127
111
- " k8s.pod.start_time"
128
- labels :
129
- - tag_name : app.label.name
130
- key : app.kubernetes.io/name
131
- from : pod
132
- - tag_name : app.label.version
133
- key : app.kubernetes.io/version
134
- from : pod
112
+ # Service attributes added based on https://opentelemetry.io/docs/specs/semconv/non-normative/k8s-attributes/#service-attributes
113
+ - " service.name"
114
+ - " service.version"
135
115
receivers :
136
116
# [K8s Events Receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/k8seventsreceiver)
137
117
k8s_events :
@@ -178,7 +158,6 @@ collectors:
178
158
- resourcedetection/eks
179
159
- resourcedetection/gcp
180
160
- resourcedetection/aks
181
- - resource/k8s
182
161
- resource/hostname
183
162
receivers :
184
163
- k8s_cluster
@@ -298,22 +277,6 @@ collectors:
298
277
enabled : false
299
278
host.id :
300
279
enabled : true
301
- # [Resource Processor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourceprocessor)
302
- resource/k8s : # Resource attributes tailored for services within Kubernetes.
303
- attributes :
304
- - key : service.name # Set the service.name resource attribute based on the well-known app.kubernetes.io/name label
305
- from_attribute : app.label.name
306
- action : insert
307
- - key : service.name # Set the service.name resource attribute based on the k8s.container.name attribute
308
- from_attribute : k8s.container.name
309
- action : insert
310
- - key : app.label.name # Delete app.label.name attribute previously used for service.name
311
- action : delete
312
- - key : service.version # Set the service.version resource attribute based on the well-known app.kubernetes.io/version label
313
- from_attribute : app.label.version
314
- action : insert
315
- - key : app.label.version # Delete app.label.version attribute previously used for service.version
316
- action : delete
317
280
resource/cloud :
318
281
attributes :
319
282
- key : cloud.instance.id
@@ -349,13 +312,9 @@ collectors:
349
312
- " k8s.pod.ip"
350
313
- " k8s.pod.uid"
351
314
- " k8s.pod.start_time"
352
- labels :
353
- - tag_name : app.label.name
354
- key : app.kubernetes.io/name
355
- from : pod
356
- - tag_name : app.label.version
357
- key : app.kubernetes.io/version
358
- from : pod
315
+ # Service attributes added based on https://opentelemetry.io/docs/specs/semconv/non-normative/k8s-attributes/#service-attributes
316
+ - " service.name"
317
+ - " service.version"
359
318
receivers :
360
319
# [OTLP Receiver](https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/otlpreceiver)
361
320
otlp :
@@ -501,7 +460,6 @@ collectors:
501
460
- resourcedetection/eks
502
461
- resourcedetection/gcp
503
462
- resourcedetection/aks
504
- - resource/k8s
505
463
- resource/hostname
506
464
- resource/cloud
507
465
exporters :
@@ -517,7 +475,6 @@ collectors:
517
475
- resourcedetection/eks
518
476
- resourcedetection/gcp
519
477
- resourcedetection/aks
520
- - resource/k8s
521
478
- resource/hostname
522
479
- resource/cloud
523
480
exporters :
0 commit comments