diff --git a/docs/sources/visualizations/dashboards/build-dashboards/annotate-visualizations/index.md b/docs/sources/visualizations/dashboards/build-dashboards/annotate-visualizations/index.md index 47f088783f5..bd31d83cefc 100644 --- a/docs/sources/visualizations/dashboards/build-dashboards/annotate-visualizations/index.md +++ b/docs/sources/visualizations/dashboards/build-dashboards/annotate-visualizations/index.md @@ -148,10 +148,18 @@ To add a new annotation query to a dashboard, follow these steps: {{< figure src="/media/docs/grafana/dashboards/screenshot-annotation-filtering-10-v2.png" max-width="600px" caption="Annotation filtering" >}} -1. Configure the query. +1. To add a query, do one of the following: + - Write or construct a query in the query language of your data source. The annotation query options are different for each data source. For information about annotations in a specific data source, refer to the specific [data source](ref:data-source) topic. + - Click **+ Add from saved queries** to reuse a saved query. + - Click the **Replace with saved query** button (or icon) to reuse a saved query. - The annotation query options are different for each data source. For information about annotations in a specific data source, refer to the specific [data source](ref:data-source) topic. +1. (Optional) To [save the query](ref:save-query) for reuse, click the **Save query** button (or icon). + {{< admonition type="note" >}} + [Saved queries](ref:saved-queries) is in [public preview](https://grafana.com/docs/release-life-cycle/) in Grafana Enterprise and Cloud only. + {{< /admonition >}} + +1. (Optional) Click **Test annotation query** to ensure that the query is working properly. 1. Click **Save dashboard**. 1. Click **Back to dashboard** and **Exit edit**. diff --git a/docs/sources/visualizations/dashboards/build-dashboards/create-dashboard/index.md b/docs/sources/visualizations/dashboards/build-dashboards/create-dashboard/index.md index 33ac74c856d..49ed9048587 100644 --- a/docs/sources/visualizations/dashboards/build-dashboards/create-dashboard/index.md +++ b/docs/sources/visualizations/dashboards/build-dashboards/create-dashboard/index.md @@ -125,10 +125,10 @@ Dashboards and panels allow you to show your data in visual form. Each panel nee 1. To add a query, do one of the following: - Write or construct a query in the query language of your data source. - - Click **+ Add from saved queries** to add a previously saved query. - - If you've already written a query, you can click the **Replace with saved query** icon to use a previously saved query instead. + - Click **+ Add from saved queries** to reuse a saved query. + - Click the **Replace with saved query** button (or icon) to reuse a saved query. -1. (Optional) To [save the query](ref:save-query) for reuse, click the **Save query** icon. +1. (Optional) To [save the query](ref:save-query) for reuse, click the **Save query** button (or icon). {{< admonition type="note" >}} [Saved queries](ref:saved-queries) is in [public preview](https://grafana.com/docs/release-life-cycle/) in Grafana Enterprise and Cloud only. diff --git a/docs/sources/visualizations/explore/get-started-with-explore.md b/docs/sources/visualizations/explore/get-started-with-explore.md index 8874741cb44..74ab147ef5f 100644 --- a/docs/sources/visualizations/explore/get-started-with-explore.md +++ b/docs/sources/visualizations/explore/get-started-with-explore.md @@ -73,7 +73,7 @@ Explore consists of a toolbar, outline, query editor, the ability to add multipl - **Query editor** - Interface where you construct the query for a specific data source. Query editor elements differ based on data source. In order to run queries across multiple data sources you need to select **Mixed** from the data source picker. - **+ Add query** - Add additional queries. -- **+ Add from saved queries** - Add a saved query. If you've already written a query, you can click the **Replace with saved query** icon to use a previously saved query instead. To [save the query](ref:save-query) for reuse, click the **Save query** icon. +- **+ Add from saved queries** - Add a saved query. Click the **Replace with saved query** button (or icon) to reuse a saved query. To [save the query](ref:save-query) for reuse, click the **Save query** button (or icon). {{< admonition type="note" >}} [Saved queries](ref:saved-queries) is in [public preview](https://grafana.com/docs/release-life-cycle/) in Grafana Enterprise and Cloud only. diff --git a/docs/sources/visualizations/panels-visualizations/query-transform-data/_index.md b/docs/sources/visualizations/panels-visualizations/query-transform-data/_index.md index eefc59ac6da..ceb7f1de42a 100644 --- a/docs/sources/visualizations/panels-visualizations/query-transform-data/_index.md +++ b/docs/sources/visualizations/panels-visualizations/query-transform-data/_index.md @@ -129,6 +129,12 @@ You can save queries that you've created so they can be reused by you and others This helps users across your organization create dashboards or find insights in Explore without having to create their own queries or know a query language. It also helps you avoid having several users build the same queries for the same data sources multiple times. +Saved queries are available in: + +- [Dashboards](https://grafana.com/docs/grafana//visualizations/dashboards/build-dashboards/create-dashboard/#create-a-dashboard) +- [Explore](https://grafana.com/docs/grafana//visualizations/explore/get-started-with-explore/#explore-elements) +- [Annotations](https://grafana.com/docs/grafana//visualizations/dashboards/build-dashboards/annotate-visualizations/#add-new-annotation-queries) + You can see a list of these queries in the **Saved queries** drawer: {{< figure src="/media/docs/grafana/dashboards/screenshot-saved-queries-v12.3.png" max-width="550px" alt="List of saved queries and the edit query form" caption="The Saved queries drawer accessed from Dashboards" >}} @@ -217,10 +223,10 @@ To add a query, follow these steps: 1. To add a query, do one of the following: - Write or construct a query in the query language of your data source. - - Click **+ Add from saved queries** to add a previously saved query. - - If you've already written a query, you can click the **Replace with saved query** icon to use a previously saved query instead. + - Click **+ Add from saved queries** to reuse a saved query. + - Click the **Replace with saved query** button (or icon) to reuse a saved query. -1. (Optional) To save the query for reuse, click the **Save query** icon. +1. (Optional) To save the query for reuse, click the **Save query** button (or icon). {{< admonition type="note" >}} [Saved queries](#saved-queries) is currently in [public preview](https://grafana.com/docs/release-life-cycle/). Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available.