mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki: Update Query Variable docs (#54909)
* feat(loki-query-variable-editor): update docs * Chore: fix typo in updated docs * Chore: improve redaction Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com> Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
This commit is contained in:
@@ -213,13 +213,14 @@ Check out the [Templating]({{< relref "../dashboards/variables" >}}) documentati
|
||||
## Query variable
|
||||
|
||||
Variable of the type _Query_ allows you to query Loki for a list labels or label values. The Loki data source plugin
|
||||
provides the following functions you can use in the `Query` input field.
|
||||
provides a form to select the type of values that can be expected for a given variable.
|
||||
The form has these options:
|
||||
|
||||
| Name | Description |
|
||||
| ------------------------------------------ | -------------------------------------------------------------------------------------- |
|
||||
| `label_names()` | Returns a list of label names. |
|
||||
| `label_values(label)` | Returns a list of label values for the `label`. |
|
||||
| `label_values(log stream selector, label)` | Returns a list of label values for the `label` in the specified `log stream selector`. |
|
||||
| Query Type | Label | Stream Selector | Description |
|
||||
| ------------ | ------------ | --------------------- | -------------------------------------------------------------------------------------- |
|
||||
| Label names | Not required | Not required | Returns a list of label names. |
|
||||
| Label values | `label` | | Returns a list of label values for the `label`. |
|
||||
| Label values | `label` | `log stream selector` | Returns a list of label values for the `label` in the specified `log stream selector`. |
|
||||
|
||||
### Ad hoc filters variable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user