# Deploy PMM Server with enabled alerting and configured Pager Duty notification channel

**URL:** <https://forums.percona.com/t/deploy-pmm-server-with-enabled-alerting-and-configured-pager-duty-notification-channel/13492>\
**Category:** PMM 2.x\
**Created:** [December 15, 2021, 1:47pm UTC](https://forums.percona.com/t/deploy-pmm-server-with-enabled-alerting-and-configured-pager-duty-notification-channel/13492 "2021-12-15T13:47:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kostua](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/kostua/32/5334_2.png) [@Kostua](https://forums.percona.com/u/Kostua)\
**Post date:** [December 15, 2021, 1:47pm UTC](https://forums.percona.com/t/deploy-pmm-server-with-enabled-alerting-and-configured-pager-duty-notification-channel/13492/1 "2021-12-15T13:47:29Z")

</div>

Hi everyone,

Where are the config files located to enable Integrated Alerting and set up a notification channel with Pager Duty?

---

<div class="post-metadata">

**Author:** ![Harry\_Geffin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/harry_geffin/32/4039_2.png) [@Harry\_Geffin](https://forums.percona.com/u/Harry_Geffin)\
**Post date:** [December 15, 2021, 2:43pm UTC](https://forums.percona.com/t/deploy-pmm-server-with-enabled-alerting-and-configured-pager-duty-notification-channel/13492/2 "2021-12-15T14:43:51Z")

</div>

Hello Kostua,

To enable PMM Integrated alerting and to create/configure notification channels:

> **[Integrated Alerting - Percona Monitoring and Management](https://docs.percona.com/percona-monitoring-and-management/using/alerting.html)**
>
> Documentation

Basically 4 steps that need to be performed:

1 Activate Integrated Alerting  
2 Set up a communication channel  
3 Add a notification channel  
4 Add an alert rule

Note that this feature is currently in technical preview…and it may appear differently depending on which PMM server version you are using

Hope this is helpful  
Harry

---

<div class="post-metadata">

**Author:** ![steve.hoffman](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/steve.hoffman/32/66_2.png) [@steve.hoffman](https://forums.percona.com/u/steve.hoffman)\
**Post date:** [December 15, 2021, 3:54pm UTC](https://forums.percona.com/t/deploy-pmm-server-with-enabled-alerting-and-configured-pager-duty-notification-channel/13492/3 "2021-12-15T15:54:46Z")

</div>

Are you looking for the config files inside the filesystem or just how to enable? If it’s how to enable the instructions above will allow you to use the UI to set everything up (SMTP and Slack integrations are done in PMM → Settings → Communication channels, while Pagerduty and generic webhooks are done in Integrated alerting → Notification channels).

If you’re looking at the filesystem there are elements that are actually stored in a config file (/etc/alertmanager.yml) but that’s just the communication channels from the settings page…the individual notification channels I believe are stored in the config DB and you probably don’t want to make manual edits there but can use the API (https:///swagger) to do it programmatically vs through the UI.

---

<div class="post-metadata">

**Author:** ![Kostua](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/kostua/32/5334_2.png) [@Kostua](https://forums.percona.com/u/Kostua)\
**Post date:** [December 15, 2021, 4:01pm UTC](https://forums.percona.com/t/deploy-pmm-server-with-enabled-alerting-and-configured-pager-duty-notification-channel/13492/4 "2021-12-15T16:01:31Z")

</div>

I’m looking at how I can automate these manual steps:

1 Activate Integrated Alerting  
2 Set up a communication channel  
3 Add a notification channel  
4 Add an alert rule

---

<div class="post-metadata">

**Author:** ![steve.hoffman](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/steve.hoffman/32/66_2.png) [@steve.hoffman](https://forums.percona.com/u/steve.hoffman)\
**Post date:** [December 15, 2021, 6:31pm UTC](https://forums.percona.com/t/deploy-pmm-server-with-enabled-alerting-and-configured-pager-duty-notification-channel/13492/5 "2021-12-15T18:31:55Z")

</div>

Gotcha! You can do 100% of the UI stuff via the API…but since this is not GA yet you have to change contexts to see the guides.

Go to https://\<pmm-server-ip-or-hostname\>/swagger  
at the top you’ll see the default JSON (swagger.json) is targeted, change that to swagger-dev.json and click explore.

The Call’s you’ll be most interested in are:  
POST /v1/Settings/Change (enable alerting, set up SMTP/Slack communication channel)  
POST /v1/management/ia/channels/\* (Notification channels)  
POST /v1/management/ia/Rules/\* (Alert Rules)

Should get you started! There are lots of guides online for establishing sessions, logging in and then making the calls. We are also revamping our own documentation to make it more developer friendly but that’s still a work in progress!

---

<div class="post-metadata">

**Author:** ![Kostua](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/kostua/32/5334_2.png) [@Kostua](https://forums.percona.com/u/Kostua)\
**Post date:** [December 15, 2021, 6:51pm UTC](https://forums.percona.com/t/deploy-pmm-server-with-enabled-alerting-and-configured-pager-duty-notification-channel/13492/6 "2021-12-15T18:51:41Z")

</div>

@steve.hoffman, thanks a lot, man!
