I have a node.js server running on an Azure app service. I would like to receive an automated email notification in the event that the node app crashes. I've been Googling and there seem to be so many options around monitoring provided by Azure, that it's quite overwhelming. I looked at Azure Application Insights, but couldn't see the functionality I'm after + it seems expensive.
Is there a simple Azure approach for monitoring node.js app crashes, or a free third party solution which would do it?
If you are looking for receiving an email notification when your node.js app crashes or when returning Http 5XX status code, You can use azure monitor alert and then setting email notification in the action group.
Go to your Azure portal and navigate to your app service's page> under Monitoring click on Alerts blade> create new alert rule and add condition> Select signal type Http Server Errors.
Now set Thresholds as required> then under "Actions", click on the "Add action group" button and create a new action group that includes your email address as a notification receiver> Save the alert rule.
Then go your action group's page and click on the "Add action" button and select "Email/SMS/Push/Voice" as the action type> add email address details> Save the action group.
Additionally you may also refer to this document for setting threshold and understanding metrics: https://learn.microsoft.com/en-us/azure/app-service/web-sites-monitor
Related
How to create email alerts for Application Event Logs. We can see the event logs from the Diagnostic Tools of the app service but not sure about the email alerts. Any help is much appreciated.
Thanks,
Saurabh
How to create email alerts for Application Event Logs?
Yes, we can create email alerts for Azure app service using application Insights by following the below steps:
After creating Application Insights.
Goto Alerts under Monitoring then click on create and select an alert rule.
After creating the alert rule click on complete.
In alert rules add the condition according to your requirement. In my case i have given condition as Whenever the average failed locations is greater than or equal to 2.
Now we can fire the alert based on the requirement.
You can see whether the alert triggered/fired or not in the below screenshot:
You will receive an email alert to the email ID which you have configured in the above steps like below screenshot:
References:-
Send alerts from Azure Application Insights - Azure Monitor | Microsoft Docs.
Monitor application via Application Insights and send alert.
While studying Azure 204 from Microsoft azure docs,
https://learn.microsoft.com/en-us/learn/modules/create-serverless-logic-with-azure-functions/4-creating-and-executing-an-azure-function
I have created new function app esclator-function-{name} as asked in documentation.
I am also able to create a function and Test/Run it in Azure portal mode with "Run" button and also in postman using function url.
Now I want to monitor it using Application Insight. So as instructed in article, I've choosed Application Insight from Settings and clicked "Turn on Application Insight" button , kept the default settings and clicked "Apply" and then "Yes" buttons.
But now when I see in "Notifications" from top right icons, I get message
"Deployment validation failed.
Additional details from the underlying API that might be helpful: Resource group 'DefaultResourceGroup-CID' could not be found."
Also the "Apply Changes" shows "10% Completed" progress all time, it don't proceed further.
So I am not able to proceed to the article further, I will apricate the workaround if any.
In Azure, while enabling Application Insight, getting message Resource group could not be found
As per the below Image You need to create new resource group or set the existing resource group and you need to enable Application Sight extensions and them you need to apply it.
For further information check Enable application Insights Integration
Also,
Check How to configure for Azure Functions.
As part of our production environment we have several App Services running inside of Azure. I would like to implement notifications to be sent to a specific email address upon file or configuration changes within those App Services. I have tried enabling Application Changes for the service but it does not appear to provide the capability to set up alerts on the changes,
I have also tried enabling App Service alerts but it does not appear that any of the test configuration changes that I have made were captured by the signal "Apply Web App Configuration".
The last thing that I tried was to enable Diagnostic Settings to capture AppServicePlatformLogs and AppServiceFileAuditLogs and stream them to an Event Hub, however, I cannot determine how to set up the email notification from the hub for the events.
I am hoping that there may be an easier way to set this up and was hoping that someone may have some pointers or resources that I can follow.
I was able to accomplish this under "Monitoring" -> "Alerts". A more detailed walkthrough can be found here https://perituza.com/blog/azure-app-service-monitoring-and-alerts/. The key was selecting "Activity Log - Administrative" as the Monitor Service in the Condition.
So I have been looking and I cannot find anything helpful towards what I should use.
All I want to know is what webhook will allow me to have an audio alert when one of our websites goes down. We use azure to host all the sites.
Thank you
Azure doesn't provide such native feature. And I don't think you can do it via some webhook. Webhook is kinda another website hosted somewhere. It has no permission or power to play any audio on any client computers without users access it on their computers.
The only option I can think of is to send email out when web app is stopped. In Azure, select "Stop Web App (sites)" alert as condition, then the people concerned create a rule on their computers like this if you use Outlook:
You can use a web monitoring tool like distill.io on your website.
It will send you an email alert when anything changes on your website. It gives you an additional feature to set conditions on the alerts - so it only sends you alerts when website is down ( to avoid spamming)
Use case is as soon as an error occurs in application, support team should receive a notification.
Looking for an out of box solution in Azure.
Current system configured for Diagnostic logs with below settings:
Application Logging (Blob) - On
Logging Level - Error
Retention period - X days.
As far as I know, azure app service has Alerts feature. By using this feature, you could define which metrics will send the email.
About how to use it, you could refer to below images:
1.Find the alters in your from azure portal app service.
2.Click add alerts
3.Define alert rule