Skip to content

Text box template variable doesn't work properly without a default value #13666

@davewat

Description

@davewat

Please include this information:

What Grafana version are you using? 5.3.0 via Docker

What datasource are you using? Elasticsearch

What OS are you running grafana on? CentOS 7.4

What did you do? Added new TextBox variable to Dashboard template, and include in metric query

What was the expected result? Variable value would be passed in the Lucene search (like other variables, example with constant attached)

What happened instead? The text of $variablename was passed instead

New Textbox variable is promising, but unable to get it to work - the variable name is passed in the metric query, as opposed to the value that is entered. Screenshots showing contant passed correctly, but textbox variable not passed:

grafana53_contant_works
grafana53_contant_works2
grafana53_textbox_fails
grafana53_textbox_fails2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions