Commit 1b8d669a by Andrej Ocenas Committed by GitHub

Docs: Datasource uid docs (#23700)

parent 9bbc007c
...@@ -93,6 +93,8 @@ datasources: ...@@ -93,6 +93,8 @@ datasources:
access: proxy access: proxy
# <int> org id. will default to orgId 1 if not specified # <int> org id. will default to orgId 1 if not specified
orgId: 1 orgId: 1
# <string> custom UID which can be used to reference this datasource in other parts of the configuration, if not specified will be generated automatically
uid: my_unique_uid
# <string> url # <string> url
url: http://localhost:8080 url: http://localhost:8080
# <string> Deprecated, use secureJsonData.password # <string> Deprecated, use secureJsonData.password
......
...@@ -189,8 +189,15 @@ datasources: ...@@ -189,8 +189,15 @@ datasources:
jsonData: jsonData:
maxLines: 1000 maxLines: 1000
derivedFields: derivedFields:
- datasourceName: Jaeger # Field with internal link pointing to datasource in Grafana
- datasourceUid: my_jaeger_uid
matcherRegex: "traceID=(\\w+)" matcherRegex: "traceID=(\\w+)"
name: TraceID name: TraceID
# url will be interpreted as query for the datasource
url: "$${__value.raw}"
# Field with external link
- matcherRegex: "traceID=(\\w+)"
name: TraceID
url: "http://localhost:16686/trace/$${__value.raw}" url: "http://localhost:16686/trace/$${__value.raw}"
``` ```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment