Skip to content

Commit 038b337

Browse files
authored
Merge pull request #37 from elastic/otel_hostname_fix
Adding fix for host.name field update based on k8s.node.name
2 parents e33fb95 + dc08400 commit 038b337

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

resources/kubernetes/operator/helm/values.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ collectors:
9595
action: insert
9696
- key: app.label.version
9797
action: delete
98+
resource/hostname:
99+
attributes:
100+
- key: host.name
101+
from_attribute: k8s.node.name
102+
action: upsert
98103
k8sattributes:
99104
passthrough: false
100105
pod_association:
@@ -161,6 +166,7 @@ collectors:
161166
- resourcedetection/gcp
162167
- resourcedetection/aks
163168
- resource/k8s
169+
- resource/hostname
164170
receivers:
165171
- k8s_cluster
166172
logs:
@@ -170,6 +176,7 @@ collectors:
170176
- resourcedetection/eks
171177
- resourcedetection/gcp
172178
- resourcedetection/aks
179+
- resource/hostname
173180
exporters:
174181
- debug
175182
- elasticsearch/otel
@@ -504,6 +511,11 @@ collectors:
504511
action: insert
505512
- key: app.label.version
506513
action: delete
514+
resource/hostname:
515+
attributes:
516+
- key: host.name
517+
from_attribute: k8s.node.name
518+
action: upsert
507519
attributes/dataset:
508520
actions:
509521
- key: event.dataset
@@ -727,6 +739,7 @@ collectors:
727739
- resourcedetection/gcp
728740
- resourcedetection/aks
729741
- resource/k8s
742+
- resource/hostname
730743
- resource/cloud
731744
exporters:
732745
- debug
@@ -742,6 +755,7 @@ collectors:
742755
- resourcedetection/gcp
743756
- resourcedetection/aks
744757
- resource/k8s
758+
- resource/hostname
745759
- resource/cloud
746760
exporters:
747761
- debug
@@ -759,6 +773,7 @@ collectors:
759773
- resourcedetection/gcp
760774
- resourcedetection/aks
761775
- resource/k8s
776+
- resource/hostname
762777
- resource/cloud
763778
- attributes/dataset
764779
- resource/process
@@ -770,6 +785,7 @@ collectors:
770785
- otlp
771786
processors:
772787
- batch
788+
- resource/hostname
773789
exporters:
774790
- debug
775791
- signaltometrics
@@ -779,6 +795,7 @@ collectors:
779795
- otlp
780796
processors:
781797
- batch
798+
- resource/hostname
782799
exporters:
783800
- debug
784801
- signaltometrics
@@ -789,6 +806,7 @@ collectors:
789806
processors:
790807
- batch
791808
- elastictrace
809+
- resource/hostname
792810
exporters:
793811
- debug
794812
- signaltometrics

0 commit comments

Comments
 (0)