Step 4. Use the variable in a query CreateSceneQueryRunner, which will query the Prometheus data source and use the configured variable in the query: constqueryRunner=newSceneQueryRunner({ datasource:{ type:'prometheus', uid:'<PROVIDE_GRAFANA_DS_UID>', }, queries:[ { refId:'A', range...
跳过Filter by trace ID和Filter by span ID设置,因为它们不能用于自定义查询。 开启Use custom query。 指定一个用于查询日志的自定义查询。你可以使用各种变量来使该查询与当前 span 相关。只有当所有的变量都以非空值插值时,该链接才会出现,以防止创建一个无效的查询。 可以在自定义查询中使用的 Variables 要使...
跳过Filter by trace ID和Filter by span ID设置,因为它们不能用于自定义查询。 开启Use custom query。 指定一个用于查询日志的自定义查询。你可以使用各种变量来使该查询与当前 span 相关。只有当所有的变量都以非空值插值时,该链接才会出现,以防止创建一个无效的查询。 可以在自定义查询中使用的 Variables 要使...
# The full public facing url you use in browser, used for redirects and emails # If you use reverse proxy and sub path specify full url (with sub path) # 反向代理时使用的路径 root_url = %(protocol)s://%(domain)s:%(http_port)s/ # Serve Grafana from subpath specified in `root_u...
If you set an option to $__env{PORT} the value of the PORT environment variable replaces it. For environment variables you can also use the short-hand syntax ${PORT}. The following example sets the log directory to the path in the LOGDIR environment variable:...
开启Use custom query。 指定一个用于查询日志的自定义查询。你可以使用各种变量来使该查询与当前 span 相关。只有当所有的变量都以非空值插值时,该链接才会出现,以防止创建一个无效的查询。 可以在自定义查询中使用的 Variables 要使用一个变量,你需要用${}来包裹它。例如:${__span.name}。
InPreview of values, the Grafana workspace displays a list of the current variable values. Review them to ensure they match what you expect. ChooseAddto add the variable to the dashboard. Adding a custom variable Use acustomvariable for values that do not change. This might be numbers, stri...
In Preview of values, Grafana displays a list of the current variable values. Review them to ensure they match what you expect. Select Add to add the variable to the dashboard. Adding a custom variable Use a custom variable for a value that does not change, such as a number or a str...
token_rotation_interval_minutes = 10 # Set to true to disable (hide) the login form, useful if you use OAuth disable_login_form = false # Set to true to disable the signout link in the side menu. useful if you use auth.proxy disable_signout_menu = false # URL to redirect the use...
What happened? Since Grafana 11.3.x the custom variable presents a regression where it thinks it has a space or empty value by default. This makes charts that use such variable for queries break as any chart action (like edit) will update the variable to the empty value. ...