Monitor and alert Dynamics 365 health with Azure Application Insights

In the Previous blog (Capturing Client-Side Exceptions), we have seen how to capture the client side performance and exception telemetry using the Application Insights and this blog we will see how to create the alerts. Azure Application Insights will send the alerts automatically to admin when it is either unavailable, experiencing failures, any anomalies or suffering from performance issues.

Follow the below steps to create an alert for the Dynamics 365 client-side exception and performance with Application Insights,

Alert for client-side exception

  1. Log in to the Azure portal and open the Application Insights.
  2. Click on the Alerts option in the CONFIGURE13
  3. Click on the Add Metric alert
  4. Create a new rule to send the email notification to the admin if any client-side exception occurred. The below example shows how to create an alert that sends a notification email to the admin when 20 exceptions occurred in 5 minutes.
  5. Provide a proper name and description for your alert and choose the Browser exceptions option in the Metric dropdown list.
  6. Configure the condition and period as per your requirement and check the notify via email option and provide additional admin email address if required and click on the Ok button.
  7. It will take a minute to create and activate the alert and the Application Insights will start monitoring for the exceptions.1414a
  8. As per the above example, the Application Insights will send the below email to admin, if 20 exceptions occurred in 5 minutes.15
  9. Application Insights will automatically send a success email to admin if in next 5 minutes the exception occurred were less than the threshold configured.

16

Alert for client-side Performance issues

  1. Click on the Add Metric alert
  2. Create a new rule to send the email notification to the admin if any client-side performance issue occurred. The below example shows how to create an alert that sends a notification email to the admin when a CRM form took 10 seconds to load in 5 minutes.
  3. Provide a proper name and description for your alert and choose the Browser page load time option in the Metric dropdown list.
  4. Configure the condition and period as per your requirement and check the notify via email option and provide additional admin email address if required and click on the Ok button.
  5. It will take a minute to create and activate the alert and the Application Insights will start monitoring the page load performance.

17

17a

  1. As per the above example, the Application Insights will send an email if any CRM form page load takes 10 seconds in 5 minutes.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s