TylerConlee / slab

Slack bot monitoring upcoming SLA breaches in Zendesk
GNU General Public License v3.0
14 stars 3 forks source link

introduce PagerDuty plugin #458

Closed TylerConlee closed 4 years ago

TylerConlee commented 4 years ago

Thanks to @li3n3's work and help during multiple pairing sessions, we now support PagerDuty through Slab!

Currently, a plugins.toml file is required alongside the config.toml in the directory that Slab runs in.

Also, an Events V1 integration is required on the PagerDuty side: https://support.pagerduty.com/docs/services-and-integrations#section-create-a-generic-events-api-integration

The plugins.toml should have this structure:

[PagerDuty]
 ServiceID="<-INTEGRATION KEY HERE->"

When an alert is sent, PagerDuty will trigger an event to the service that has that integration key.

Future versions of this plugin will allow for configuration at the tag level, as well as support for multiple integration keys.