# How to make Grafana use the alertmanager v2 REST API?

**URL:** <https://community.grafana.com/t/how-to-make-grafana-use-the-alertmanager-v2-rest-api/117993>\
**Category:** Alerting\
**Tags:** alert-contact-points\
**Created:** [March 27, 2024, 9:02am UTC](https://community.grafana.com/t/how-to-make-grafana-use-the-alertmanager-v2-rest-api/117993 "2024-03-27T09:02:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ave2809](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@ave2809](https://community.grafana.com/u/ave2809)\
**Post date:** [March 27, 2024, 9:02am UTC](https://community.grafana.com/t/how-to-make-grafana-use-the-alertmanager-v2-rest-api/117993/1 "2024-03-27T09:02:59Z")

</div>

Since upgrading to Grafana 10.3 and Prometheus Alertmanager 0.27.x I’m getting this deprecation error message from alertmanager:

Failed to send test alert.: failed to send alert to Alertmanager: failed to send HTTP request - status code 410

Alertmanager tells me:  
level=warn msg=“HTTP request failed” url=[http://prometheus-kube-prometheus-alertmanager:9093/api/v1/alerts](http://prometheus-kube-prometheus-alertmanager:9093/api/v1/alerts) statusCode=“410 Gone” Body=“{"status":"deprecated","error":"The Alertmanager v1 API was deprecated in version 0.16.0 and is removed as of version 0.28.0 - please use the equivalent route in the v2 API"}”

So how do I make Grafana to use the v2 REST API of alertmanager? There is not config option to choose the version.

Sidenote: I do provision my alerting files. So my contactpoint.yaml looks like this:

apiVersion: 1  
contactPoints:

- name: Prometheus-Alertmanager  
orgId: 1  
receivers:
  - disableResolveMessage: true  
settings:  
url: [http://prometheus-kube-prometheus-alertmanager:9093](http://prometheus-kube-prometheus-alertmanager:9093)  
type: prometheus-alertmanager  
uid: alertmanager\_f0111d43

---

<div class="post-metadata">

**Author:** ![georgerobinson](https://avatars.discourse-cdn.com/v4/letter/g/ad7895/32.png) [@georgerobinson](https://community.grafana.com/u/georgerobinson)\
**Post date:** [March 27, 2024, 10:13am UTC](https://community.grafana.com/t/how-to-make-grafana-use-the-alertmanager-v2-rest-api/117993/2 "2024-03-27T10:13:24Z")

</div>

Hi! You need to update to Grafana 10.4 [grafana/CHANGELOG.md at main · grafana/grafana · GitHub](https://github.com/grafana/grafana/blob/main/CHANGELOG.md#1040-2024-03-06).

---

<div class="post-metadata">

**Author:** ![ave2809](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@ave2809](https://community.grafana.com/u/ave2809)\
**Post date:** [March 27, 2024, 11:52am UTC](https://community.grafana.com/t/how-to-make-grafana-use-the-alertmanager-v2-rest-api/117993/3 "2024-03-27T11:52:46Z")

</div>

Yes! Upgraded to 10.4 and it works again. Thank you.
