logging: fix loki config and fluent-bit output

This commit is contained in:
Brad Stein 2026-01-08 22:40:02 -03:00
parent 1fd4a426b4
commit e5d04f2bcf
2 changed files with 15 additions and 7 deletions

View File

@ -85,15 +85,15 @@ spec:
Match kube.*
Host loki.logging.svc.cluster.local
Port 3100
Labels {job="fluent-bit", namespace="$kubernetes['namespace_name']", pod="$kubernetes['pod_name']", container="$kubernetes['container_name']"}
LabelKeys stream
Line_Format json
labels {job="fluent-bit", namespace="$kubernetes['namespace_name']", pod="$kubernetes['pod_name']", container="$kubernetes['container_name']"}
label_keys stream
line_format json
[OUTPUT]
Name loki
Match journald.*
Host loki.logging.svc.cluster.local
Port 3100
Labels {job="systemd"}
LabelKeys _SYSTEMD_UNIT,_HOSTNAME,SYSLOG_IDENTIFIER
Line_Format json
labels {job="systemd"}
label_keys _SYSTEMD_UNIT,_HOSTNAME,SYSLOG_IDENTIFIER
line_format json

View File

@ -31,7 +31,7 @@ spec:
cache_location: /var/loki/index_cache
schemaConfig:
configs:
- from: 2024-01-01
- from: "2024-01-01"
store: tsdb
object_store: filesystem
schema: v13
@ -59,6 +59,14 @@ spec:
enabled: true
size: 200Gi
storageClass: asteria
gateway:
enabled: false
chunksCache:
enabled: false
resultsCache:
enabled: false
lokiCanary:
enabled: false
service:
type: ClusterIP
ingress: