fix: refactor OpenTelemetry configuration by removing unused operators and restructuring metadata extraction
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
b8af384f68
commit
ed5c6a45af
@ -15,30 +15,20 @@ spec:
|
|||||||
start_at: beginning
|
start_at: beginning
|
||||||
include_file_path: true
|
include_file_path: true
|
||||||
include_file_name: true
|
include_file_name: true
|
||||||
operators:
|
|
||||||
- type: json_parser
|
|
||||||
timestamp:
|
|
||||||
parse_from: record.time.timestamp
|
|
||||||
layout: unix_float
|
|
||||||
- type: move
|
|
||||||
from: record.level.name
|
|
||||||
to: severity
|
|
||||||
- type: move
|
|
||||||
from: record.message
|
|
||||||
to: message
|
|
||||||
|
|
||||||
processors:
|
processors:
|
||||||
k8sattributes:
|
k8sattributes:
|
||||||
auth_type: "serviceAccount"
|
auth_type: "serviceAccount"
|
||||||
passthrough: false
|
passthrough: false
|
||||||
extract:
|
extract:
|
||||||
- k8s.pod.name
|
metadata:
|
||||||
- k8s.pod.ip
|
- k8s.pod.name
|
||||||
- k8s.pod.uid
|
- k8s.pod.ip
|
||||||
- k8s.deployment.name
|
- k8s.pod.uid
|
||||||
- k8s.deployment.uid
|
- k8s.deployment.name
|
||||||
- k8s.namespace.name
|
- k8s.deployment.uid
|
||||||
- k8s.node.name
|
- k8s.namespace.name
|
||||||
|
- k8s.node.name
|
||||||
pod_association:
|
pod_association:
|
||||||
- sources:
|
- sources:
|
||||||
- from: resource_attribute
|
- from: resource_attribute
|
||||||
@ -46,6 +36,8 @@ spec:
|
|||||||
- sources:
|
- sources:
|
||||||
- from: resource_attribute
|
- from: resource_attribute
|
||||||
name: k8s.pod.uid
|
name: k8s.pod.uid
|
||||||
|
- sources:
|
||||||
|
- from: connection
|
||||||
resource:
|
resource:
|
||||||
attributes:
|
attributes:
|
||||||
- key: service.name
|
- key: service.name
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user