---
title: "Migrate recorded queries | Grafana documentation"
description: "Learn how to migrate your depreciated recorded queries to Grafana-managed recording rules."
---

# Migrate recorded queries

Users can transpose their [now-depreciated recorded queries](/docs/grafana/latest/administration/recorded-queries/) into Grafana-managed recording rules in a few easy steps. The query PromQL for each recorded query has been exposed on the recorded queries list along with the existing datasource, time range, and interval values to simplify the migration process.

## Migrate your recorded queries to Grafana-managed alert rules

01. Navigate to **Administration** -&gt; **Plugins and Data** -&gt; **Recorded queries.**
02. Note the data source, query PromQL, interval, and time range, and copy them somewhere accessible.
    
    [](/media/docs/alerting/rec-query-example.png)
03. Now navigate to **Alerting** -&gt; **Alert rules.**
04. At the top of the Alert rules page, click **More** -&gt; **New Grafana recording rule**.
    
    Add a name for your Recording Rule and a name for the new metric that the recording rule generates.
05. Select your data source and paste your ratio query PromQL into the query builder.
    
    Click **Options** and validate that the Time Range is the same as your recorded query.
06. Select the Folder you would like the rule to be created in.
07. Add any labels to the rule.
08. Select or create an evaluation group. Set your evaluation group’s evaluation interval to the interval of your recorded query.
09. Review your rule and click Save **rule and exit** when you are finished.
10. Update any areas where the recorded query was referenced to use the new Grafana-managed recording rule.
