Skip to content

Commit

Permalink
feat(demo): exemplar trace id dst
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Dec 11, 2023
1 parent bae195f commit de48ba7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dev/local/ch-demo/grafana/datasources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,10 @@ datasources:
datasourceUid: prom-oteldb
maxLines: 500
derivedFields:
# Field with internal link pointing to data source in Grafana.
# datasourceUid value can be anything, but it should be unique across all defined data source uids.
- datasourceUid: tempo-oteldb
matcherRegex: '"trace_id":"([0-9a-f]+)"'
name: trace
# url will be interpreted as query for the datasource
url: '$${__value.raw}'
# optional for URL Label to set a custom display label for the link.
urlDisplayLabel: 'View Trace'

- name: "PromQL"
Expand All @@ -63,6 +59,13 @@ datasources:
url: http://oteldb:9090
uid: prom-oteldb

jsonData:
prometheusType: Prometheus
disableRecordingRules: false
exemplarTraceIdDestinations:
- datasourceUid: tempo-oteldb
name: trace_id

- name: ClickHouse
type: grafana-clickhouse-datasource
uid: clickhouse
Expand Down

0 comments on commit de48ba7

Please sign in to comment.