Home > database >  Application Insight monitor and send alerts on status code 500?
Application Insight monitor and send alerts on status code 500?

Time:09-13

I'm new to Azure.

What I want to do is monitor X amount of pages and if any of those return status code 500 I want to send out an email and/or SMS. Is this possible to do with Application Insight?

If so, could you link me to a good documentation,

if not, what would be a good option for what I want to achieve? Are there other softwares etc.

CodePudding user response:

For me yes its possible to do, hope that these docs should help you;

  1. https://docs.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview

  2. https://docs.microsoft.com/en-us/azure/azure-monitor/app/javascript?tabs=snippet

  3. https://www.youtube.com/watch?v=A0jAeGf2zUQ

  4. https://www.youtube.com/watch?v=s8oGpLAEaeQ

Will be waiting for your respond if it helped you or not .... Thanks alot

CodePudding user response:

You can get this functionality by creating alerts in Azure Application Insights. Smart Detection in Application Insights can help you in sending the email notifications for performance issues or failure anomalies e-g errors with status 500 code. Read up on this here: https://docs.microsoft.com/en-us/azure/azure-monitor/alerts/proactive-failure-diagnostics

  • Related