apiVersion: 1 datasources: - name: Prometheus uid: lab6-prometheus type: prometheus access: proxy url: https://prometheus:9090 isDefault: true secureJsonData: tlsClientCert: ${GRAFANA_READER_CERT} tlsClientKey: ${GRAFANA_READER_KEY} jsonData: tlsAuth: true - name: Loki uid: lab6-loki type: loki access: proxy url: https://loki:3100 secureJsonData: tlsClientCert: ${GRAFANA_READER_CERT} tlsClientKey: ${GRAFANA_READER_KEY} jsonData: tlsAuth: true derivedFields: - name: Trace matcherType: label matcherRegex: trace_id datasourceUid: lab6-tempo url: '$${__value.raw}' - name: Tempo uid: lab6-tempo type: tempo access: proxy url: https://tempo:3200 secureJsonData: tlsClientCert: ${GRAFANA_READER_CERT} tlsClientKey: ${GRAFANA_READER_KEY} jsonData: tlsAuth: true tracesToLogsV2: datasourceUid: lab6-loki spanStartTimeShift: '-5s' spanEndTimeShift: '5s' customQuery: true query: '{service_name=~"messenger-api|messenger-worker"} | trace_id="$${__span.traceId}"'