apiVersion: 1 datasources: - name: Loki type: loki access: proxy url: http://loki:3100 isDefault: true editable: true jsonData: maxLines: 1000 derivedFields: # Extract traceID from logs for distributed tracing (optional) - datasourceUid: tempo matcherRegex: "traceID=(\\w+)" name: TraceID url: "$${__value.raw}"