Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Save and load queries
Save your current filter configuration as a named query so you can quickly return to it later. This is useful when you have a set of filters you use repeatedly, such as filters for a specific service, error type, or latency threshold.
Saved queries capture your current Filters bar and data source. They don’t capture the time range, selected metric, group-by attribute, active tab, or other exploration state.
Save a query
To save your current filters:
- Add at least one filter using the Filters bar.
- Select the Save button (save icon) in the header bar, next to the data source selector.
- Enter a Title and optional Description for the query.
- Select Save.
If a saved query with the same filter expression already exists for the current data source, a warning shows the title of the existing entry.
Note
The Save button only appears when at least one filter is applied.
Load a saved query
To load a previously saved query:
- Select the Load button (folder-open icon) in the header bar, next to the data source selector.
- Browse the list of saved queries.
- Select a query to preview its title, description, and filter expression.
- Select Select to apply the saved filters.
Loading a saved query replaces your current filters. If the saved query uses a different data source, the data source switches automatically.
To remove a saved query you no longer need, select the Delete (trash) icon next to it in the load modal.
Storage
Saved queries are stored in one of two ways, depending on your Grafana setup:
- Saved Queries (query library): When the
queryLibraryfeature toggle is enabled in Grafana 12.4 or later, saved queries are stored server-side using Grafana’s query library. Queries saved this way are available across browsers and devices. - Local storage: In Grafana open source, older Grafana versions, or when the query library toggle is not enabled, saved queries are stored in your browser’s local storage. These queries are specific to your browser and device and can’t be shared.


