# Grafna 10.0.2 import/export alerting

**URL:** <https://community.grafana.com/t/grafna-10-0-2-import-export-alerting/101215>\
**Category:** Alerting\
**Created:** [August 15, 2023, 12:31pm UTC](https://community.grafana.com/t/grafna-10-0-2-import-export-alerting/101215 "2023-08-15T12:31:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![shlimorsh](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@shlimorsh](https://community.grafana.com/u/shlimorsh)\
**Post date:** [August 15, 2023, 12:31pm UTC](https://community.grafana.com/t/grafna-10-0-2-import-export-alerting/101215/1 "2023-08-15T12:31:22Z")

</div>

Hi  
Is it possible to import and export alerting?  
including:  
alert rules  
contact points  
notification policies

---

<div class="post-metadata">

**Author:** ![clevernessisamyth](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@clevernessisamyth](https://community.grafana.com/u/clevernessisamyth)\
**Post date:** [August 15, 2023, 12:51pm UTC](https://community.grafana.com/t/grafna-10-0-2-import-export-alerting/101215/2 "2023-08-15T12:51:36Z")

</div>

Hello,

yes it is possible, check this: [Alerting Provisioning HTTP API | Grafana documentation](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/)

---

<div class="post-metadata">

**Author:** ![shlimorsh](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@shlimorsh](https://community.grafana.com/u/shlimorsh)\
**Post date:** [August 15, 2023, 1:56pm UTC](https://community.grafana.com/t/grafna-10-0-2-import-export-alerting/101215/3 "2023-08-15T13:56:12Z")

</div>

Thanks for your reply

1. Is there no option to import/export by the gui?
2. Az I understand I can export all alerts to a file by for example:  
curl /api/v1/provisioning/alert-rules/export \> file  
How can I import the file?
3. For contact points and notification policies - I don’t see an option to export to a file  
How can I import the contact points and notification policies

---

<div class="post-metadata">

**Author:** ![shlimorsh](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@shlimorsh](https://community.grafana.com/u/shlimorsh)\
**Post date:** [August 15, 2023, 1:57pm UTC](https://community.grafana.com/t/grafna-10-0-2-import-export-alerting/101215/4 "2023-08-15T13:57:07Z")

</div>

I mean  
curl /api/v1/provisioning/alert-rules/export \> file

---

<div class="post-metadata">

**Author:** ![clevernessisamyth](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@clevernessisamyth](https://community.grafana.com/u/clevernessisamyth)\
**Post date:** [August 21, 2023, 2:23pm UTC](https://community.grafana.com/t/grafna-10-0-2-import-export-alerting/101215/5 "2023-08-21T14:23:28Z")

</div>

Yes it is possible to export an alert to a file.  
It is possible to import an alert from a file.  
It is not possible to import several alerts in one go.

It is not simple to provisioning with bash. It’s better to use Python or Terraform.

Keep in mind that if an alert is provisioned, it can’t be modified via the UI.

---

<div class="post-metadata">

**Author:** ![shlimorsh](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@shlimorsh](https://community.grafana.com/u/shlimorsh)\
**Post date:** [August 24, 2023, 12:13pm UTC](https://community.grafana.com/t/grafna-10-0-2-import-export-alerting/101215/6 "2023-08-24T12:13:41Z")

</div>

I would love to try the script  
Thanks!

---

<div class="post-metadata">

**Author:** ![danielkim4565](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@danielkim4565](https://community.grafana.com/u/danielkim4565)\
**Post date:** [September 24, 2024, 12:08am UTC](https://community.grafana.com/t/grafna-10-0-2-import-export-alerting/101215/7 "2024-09-24T00:08:12Z")

</div>

I created a bash script to copy the alerts of one grafana instance to another. It’s very rough and I’m new to scripting, but here is a link if you want to check it out: [GitHub - danielkim4565/grafana-scripts](https://github.com/danielkim4565/grafana-scripts)

Feel free to suggest improvements or ask for more details if you’re interested in this script!

---

<div class="post-metadata">

**Author:** ![elhananjair](https://avatars.discourse-cdn.com/v4/letter/e/a88e57/32.png) [@elhananjair](https://community.grafana.com/u/elhananjair)\
**Post date:** [April 3, 2025, 7:39pm UTC](https://community.grafana.com/t/grafna-10-0-2-import-export-alerting/101215/8 "2025-04-03T19:39:52Z")

</div>

For anyone looking to import and export alerting, there is a documentation stating how to achieve that. After exporting the rules using the Grafana web portal, you can easily import the alerting and contact point details by manually copying the **Yaml** file to the Grafana configuration folder.  
You can follow the details here: [Use configuration files to provision alerting resources | Grafana documentation](https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/file-provisioning/)
