mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Docs: Update explain section in Loki docs (#53107)
This commit is contained in:
@@ -61,9 +61,9 @@ The new field with the link shown in log details:
|
||||
|
||||
## Loki query editor
|
||||
|
||||
Loki query editor is separated into 3 distinct modes that you can switch between. See docs for each section below.
|
||||
Loki query editor is separated into 2 distinct modes that you can switch between. See docs for each section below.
|
||||
|
||||
At the top of the editor, select `Run queries` to run a query. Select `Explain | Builder | Code` tabs to switch between the editor modes. If the query editor is in Builder mode, there are additional elements explained in the Builder section.
|
||||
At the top of the editor, select `Run queries` to run a query. Select `Builder | Code` tabs to switch between the editor modes. If the query editor is in Builder mode, there are additional elements explained in the Builder section.
|
||||
|
||||
> **Note:** In Explore, to run Loki queries, select `Run query`.
|
||||
|
||||
@@ -107,6 +107,7 @@ In addition to `Run query` button and mode switcher, in builder mode additional
|
||||
| Name | Description |
|
||||
| -------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| Query patterns | A list of useful operation patterns that can be used to quickly add multiple operations to your query to achieve a specific goal. |
|
||||
| Explain | Toggle to show a step by step explanation of all query parts and the operations. |
|
||||
| Raw query | Toggle to show raw query generated by the builder that will be sent to Loki instance. |
|
||||
|
||||
#### Labels selector
|
||||
@@ -127,14 +128,14 @@ Some operations make sense only in specific order, if adding an operation would
|
||||
|
||||
In same cases the query editor can detect which operations would be most appropriate for a selected log stream. In such cases it will show a hint next to the `+ Operations` button. Click on the hint to add the operations to your query.
|
||||
|
||||
#### Explain mode
|
||||
|
||||
Explain mode helps with understanding the query. It shows a step by step explanation of all query parts and the operations.
|
||||
|
||||
#### Raw query
|
||||
|
||||
This section is shown only if the `Raw query` switch from the query editor top toolbar is set to `on`. It shows the raw query that will be created and executed by the query editor.
|
||||
|
||||
### Explain mode
|
||||
|
||||
Explain mode helps with understanding the query. It shows a step by step explanation of all query parts and the operations.
|
||||
|
||||
## Querying with Loki
|
||||
|
||||
There are two types of LogQL queries:
|
||||
|
||||
Reference in New Issue
Block a user