Set up recurring tests to monitor your application's availability and responsiveness using Application Insights.
You can set up recurring tests to monitor the availability and responsiveness of your application using Application Insights. These tests send web requests to your application at regular intervals from various locations around the world and alert you if your application is unresponsive or slow.
Availability tests can be configured for any HTTP or HTTPS endpoint accessible from the public internet. No modifications to the website being tested are necessary, and the site does not need to be owned by you. For example, you can test the availability of a REST API that your service depends on.
There are four types of availability tests:
-
URL Ping Test (Classic): This simple test can be created through the portal to check if an endpoint is responding and measure the performance of the response. You can set custom success criteria and utilize advanced features such as parsing dependent requests and allowing retries.
-
Standard Test (Preview): Similar to the URL ping test, this single request test includes additional features such as SSL certificate validity checks, proactive lifetime checks, various HTTP request verbs (e.g., GET, HEAD, POST), custom headers, and custom data associated with your HTTP request.
-
Multi-Step Web Test (Classic): This test involves recording a sequence of web requests to simulate more complex scenarios. Multi-step web tests are created in Visual Studio Enterprise and uploaded to the portal for execution.
-
Custom TrackAvailability Test: For custom applications running availability tests, the TrackAvailability() method can be used to send test results to Application Insights.
- Confirm you understand the differences between each test type
- Which test type is best suited for complex scenarios?
- What unique features does the Standard Test (Preview) offer?
💡 Pro Tip: Choose the test type that best matches your application's complexity and your monitoring needs.
To configure a classic availability test, follow these steps:
- Navigate to Availability and select Add Classic Test
- Enter the necessary details, including the URL of the endpoint you wish to test. The URL should be the ingress IP used to access the test application.
After configuring the test, you will be able to view detailed testing information over time.
- Successfully create a new classic test
- Confirm the test appears in the Availability tests list
- Check that test results are being recorded and displayed correctly
- What parameters can you configure for a classic test?
- How does the test frequency affect your monitoring strategy?
- What metrics are most important when reviewing availability test results?
- How can you use these results to improve your application's reliability?