|
1 | 1 | ---
|
2 |
| -title: Monitor server-side application metrics for load testing |
| 2 | +title: Monitor server-side metrics |
3 | 3 | titleSuffix: Azure Load Testing
|
4 |
| -description: Learn how to configure a load test to monitor server-side application metrics by using Azure Load Testing. |
| 4 | +description: Learn how to capture and monitor server-side application metrics when running a load test with Azure Load Testing. Add Azure app components and resource metrics to your load test configuration. |
5 | 5 | services: load-testing
|
6 | 6 | ms.service: load-testing
|
7 | 7 | ms.author: nicktrog
|
8 | 8 | author: ntrogh
|
9 |
| -ms.date: 01/18/2023 |
| 9 | +ms.date: 01/16/2024 |
10 | 10 | ms.topic: how-to
|
11 | 11 |
|
12 | 12 | ---
|
13 | 13 | # Monitor server-side application metrics by using Azure Load Testing
|
14 |
| - |
15 |
| -You can monitor server-side application metrics for Azure-hosted applications when running a load test with Azure Load Testing. In this article, you'll learn how to configure app components and metrics for your load test. |
16 | 14 |
|
17 |
| -To capture metrics during your load test, you'll first [select the Azure components](#select-azure-application-components) that make up your application. Optionally, you can then [configure the list of server-side metrics](#select-server-side-resource-metrics) for each Azure component. |
| 15 | +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. |
| 16 | + |
| 17 | +To capture metrics during your load test, you update the load test configuration and [select the Azure components](#select-azure-application-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](#select-server-side-resource-metrics) for each Azure component. |
18 | 18 |
|
19 | 19 | 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](./resource-supported-azure-resource-types.md).
|
20 | 20 |
|
21 | 21 | ## Prerequisites
|
22 | 22 |
|
23 | 23 | - An Azure account with an active subscription. If you don't have an Azure subscription, [create a free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
|
24 |
| -- 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](./tutorial-identify-bottlenecks-azure-portal.md). |
| 24 | +- An Azure load testing resource. To create a load testing resource, see [Create and run a load test](./quickstart-create-and-run-load-test.md). |
25 | 25 |
|
26 |
| -## Select Azure application components |
| 26 | +## Add Azure app components to a load test |
27 | 27 |
|
28 |
| -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. |
| 28 | +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. |
29 | 29 |
|
30 | 30 | For the list of Azure components that Azure Load Testing supports, see [Supported Azure resource types](./resource-supported-azure-resource-types.md).
|
31 | 31 |
|
32 | 32 | Use the following steps to configure the Azure components for your load test:
|
33 | 33 |
|
34 |
| -1. In the [Azure portal](https://portal.azure.com), go to your Azure Load Testing resource. |
| 34 | +1. In the [Azure portal](https://portal.azure.com), go to your Azure load testing resource. |
35 | 35 |
|
36 | 36 | 1. On the left pane, select **Tests**, and then select your load test from the list.
|
37 | 37 |
|
38 |
| - :::image type="content" source="media/how-to-monitor-server-side-metrics/select-test.png" alt-text="Screenshot that shows a list of load tests to select from."::: |
39 |
| - |
40 |
| -1. On the test runs page, select **Configure**, and then select **App Components** to add or remove Azure resources to monitor during the load test. |
| 38 | +1. On the test details page, select **Configure**, and then select **App Components** to add or remove Azure resources to monitor during the load test. |
41 | 39 |
|
42 |
| - :::image type="content" source="media/how-to-monitor-server-side-metrics/configure-app-components.png" alt-text="Screenshot that shows the 'App Components' button for displaying app components to configure for a load test."::: |
| 40 | + :::image type="content" source="media/how-to-monitor-server-side-metrics/configure-app-components.png" alt-text="Screenshot that shows the 'App Components' button for displaying app components to configure for a load test." lightbox="media/how-to-monitor-server-side-metrics/configure-app-components.png"::: |
43 | 41 |
|
44 |
| -1. Select or clear the checkboxes next to the Azure resources you want to add or remove, and then select **Apply**. |
| 42 | +1. 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**. |
45 | 43 |
|
46 |
| - :::image type="content" source="media/how-to-monitor-server-side-metrics/modify-app-components.png" alt-text="Screenshot that shows how to add or remove app components from a load test configuration."::: |
| 44 | + :::image type="content" source="media/how-to-monitor-server-side-metrics/modify-app-components.png" alt-text="Screenshot that shows how to add or remove app components from a load test configuration." lightbox="media/how-to-monitor-server-side-metrics/modify-app-components.png"::: |
47 | 45 |
|
48 |
| - When you run the load test, Azure Load Testing will display the default resource metrics in the test run dashboard. |
| 46 | + When you run the load test, Azure Load Testing displays the default resource metrics for the selected app components in the test run dashboard. |
49 | 47 |
|
50 |
| -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. |
| 48 | +You can change the list of resource metrics for each app component at any time. |
51 | 49 |
|
52 |
| -## Select server-side resource metrics |
| 50 | +## Configure resource metrics for a load test |
53 | 51 |
|
54 |
| -For each Azure application component, you can select the resource metrics to monitor during your load test. |
| 52 | +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. |
55 | 53 |
|
56 |
| -Use the following steps to view and update the list of resource metrics: |
| 54 | +Use the following steps to view and update the list of resource metrics for a load test: |
57 | 55 |
|
58 |
| -1. On the test runs page, select **Configure**, and then select **Metrics** to select the specific resource metrics to capture during the load test. |
| 56 | +1. On the test details page, select **Configure**, and then select **Metrics** to select the specific resource metrics to capture during the load test. |
59 | 57 |
|
60 |
| - :::image type="content" source="media/how-to-monitor-server-side-metrics/configure-metrics.png" alt-text="Screenshot that shows the 'Metrics' button to configure metrics for a load test."::: |
| 58 | + :::image type="content" source="media/how-to-monitor-server-side-metrics/configure-metrics.png" alt-text="Screenshot that shows the 'Metrics' button to configure metrics for a load test." lightbox="media/how-to-monitor-server-side-metrics/configure-metrics.png"::: |
61 | 59 |
|
62 | 60 | 1. Update the list of metrics you want to capture, and then select **Apply**.
|
63 | 61 |
|
64 |
| - :::image type="content" source="media/how-to-monitor-server-side-metrics/modify-metrics.png" alt-text="Screenshot that shows a list of resource metrics to configure for a load test."::: |
65 |
| - |
66 |
| - Alternatively, you can update the app components and metrics from the page that shows test result details. |
| 62 | + :::image type="content" source="media/how-to-monitor-server-side-metrics/modify-metrics.png" alt-text="Screenshot that shows a list of resource metrics to configure for a load test." lightbox="media/how-to-monitor-server-side-metrics/modify-metrics.png"::: |
67 | 63 |
|
68 | 64 | 1. Select **Run** to run the load test with the new configuration settings.
|
69 | 65 |
|
70 |
| - :::image type="content" source="media/how-to-monitor-server-side-metrics/run-load-test.png" alt-text="Screenshot that shows the 'Run' button for running the load test from the test runs page."::: |
| 66 | + :::image type="content" source="media/how-to-monitor-server-side-metrics/run-load-test.png" alt-text="Screenshot that shows the 'Run' button for running the load test from the test details page."::: |
71 | 67 |
|
72 | 68 | Notice that the test result dashboard now shows the updated server-side metrics.
|
73 | 69 |
|
74 | 70 | :::image type="content" source="media/how-to-monitor-server-side-metrics/dashboard-updated-metrics.png" alt-text="Screenshot that shows the updated server-side metrics on the test result dashboard.":::
|
75 | 71 |
|
76 |
| -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. |
77 |
| - |
78 |
| -## Next steps |
79 |
| - |
80 |
| -- Learn how you can [identify performance problems by comparing metrics across multiple test runs](./how-to-compare-multiple-test-runs.md). |
| 72 | +> [!NOTE] |
| 73 | +> 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. |
81 | 74 |
|
82 |
| -- Learn how to [set up a high-scale load test](./how-to-high-scale-load.md). |
| 75 | +## Related content |
83 | 76 |
|
84 |
| -- Learn how to [configure automated performance testing](./quickstart-add-load-test-cicd.md). |
| 77 | +- [View metrics trends and compare load test results to identify performance regressions](./how-to-compare-multiple-test-runs.md). |
0 commit comments