az load test-run metrics
Note
This reference is part of the load extension for the Azure CLI (version 2.41.0 or higher). The extension will automatically install the first time you run an az load test-run metrics command. Learn more about extensions.
Command group 'load test-run' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Command group to retrieve load test run metrics.
Command group to retrieve load test run metrics with list, get-namespaces, get-definitions, get-dimension.
Commands
Name | Description | Type | Status |
---|---|---|---|
az load test-run metrics get-definitions |
Get all metric definitions for a load test run. |
Extension | Preview |
az load test-run metrics get-dimensions |
Get all metric dimension values for load test run. |
Extension | Preview |
az load test-run metrics get-namespaces |
Get all metric namespaces for a load test run. |
Extension | Preview |
az load test-run metrics list |
List metrics for a load test run. |
Extension | Preview |
az load test-run metrics get-definitions
Command group 'load test-run metrics' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get all metric definitions for a load test run.
az load test-run metrics get-definitions --load-test-resource
--metric-namespace
--test-run-id
[--resource-group]
Examples
Get metric definitions for a given load test run and test run metric namespace.
az load test-run metrics get-definitions --test-run-id sample-test-run-id --load-test-resource sample-alt-resource --resource-group sample-rg --metric-namespace LoadTestRunMetrics
Get metric definitions for a given load test run and engine health metric namespace.
az load test-run metrics get-definitions --test-run-id sample-test-run-id --load-test-resource sample-alt-resource --resource-group sample-rg --metric-namespace EngineHealthMetrics
Required Parameters
Name or ARM resource ID of the Load Testing resource.
Namespace of the metric. Allowed values: LoadTestRunMetrics, EngineHealthMetrics.
Test run ID of the load test run.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az load test-run metrics get-dimensions
Command group 'load test-run metrics' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get all metric dimension values for load test run.
az load test-run metrics get-dimensions --load-test-resource
--metric-definition-name
--metric-dimension
--metric-namespace
--test-run-id
[--end-time]
[--interval]
[--resource-group]
[--start-time]
Examples
Get CPU metric dimension values for a given load test run.
az load test-run metrics get-dimensions --test-run-id sample-test-run-id --load-test-resource sample-alt-resource --resource-group sample-rg --metric-namespace EngineHealthMetrics --metric-name CPU --metric-dimension EngineId
Get Response Time metric dimension values for a given load test run, time period and aggregation interval.
az load test-run metrics get-dimensions --test-run-id sample-test-run-id --load-test-resource sample-alt-resource --resource-group sample-rg --metric-namespace LoadTestRunMetrics --metric-name ResponseTime --metric-dimension RequestName --start-time 2023-01-01T15:16:17Z --end-time 2023-01-01T16:17:18Z --interval PT5M
Required Parameters
Name or ARM resource ID of the Load Testing resource.
Name of the metric.
Value of the metric dimension.
Namespace of the metric. Allowed values: LoadTestRunMetrics, EngineHealthMetrics.
Test run ID of the load test run.
Optional Parameters
ISO 8601 formatted end time.
ISO 8601 formatted interval. Allowed values: PT10S, PT1H, PT1M, PT5M, PT5S.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
ISO 8601 formatted start time.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az load test-run metrics get-namespaces
Command group 'load test-run metrics' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get all metric namespaces for a load test run.
az load test-run metrics get-namespaces --load-test-resource
--test-run-id
[--resource-group]
Examples
Get metric namespace for a load test run.
az load test-run metrics get-namespaces --test-run-id sample-test-run-id --load-test-resource sample-alt-resource --resource-group sample-rg
Required Parameters
Name or ARM resource ID of the Load Testing resource.
Test run ID of the load test run.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az load test-run metrics list
Command group 'load test-run metrics' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List metrics for a load test run.
az load test-run metrics list --load-test-resource
--metric-namespace
--test-run-id
[--aggregation]
[--dimension-filters]
[--end-time]
[--interval]
[--metric-definition-name]
[--resource-group]
[--start-time]
Examples
List all metrics for a given load test run and metric namespace.
az load test-run metrics list --test-run-id sample-test-run-id --load-test-resource sample-alt-resource --resource-group sample-rg --metric-namespace LoadTestRunMetrics
List Virtual Users metrics for a given load test run.
az load test-run metrics list --test-run-id sample-test-run-id --load-test-resource sample-alt-resource --resource-group sample-rg --metric-namespace LoadTestRunMetrics --metric-name VirtualUsers
List Virtual Users metrics for a given load test run, time period and aggregation interval.
az load test-run metrics list --test-run-id sample-test-run-id --load-test-resource sample-alt-resource --resource-group sample-rg --metric-namespace LoadTestRunMetrics --metric-name VirtualUsers --start-time 2023-01-01T15:16:17Z --end-time 2023-01-01T16:17:18Z --interval PT5M
List Response Time metrics for a given load test run and all dimension filters.
az load test-run metrics list --test-run-id sample-test-run-id --load-test-resource sample-alt-resource --resource-group sample-rg --metric-namespace LoadTestRunMetrics --metric-name ResponseTime --dimension-filters *
List Response Time metrics for a given load test run and all values for a specific dimension.
az load test-run metrics list --test-run-id sample-test-run-id --load-test-resource sample-alt-resource --resource-group sample-rg --metric-namespace LoadTestRunMetrics --metric-name ResponseTime --dimension-filters RequestName=*
List Response Time metrics for a given load test run and specific dimensions.
az load test-run metrics list --test-run-id sample-test-run-id --load-test-resource sample-alt-resource --resource-group sample-rg --metric-namespace LoadTestRunMetrics --metric-name ResponseTime --dimension-filters RequestName=Homepage RequestName=Homepage-1
Required Parameters
Name or ARM resource ID of the Load Testing resource.
Namespace of the metric. Allowed values: LoadTestRunMetrics, EngineHealthMetrics.
Test run ID of the load test run.
Optional Parameters
Operation used to aggregate the metrics.
Space and comma-separated dimension filters: key1[=value1] key1[=value2] key2[=value3] format ...]. * is supported as a wildcard for both key and value. Example: --dimension-filters key1=value1 key2=*
, --dimension-filters *
.
ISO 8601 formatted end time.
ISO 8601 formatted interval. Allowed values: PT10S, PT1H, PT1M, PT5M, PT5S.
Name of the metric.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
ISO 8601 formatted start time.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.