Variable
Dashboard template variable.
Variables allow users to filter dashboard data dynamically.
<Variable name="instance" label="Instance" multi> label_values(up, instance)</Variable>| Prop | Type | Default | Description |
|---|---|---|---|
name * | string | required | Variable name (used in queries as $name) |
label | string | - | Display label |
query | string | - | Query expression (alternative to children) |
multi | boolean | - | Allow multiple selections |
includeAll | boolean | - | Include “All” option |
allValue | string | - | Custom value for “All” option |
hide | boolean | 'label' | - | Hide variable from UI (true = hide completely, ‘label’ = hide label only) |
sort | VariableSort | - | Sort order for values |
children | string | - | Query expression as child |
Props marked with * are required.