Уреди

Делите путем


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

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:

  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.

  3. On the test details 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. 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.

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

    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:

  1. On the test details 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.

  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 details 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.

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.