azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Autoscale rule based on other resources metric source

Open samlin-msft opened this issue 2 years ago • 2 comments

Hi team,

In this page, autoscale rules can use metrics from four sources, however, it can be selected from other resource. I'd like to confirm autoscale rules based on other resources metric (ex: event hub/incoming messages) is supported or not? Thanks!

image


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

samlin-msft avatar Feb 14 '23 02:02 samlin-msft

@samlin-msft Thanks for your feedback! We will investigate and update as appropriate.

Naveenommi-MSFT avatar Feb 14 '23 05:02 Naveenommi-MSFT

@samlin-msft Yes, autoscale rules can be based on metrics from external resources, such event hubs or incoming messages. The guidelines for autoscale can be specified using custom metrics. The metric condition of the autoscale rule is defined by the metric Trigger element. The metric Name element contains the metric's name, while the metric Resource Uri element specifies the resource ID of the resource that emits the metric. The majority of the time, it is the same as the resource being scaled, but occasionally it can be different. For instance, you may scale a virtual machine scale set according on the quantity of messages in a storage queue.

reference document link below:

https://learn.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-common-scale-patterns https://learn.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-understanding-settings https://learn.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-overview

If there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.

SaibabaBalapur-MSFT avatar Feb 15 '23 10:02 SaibabaBalapur-MSFT