-
What Grafana version and what operating system are you using?
v9.4.3 -
What are you trying to achieve?
trying to provision tempo using the yaml file
in the jsonData/traceToLogs i am able to set all the fields like spanStartTimeShift, filterByTraceId
but i can’t figure out how to toggle “Use custom query” to on and set the query value -
How are you trying to achieve it?
by using the provisioning yaml file -
What happened?
all other values are shown correctly in the datasource config except “Use custom query” is turned off and query text is not set
- What did you expect to happen?
“Use custom query” to be on and query text set as per yaml
- Can you copy/paste the configuration(s) that you are having problems with?
datasources:
- name: Tempo
type: tempo
uid: tempo
access: proxy
orgId: 1
url: http://tempo:3200
basicAuth: false
isDefault: false
editable: true
jsonData:
httpMethod: GET
tracesToLogs:
datasourceUid: loki
spanStartTimeShift: '-1h'
spanEndTimeShift: '+1h'
filterByTraceID: false
filterBySpanID: false
customQuery: true
query: '{{exporter="OTLP"} | json | trace_id="${__span.traceId}" | span_id="${__span.spanId}"}'
serviceMap:
datasourceUid: prometheus
- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
no
- Did you follow any online instructions? If so, what is the URL?
tried to find it in the grafana documentation but nothing came up