Skip to content

Commit 1de9f4a

Browse files
Merge pull request #265866 from nconvery/docs-editor/autoscale-common-metrics-1707493326
Update autoscale-common-metrics.md
2 parents 0490f71 + 0d7b99d commit 1de9f4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,11 @@ For a (non-classic) Storage account, the `metricTrigger` setting would include:
170170

171171
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.
172172

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`.
173+
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`.
174174

175175
```
176-
"metricName": "ApproximateMessageCount",
177-
"metricNamespace": "",
176+
"metricName": "ActiveMessageCount",
177+
"metricNamespace": "",
178178
"metricResourceUri": "/subscriptions/SUBSCRIPTION_ID/resourceGroups/RES_GROUP_NAME/providers/Microsoft.ServiceBus/namespaces/SB_NAMESPACE/queues/QUEUE_NAME"
179179
```
180180

0 commit comments

Comments
 (0)