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.

Important

Azure Load Testing is currently in preview. For legal terms that apply to Azure features that are in beta, in preview, or otherwise not yet released into general availability, see the Supplemental Terms of Use for Microsoft Azure Previews.

Prerequisites

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:

  1. In the Azure portal, go to your Azure Load Testing resource.

  2. On the left pane, select Tests, and then select your load test from the list.

    Screenshot that shows a list of load tests to select from.

  3. On the test runs page, select Configure, and then select App Components to add or remove Azure resources to monitor during the load test.

    Screenshot that shows the 'App Components' button for displaying app components to configure for a load test.

  4. Select or clear the checkboxes next to the Azure resources you want to add or remove, and then select Apply.

    Screenshot that shows how to add or remove app components from a load test configuration.

    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:

  1. On the test runs page, select Configure, and then select Metrics to select the specific resource metrics to capture during the load test.

    Screenshot that shows the 'Metrics' button to configure metrics for a load test.

  2. Update the list of metrics you want to capture, and then select Apply.

    Screenshot that shows a list of resource metrics to configure for a load test.

    Alternatively, you can update the app components and metrics from the page that shows test result details.

  3. Select Run to run the load test with the new configuration settings.

    Screenshot that shows the 'Run' button for running the load test from the test runs page.

    Notice that the test result dashboard now shows the updated server-side metrics.

    Screenshot that shows the updated server-side metrics on the test result dashboard.

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.

Next steps