Forum Discussion
Arslan11
Jun 04, 2020Brass Contributor
Monitoring URL links
Is there any way , where we can monitor a URL link on azure monitor, if it goes down.
I have specified URL link at the bottom.
What's the best apparch with regards to this, having it in a Kusto query language in place or any other way.
- Srini1987Copper Contributor
Yes you can use availability test in your case to monitor the any url "xyz.com"
Go to Application insights and select Availability test from panel.
- Arslan11Brass Contributor
Srini1987 I did , that but I am afraid it didn't work.
I added a website to availability test
The website url link is not being monitored, the website was not loading today and I didn't got analert.
I did create an alert, to send any an email to the team, if HTTP is not responding.
Email didn't got send.
- hspinto
Microsoft
the easiest way is to set up an Availability Test in an Application Insights instance:
https://docs.microsoft.com/en-us/azure/azure-monitor/app/monitor-web-app-availability
If you need to monitor the endpoint from a VM, you can also use Connection Monitor:
https://docs.microsoft.com/en-us/azure/network-watcher/connection-monitor-preview
You can then create Azure Monitor alerts based on the results of any of the approaches above.
- Arslan11Brass Contributor
hspintoI had a look at the article, I would like to clarify one thing, the article is mentioning this
Create a URL ping test
To create your first availability request, open the Availability pane and select Create Test.
Once, I will create the availability test for the specified website, under application insights, will I get an alert via email, if the HTTP is unavailable for the specified website.
- hspinto
Microsoft
as I mentioned earlier, after creating the Availability Test, you'll have to set up the alert to execute the required action, e.g., sending you an e-mail.
Once the test is created, you can use the context menu to configure the alert rule.
In the alert configuration blade, you'll have to create an action group to send you an e-mail whenever the alert fires/resolves. More details here.