Monitor server-side application metrics by using Azure Load Testing Preview
You can monitor server-side application metrics for Azure-hosted applications when running a load test with Azure Load Testing Preview. In this article, you'll learn how to configure app components and metrics for your load test.
To capture metrics during your load test, you'll first select the Azure components that make up your application. Optionally, you can then configure 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.
- 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 with at least one completed test run. If you need to create an Azure Load Testing resource, see Tutorial: Run a load test to identify performance bottlenecks.
Select Azure application components
To monitor resource metrics for an Azure-hosted application, you need to specify the list of Azure application components in your load test. Azure Load Testing automatically captures a set of relevant resource metrics for each selected component. When your load test finishes, you can view the server-side metrics in the 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 runs page, select Configure, and then select App Components to add or remove Azure resources to monitor during the load test.
Select or clear the checkboxes next to the Azure resources you want to add or remove, and then select Apply.
When you run the load test, Azure Load Testing will display the default resource metrics in the test run dashboard.
You can change the list of resource metrics at any time. In the next section, you'll view and configure the list of resource metrics.
Select server-side resource metrics
For each Azure application component, you can select the resource metrics to monitor during your load test.
Use the following steps to view and update the list of resource metrics:
On the test runs 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.
Alternatively, you can update the app components and metrics from the page that shows test result details.
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.
When you update the configuration of a load test, all future test runs will use that configuration. On the other hand, if you update a test run, the new configuration will only apply to that test run.
Learn how you can identify performance problems by comparing metrics across multiple test runs.
Learn how to set up a high-scale load test.
Learn how to configure automated performance testing.