fix(opentelemetry): comment out unused k8sattributes processor and related actions for clarity
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
80e75eea27
commit
1967a7444c
@ -29,54 +29,54 @@ spec:
|
|||||||
parse_from: body
|
parse_from: body
|
||||||
parse_to: attributes
|
parse_to: attributes
|
||||||
processors:
|
processors:
|
||||||
k8sattributes:
|
# k8sattributes:
|
||||||
auth_type: serviceAccount
|
# auth_type: serviceAccount
|
||||||
wait_for_metadata: true
|
# wait_for_metadata: true
|
||||||
wait_for_metadata_timeout: 10s
|
# wait_for_metadata_timeout: 10s
|
||||||
passthrough: false
|
# passthrough: false
|
||||||
extract:
|
# extract:
|
||||||
metadata:
|
# metadata:
|
||||||
- k8s.pod.name
|
# - k8s.pod.name
|
||||||
- k8s.pod.ip
|
# - k8s.pod.ip
|
||||||
- k8s.pod.uid
|
# - k8s.pod.uid
|
||||||
- k8s.deployment.name
|
# - k8s.deployment.name
|
||||||
- k8s.deployment.uid
|
# - k8s.deployment.uid
|
||||||
- k8s.namespace.name
|
# - k8s.namespace.name
|
||||||
- k8s.node.name
|
# - k8s.node.name
|
||||||
attributes:
|
attributes:
|
||||||
actions:
|
actions:
|
||||||
- action: insert
|
# - action: insert
|
||||||
key: kubernetes.pod_name
|
# key: kubernetes.pod_name
|
||||||
from_attribute: k8s.pod.name
|
# from_attribute: k8s.pod.name
|
||||||
- action: insert
|
# - action: insert
|
||||||
key: kubernetes.pod_ip
|
# key: kubernetes.pod_ip
|
||||||
from_attribute: k8s.pod.ip
|
# from_attribute: k8s.pod.ip
|
||||||
- action: insert
|
# - action: insert
|
||||||
key: kubernetes.pod_uid
|
# key: kubernetes.pod_uid
|
||||||
from_attribute: k8s.pod.uid
|
# from_attribute: k8s.pod.uid
|
||||||
- action: insert
|
# - action: insert
|
||||||
key: kubernetes.deployment_name
|
# key: kubernetes.deployment_name
|
||||||
from_attribute: k8s.deployment.name
|
# from_attribute: k8s.deployment.name
|
||||||
- action: insert
|
# - action: insert
|
||||||
key: kubernetes.deployment_uid
|
# key: kubernetes.deployment_uid
|
||||||
from_attribute: k8s.deployment.uid
|
# from_attribute: k8s.deployment.uid
|
||||||
- action: insert
|
# - action: insert
|
||||||
key: kubernetes.namespace_name
|
# key: kubernetes.namespace_name
|
||||||
from_attribute: k8s.namespace.name
|
# from_attribute: k8s.namespace.name
|
||||||
- action: insert
|
# - action: insert
|
||||||
key: kubernetes.node_name
|
# key: kubernetes.node_name
|
||||||
from_attribute: k8s.node.name
|
# from_attribute: k8s.node.name
|
||||||
- action: insert
|
- action: insert
|
||||||
key: app
|
key: app
|
||||||
from_attribute: context.app
|
from_attribute: context.app
|
||||||
- action: insert
|
- action: insert
|
||||||
key: environment
|
key: environment
|
||||||
from_attribute: context.env
|
from_attribute: context.env
|
||||||
transform:
|
# transform:
|
||||||
log_statements:
|
# log_statements:
|
||||||
- context: log
|
# - context: log
|
||||||
statements:
|
# statements:
|
||||||
- set(log.body["kubernetes"], log.attributes["kubernetes"])
|
# - set(log.body["kubernetes"], log.attributes["kubernetes"])
|
||||||
batch:
|
batch:
|
||||||
send_batch_size: 5
|
send_batch_size: 5
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
@ -94,6 +94,6 @@ spec:
|
|||||||
pipelines:
|
pipelines:
|
||||||
logs:
|
logs:
|
||||||
receivers: [filelog]
|
receivers: [filelog]
|
||||||
processors: [k8sattributes, attributes, transform, batch]
|
processors: [k8sattributes, attributes, batch]
|
||||||
exporters: [otlphttp/logs, debug]
|
exporters: [otlphttp/logs, debug]
|
||||||
{{- end }}
|
{{- end }}
|
||||||
Loading…
Reference in New Issue
Block a user