feat(grafana): Add Loki datasource configuration

This commit is contained in:
Claude AI
2026-01-05 13:31:15 +00:00
parent 2e526a26e2
commit 7bc8648b28

View File

@@ -0,0 +1,24 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: loki-datasource
namespace: monitoring
labels:
grafana_datasource: "1"
data:
loki-datasource.yaml: |-
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
url: http://loki.loki.svc.cluster.local:3100
jsonData:
maxLines: 1000
derivedFields:
- datasourceUid: prometheus
matcherRegex: "traceID=(\\w+)"
name: TraceID
url: '$${__value.raw}'
isDefault: false
editable: true