Skip to content

Commit 4561c3e

Browse files
committed
Learn Editor: Update autoscale-common-metrics.md
1 parent 15e7bfd commit 4561c3e

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

articles/azure-monitor/autoscale/autoscale-common-metrics.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ ms.subservice: autoscale
99
ms.reviewer: akkumari
1010
---
1111

12+
---
13+
title: Autoscale common metrics
14+
description: Learn which metrics are commonly used for autoscaling your cloud services, virtual machines, and web apps.
15+
author: EdB-MSFT
16+
ms.author: edbaynash
17+
ms.topic: conceptual
18+
ms.date: 04/17/2023
19+
ms.subservice: autoscale
20+
ms.reviewer: akkumari
21+
---
22+
1223
# Azure Monitor autoscaling common metrics
1324

1425
Azure Monitor autoscaling allows you to scale the number of running instances in or out, based on telemetry data or metrics. Scaling can be based on any metric, even metrics from a different resource. For example, scale a Virtual Machine Scale Set based on the amount of traffic on a firewall.
@@ -170,13 +181,13 @@ For a (non-classic) Storage account, the `metricTrigger` setting would include:
170181

171182
You can scale by Azure Service Bus queue length, which is the number of messages in the Service Bus queue. Service Bus queue length is a special metric, and the threshold is the number of messages per instance. For example, if there are two instances, and if the threshold is set to 100, scaling occurs when the total number of messages in the queue is 200. That amount can be 100 messages per instance, 120 plus 80, or any other combination that adds up to 200 or more.
172183

173-
For Virtual Machine Scale Sets, you can update the autoscale setting in the Resource Manager template to use `metricName` as `ApproximateMessageCount` and pass the ID of the storage queue as `metricResourceUri`.
184+
For Virtual Machine Scale Sets, you can update the autoscale setting in the Resource Manager template to use `metricName` as `ActiveMessageCount` and pass the ID of the Service Bus Queue as `metricResourceUri`.
174185

175186
```
176-
"metricName": "ApproximateMessageCount",
177-
"metricNamespace": "",
187+
"metricName": "ActiveMessageCount",
188+
"metricNamespace": "",
178189
"metricResourceUri": "/subscriptions/SUBSCRIPTION_ID/resourceGroups/RES_GROUP_NAME/providers/Microsoft.ServiceBus/namespaces/SB_NAMESPACE/queues/QUEUE_NAME"
179190
```
180191

181192
> [!NOTE]
182-
> For Service Bus, the resource group concept doesn't exist. Azure Resource Manager creates a default resource group per region. The resource group is usually in the Default-ServiceBus-[region] format. Examples are Default-ServiceBus-EastUS, Default-ServiceBus-WestUS, and Default-ServiceBus-AustraliaEast.
193+
> For Service Bus, the resource group concept doesn't exist. Azure Resource Manager creates a default resource group per region. The resource group is usually in the Default-ServiceBus-[region] format. Examples are Default-ServiceBus-EastUS, Default-ServiceBus-WestUS, and Default-ServiceBus-AustraliaEast.

0 commit comments

Comments
 (0)