fix(opentelemetry): update processor attributes to use environment variable values for improved metadata extraction
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
ddabde9dc0
commit
32d9f41ee5
@ -58,22 +58,22 @@ spec:
|
|||||||
attributes:
|
attributes:
|
||||||
- action: insert
|
- action: insert
|
||||||
key: k8s.node.name
|
key: k8s.node.name
|
||||||
from_env: KUBE_META_NODE_NAME
|
value: ${KUBE_META_NODE_NAME}
|
||||||
- action: insert
|
- action: insert
|
||||||
key: k8s.pod.name
|
key: k8s.pod.name
|
||||||
from_env: KUBE_META_POD_NAME
|
value: ${KUBE_META_POD_NAME}
|
||||||
- action: insert
|
- action: insert
|
||||||
key: k8s.pod.ip
|
key: k8s.pod.ip
|
||||||
from_env: KUBE_META_POD_IP
|
value: ${KUBE_META_POD_IP}
|
||||||
- action: insert
|
- action: insert
|
||||||
key: k8s.pod.uid
|
key: k8s.pod.uid
|
||||||
from_env: KUBE_META_POD_UID
|
value: ${KUBE_META_POD_UID}
|
||||||
- action: insert
|
- action: insert
|
||||||
key: k8s.namespace.name
|
key: k8s.namespace.name
|
||||||
from_env: KUBE_META_NAMESPACE
|
value: ${KUBE_META_NAMESPACE}
|
||||||
- action: insert
|
- action: insert
|
||||||
key: k8s.deployment.name
|
key: k8s.deployment.name
|
||||||
from_env: KUBE_META_OBJECT_NAME
|
value: ${KUBE_META_OBJECT_NAME}
|
||||||
transform:
|
transform:
|
||||||
log_statements:
|
log_statements:
|
||||||
- context: log
|
- context: log
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user