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:
parent
ed5c6a45af
commit
cf1506978f
@ -46,6 +46,9 @@ spec:
|
|||||||
- key: service.namespace
|
- key: service.namespace
|
||||||
value: "{{ .Release.Namespace }}"
|
value: "{{ .Release.Namespace }}"
|
||||||
action: upsert
|
action: upsert
|
||||||
|
- key: loki.format
|
||||||
|
action: insert
|
||||||
|
value: json
|
||||||
batch:
|
batch:
|
||||||
send_batch_size: 1000
|
send_batch_size: 1000
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
@ -53,16 +56,6 @@ spec:
|
|||||||
exporters:
|
exporters:
|
||||||
loki:
|
loki:
|
||||||
endpoint: {{ .Values.logIngest.lokiEndpoint }}
|
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:
|
logging:
|
||||||
verbosity: detailed
|
verbosity: detailed
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user