Prometheus: Kickstart your query, formerly query patterns (#60718)
* add query pattern prom types * rebase main * update docs replace query patterns with kick start your query * update docs, remove raw query from prom docs Raw query toggle was removed from the code * add binary query pattern to query patterns * add aria labels for accessibility * fix tests * apply/create a query pattern behavior if anything exists in the query editor * fix tests * rebase main
This commit is contained in:
@@ -147,11 +147,10 @@ This video demonstrates how to use the visual Prometheus query builder available
|
||||
|
||||
In addition to the **Run query** button and mode switcher, Builder mode includes additional elements:
|
||||
|
||||
| Name | Description |
|
||||
| ------------------ | ----------------------------------------------------------------------------------------- |
|
||||
| **Query patterns** | A list of operation patterns that help you quickly add multiple operations to your query. |
|
||||
| **Explain** | Displays a step-by-step explanation of all query parts and its operations. |
|
||||
| **Raw query** | Displays the raw query generated by the Builder that will be sent to Prometheus instance. |
|
||||
| Name | Description |
|
||||
| ------------------------- | ----------------------------------------------------------------------------------------- |
|
||||
| **Kick start your query** | A list of operation patterns that help you quickly add multiple operations to your query. |
|
||||
| **Explain** | Displays a step-by-step explanation of all query parts and its operations. |
|
||||
|
||||
### Metric and labels
|
||||
|
||||
@@ -203,13 +202,6 @@ To add the operations to your query, click the hint.
|
||||
|
||||
Explain mode helps you understand a query by displaying a step-by-step explanation of all query components and operations.
|
||||
|
||||
### Raw query
|
||||
|
||||
{{< figure src="/static/img/docs/prometheus/raw-query-8-5.png" max-width="500px" class="docs-image--no-shadow" caption="Raw query" >}}
|
||||
|
||||
The query editor displays the raw query only if the **Raw query** switch from the query editor toolbar is enabled.
|
||||
If visible, it displays the raw query that the query editor has created.
|
||||
|
||||
### Additional options
|
||||
|
||||
In addition to these Builder mode-specific options, the query editor also displays the options it shares in common with Code mode.
|
||||
|
||||
Reference in New Issue
Block a user