Provisioning Tempo Data Source in Grafana using YAML

I’m provisioning my Tempo Data Source in Grafana using YAML. Is there a Way to select the Loki Data Source for Tempo?

Currently I have something like this:

apiVersion: 1

datasources:
  - name: Tempo
    type: tempo
    access: proxy
    url: "http://monitoring-tempo:3100"

Hi, this is our internal configuration at Grafana Labs:

datasources:
  - name: Tempo
    type: tempo
    jsonData:
        tracesToLogs:
            datasourceUid: <name of your Loki datasource>
            tags:
              - cluster
              - namespace
              - pod

    # More configuration here...

The cluster, namespace and pod labels will be copied from the Tempo span and used in the query on Loki. In your specific application, you might want to use other labels.