Monitor server-side application metrics by using Azure Load Testing
In this article, you learn how to capture and monitor server-side application metrics when running a load test with Azure Load Testing. When you run a load test for an Azure-hosted application, Azure Load Testing collects resource metrics for your application components and presents them in the load testing dashboard.
To capture metrics during your load test, you update the load test configuration and add the Azure app components that make up your application. The service automatically selects the most relevant resource metrics for these app components, depending on the type of component. Optionally, you can update the list of server-side metrics for each Azure component.
Azure Load Testing integrates with Azure Monitor to capture server-side resource metrics for Azure-hosted applications. Read more about which Azure resource types that Azure Load Testing supports.
Prerequisites
- An Azure account with an active subscription. If you don't have an Azure subscription, create a free account before you begin.
- An Azure load testing resource. To create a load testing resource, see Create and run a load test.
Add Azure app components to a load test
To monitor resource metrics for an Azure-hosted application, you need to specify the list of Azure application components in your load test configuration. Azure Load Testing automatically captures a set of relevant resource metrics for each selected component. During the load test and after the test finishes, you can view the server-side metrics in the load testing dashboard.
For the list of Azure components that Azure Load Testing supports, see Supported Azure resource types.
Use the following steps to configure the Azure components for your load test:
In the Azure portal, go to your Azure load testing resource.
On the left pane, select Tests, and then select your load test from the list.
On the test details page, select Configure, and then select App Components to add or remove Azure resources to monitor during the load test.
On the Configure App Components page, select or clear the checkboxes for the Azure resources you want to add or remove, and then select Apply.
When you run the load test, Azure Load Testing displays the default resource metrics for the selected app components in the test run dashboard.
You can change the list of resource metrics for each app component at any time.
Configure resource metrics for a load test
When you add app components to your load test configuration, Azure Load Testing adds the most relevant resource metrics for these components. You can add or remove resource metrics for each of the app components in your load test.
Use the following steps to view and update the list of resource metrics for a load test:
On the test details page, select Configure, and then select Metrics to select the specific resource metrics to capture during the load test.
Update the list of metrics you want to capture, and then select Apply.
Select Run to run the load test with the new configuration settings.
Notice that the test result dashboard now shows the updated server-side metrics.
Note
When you update the load test configuration of a load test, all future test runs use the updated configuration. You can also update app components and metrics on the load testing dashboard. In this case, the configuration changes only apply to the current test run.
Related content
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for