log fixes

This commit is contained in:
Danijel Simeunovic
2026-02-16 13:19:05 +01:00
parent 90fae4c415
commit 0f26bbda69
2 changed files with 13 additions and 5 deletions

View File

@@ -42,20 +42,28 @@ config:
K8S-Logging.Parser On
K8S-Logging.Exclude On
[FILTER]
Name nest
Match kube.*
Operation lift
Nested_under kubernetes
Add_prefix kubernetes_
outputs: |
[OUTPUT]
Name loki
Match kube.*
Host loki.monitoring.svc.cluster.local
Port 3100
Host loki-gateway.monitoring.svc.cluster.local
Port 80
Labels job=fluent-bit
Label_Keys kubernetes_namespace_name,kubernetes_pod_name,kubernetes_container_name
Line_Format json
[OUTPUT]
Name loki
Match host.*
Host loki.monitoring.svc.cluster.local
Port 3100
Host loki-gateway.monitoring.svc.cluster.local
Port 80
Labels job=fluent-bit-systemd
Line_Format json

View File

@@ -24,7 +24,7 @@ datasources:
isDefault: true
- name: Loki
type: loki
url: http://loki.monitoring.svc.cluster.local:3100
url: http://loki-gateway.monitoring.svc.cluster.local
access: proxy
dashboardProviders:
dashboardproviders.yaml: