From f02e1548d75e97b65b41ce4b3474a283490a1f2f Mon Sep 17 00:00:00 2001 From: Alfredo <109958902+alfredo-d@users.noreply.github.com> Date: Wed, 5 Jul 2023 20:08:45 +0800 Subject: [PATCH] Update derived fields provisioning example (#66027) * Update derived fields provisioning example *WHAT* Update loki derived fields provisioning example: - Remove `# Right now, Grafana supports only Jaeger and Zipkin data sources as link targets.` comment since it supports other trace data sources as well such as Tempo". - Add example to include `URL Label` to provide full configuration example that reflects the options visible on the UI. * Update _index.md * makes prettier --------- Co-authored-by: lwandz13 --- docs/sources/datasources/loki/_index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/sources/datasources/loki/_index.md b/docs/sources/datasources/loki/_index.md index ee99f6ce698..db5fdcb6fdd 100644 --- a/docs/sources/datasources/loki/_index.md +++ b/docs/sources/datasources/loki/_index.md @@ -121,13 +121,14 @@ datasources: maxLines: 1000 derivedFields: # Field with internal link pointing to data source in Grafana. - # Right now, Grafana supports only Jaeger and Zipkin data sources as link targets. # datasourceUid value can be anything, but it should be unique across all defined data source uids. - datasourceUid: my_jaeger_uid matcherRegex: "traceID=(\\w+)" name: TraceID # 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' # Field with external link. - matcherRegex: "traceID=(\\w+)"