Skip to content

Variable

Dashboard template variable.

Variables allow users to filter dashboard data dynamically.

<Variable name="instance" label="Instance" multi>
label_values(up, instance)
</Variable>
PropTypeDefaultDescription
name *stringrequiredVariable name (used in queries as $name)
labelstring-Display label
querystring-Query expression (alternative to children)
multiboolean-Allow multiple selections
includeAllboolean-Include “All” option
allValuestring-Custom value for “All” option
hideboolean | 'label'-Hide variable from UI (true = hide completely, ‘label’ = hide label only)
sortVariableSort-Sort order for values
childrenstring-Query expression as child

Props marked with * are required.