fix: add loki.format attribute for log ingestion and remove unnecessary labels from exporter configuration

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-04-16 06:12:42 +08:00
parent ed5c6a45af
commit cf1506978f

View File

@ -46,6 +46,9 @@ spec:
- key: service.namespace
value: "{{ .Release.Namespace }}"
action: upsert
- key: loki.format
action: insert
value: json
batch:
send_batch_size: 1000
timeout: 10s
@ -53,16 +56,6 @@ spec:
exporters:
loki:
endpoint: {{ .Values.logIngest.lokiEndpoint }}
labels:
resource:
service.name: "service.name"
service.namespace: "service.namespace"
k8s.pod.name: "k8s.pod.name"
k8s.namespace.name: "k8s.namespace.name"
k8s.node.name: "k8s.node.name"
k8s.deployment.name: "k8s.deployment.name"
record:
severity: "severity"
logging:
verbosity: detailed