Skip to content

Commit

Permalink
Merge pull request #37 from elastic/otel_hostname_fix
Browse files Browse the repository at this point in the history
Adding fix for host.name field update based on k8s.node.name
  • Loading branch information
gizas authored Oct 25, 2024
2 parents e33fb95 + dc08400 commit 038b337
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions resources/kubernetes/operator/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ collectors:
action: insert
- key: app.label.version
action: delete
resource/hostname:
attributes:
- key: host.name
from_attribute: k8s.node.name
action: upsert
k8sattributes:
passthrough: false
pod_association:
Expand Down Expand Up @@ -161,6 +166,7 @@ collectors:
- resourcedetection/gcp
- resourcedetection/aks
- resource/k8s
- resource/hostname
receivers:
- k8s_cluster
logs:
Expand All @@ -170,6 +176,7 @@ collectors:
- resourcedetection/eks
- resourcedetection/gcp
- resourcedetection/aks
- resource/hostname
exporters:
- debug
- elasticsearch/otel
Expand Down Expand Up @@ -504,6 +511,11 @@ collectors:
action: insert
- key: app.label.version
action: delete
resource/hostname:
attributes:
- key: host.name
from_attribute: k8s.node.name
action: upsert
attributes/dataset:
actions:
- key: event.dataset
Expand Down Expand Up @@ -727,6 +739,7 @@ collectors:
- resourcedetection/gcp
- resourcedetection/aks
- resource/k8s
- resource/hostname
- resource/cloud
exporters:
- debug
Expand All @@ -742,6 +755,7 @@ collectors:
- resourcedetection/gcp
- resourcedetection/aks
- resource/k8s
- resource/hostname
- resource/cloud
exporters:
- debug
Expand All @@ -759,6 +773,7 @@ collectors:
- resourcedetection/gcp
- resourcedetection/aks
- resource/k8s
- resource/hostname
- resource/cloud
- attributes/dataset
- resource/process
Expand All @@ -770,6 +785,7 @@ collectors:
- otlp
processors:
- batch
- resource/hostname
exporters:
- debug
- signaltometrics
Expand All @@ -779,6 +795,7 @@ collectors:
- otlp
processors:
- batch
- resource/hostname
exporters:
- debug
- signaltometrics
Expand All @@ -789,6 +806,7 @@ collectors:
processors:
- batch
- elastictrace
- resource/hostname
exporters:
- debug
- signaltometrics
Expand Down

0 comments on commit 038b337

Please sign in to comment.