Skip to content

Commit

Permalink
Merge pull request #46 from tetianakravchenko/ecs-remove-extra-k8satt…
Browse files Browse the repository at this point in the history
…ributes

split k8sattributes/ecs processor: do not add any extra metadata
  • Loading branch information
tetianakravchenko authored Nov 6, 2024
2 parents ac9b5d7 + bb27128 commit a79624b
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion resources/kubernetes/operator/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,28 @@ collectors:
- tag_name: app.label.version
key: app.kubernetes.io/version
from: pod
k8sattributes/ecs:
filter:
# Only retrieve pods running on the same node as the collector
node_from_env_var: OTEL_K8S_NODE_NAME
passthrough: false
pod_association:
# Below association takes a look at the k8s.pod.ip and k8s.pod.uid resource attributes or connection's context, and tries to match it with the pod having the same attribute.
- sources:
- from: resource_attribute
name: k8s.pod.ip
- sources:
- from: resource_attribute
name: k8s.pod.uid
- sources:
- from: connection
extract:
metadata:
- "k8s.replicaset.name"
- "k8s.statefulset.name"
- "k8s.daemonset.name"
- "k8s.cronjob.name"
- "k8s.job.name"
receivers:
# [OTLP Receiver](https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/otlpreceiver)
otlp:
Expand Down Expand Up @@ -852,7 +874,7 @@ collectors:
processors:
- elasticinframetrics
- batch
- k8sattributes
- k8sattributes/ecs
- resourcedetection/system
- resourcedetection/eks
- resourcedetection/gcp
Expand Down

0 comments on commit a79624b

Please sign in to comment.