From 7bc8648b28009ae722aac52304fd40b2022b505a Mon Sep 17 00:00:00 2001 From: Claude AI Date: Mon, 5 Jan 2026 13:31:15 +0000 Subject: [PATCH] feat(grafana): Add Loki datasource configuration --- apps/grafana/loki-datasource.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 apps/grafana/loki-datasource.yaml diff --git a/apps/grafana/loki-datasource.yaml b/apps/grafana/loki-datasource.yaml new file mode 100644 index 0000000..ff74f26 --- /dev/null +++ b/apps/grafana/loki-datasource.yaml @@ -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