none
Alerts on pager RRS feed

  • Question

  • We use PagerDuty (PD) as our alerting tool and feed in emails from Azure Monitor when there is an issue. However. PD truncates these emails when displaying the email body inside the PD product, as the HTML content is too large. It cuts it down to 32KB in length (one alert email from Azure this morning was 85KB). This means that the useful information in the email body is cut out and contains just HTML garbage (screenshot attached) and as such contains no useful information pertaining to the alert. PD does support displaying HTML email, just not if it's been truncated.

    I am wondering if there is any flexibility within Azure to either:
    1. to send emails in plain text to certain recipients/action groups
    2. edit the HTML structure to reduce its size (or to put the description/explanation of the alert right at the top so it doesn't get truncated)
    Friday, October 5, 2018 1:29 AM

Answers

  • Hi, 

    Currently, there is no way to customize the Email Alerts for Azure. As a workaround, you can define your own custom logic to send alerts with your own template by configuring the WebHooks in Azure alerts 

    https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/insights-webhooks-alerts


    JAYENDRAN



    Friday, October 5, 2018 2:43 AM
  • I am curious if the issue at hand can be addressed with activity log alert, given that the configured alert event is supported by activity log alert. Activity log alerts does offer option to customize email subject but still no option to customize email body. But it did seem better than the metric alert notification?

    nevertheless using webhook provides more flexibility anytime.

    btw,

    did you try sending custom email notification using logic app.

    the link here gives an example of using logic app to send alert notification to Teams (now there is direct email based integration available for Teams anyway), similarly we could use email connector and send custom email to PD..!

    How to trigger complex actions with Azure Monitor alerts


    • Edited by pvvdurgaprasad Friday, October 5, 2018 3:58 AM added more details
    • Marked as answer by newtoazuree Friday, October 5, 2018 8:58 PM
    Friday, October 5, 2018 3:51 AM

All replies

  • Hi, 

    Currently, there is no way to customize the Email Alerts for Azure. As a workaround, you can define your own custom logic to send alerts with your own template by configuring the WebHooks in Azure alerts 

    https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/insights-webhooks-alerts


    JAYENDRAN



    Friday, October 5, 2018 2:43 AM
  • I am curious if the issue at hand can be addressed with activity log alert, given that the configured alert event is supported by activity log alert. Activity log alerts does offer option to customize email subject but still no option to customize email body. But it did seem better than the metric alert notification?

    nevertheless using webhook provides more flexibility anytime.

    btw,

    did you try sending custom email notification using logic app.

    the link here gives an example of using logic app to send alert notification to Teams (now there is direct email based integration available for Teams anyway), similarly we could use email connector and send custom email to PD..!

    How to trigger complex actions with Azure Monitor alerts


    • Edited by pvvdurgaprasad Friday, October 5, 2018 3:58 AM added more details
    • Marked as answer by newtoazuree Friday, October 5, 2018 8:58 PM
    Friday, October 5, 2018 3:51 AM