feat: add additional fields for pod IP and node name in OpenTelemetry log transformation
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
61e3f5caff
commit
a72ed9b1b9
@ -68,6 +68,9 @@ spec:
|
||||
- set(body["k8s"], resource.attributes["k8s.pod.name"])
|
||||
- set(body["service"], resource.attributes["service.name"])
|
||||
- set(body["namespace"], resource.attributes["service.namespace"])
|
||||
# 可以添加更多需要的字段
|
||||
- set(body["pod_ip"], resource.attributes["k8s.pod.ip"])
|
||||
- set(body["node_name"], resource.attributes["k8s.node.name"])
|
||||
batch:
|
||||
send_batch_size: 1000
|
||||
timeout: 10s
|
||||
|
||||
Loading…
Reference in New Issue
Block a user