mozilla-services / pagerstatus

A service to automatically update Statuspage.io based on Pagerduty incidents
Apache License 2.0
7 stars 5 forks source link

Support finding tag text in message body from Datadog emails #10

Closed sciurus closed 5 years ago

sciurus commented 5 years ago

For historical reasons Mozilla has some services configured to send alerts from Datadog to Pagerduty via email instead of via the native integration. This does not send the tags field.

Rather than requiring them to switch their integration mechanism, we could ask them to put the tag text in the message body and parse it from there.

Sample: https://moz-svc-ops.pagerduty.com/incidents/P58B5W9

sciurus commented 5 years ago

I can't figure out how to get the email body via Pagerduty's API; it's included neither in the "log entry" or "alert" that opened the incident. I can get the email subject, though.

I think using email isn't widespread, so I can ask everyone to switch to the native integration.