Azure alert for AKS autoscaling

SujinaSJ-1789 271 Reputation points
2023-04-12T15:27:51.3333333+00:00

Is there any option to trigger Azure alerts whenever AKS cluster is scaled up or down?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,632 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,438 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andrei Barbu 2,596 Reputation points Microsoft Employee
    2023-04-12T15:43:51.27+00:00

    Hello Sujina S J Thank should be possible by creating a Diagnostic Setting to retrieve the cluster autoscaler logs, by following https://learn.microsoft.com/en-us/azure/aks/cluster-autoscaler#retrieve-cluster-autoscaler-logs-and-status. Then, you can identify the logs that show the scale up or down operation and create a custom query for that. Then, based on that custom query, you can create a log based alert as per https://learn.microsoft.com/en-us/azure/azure-monitor/containers/container-insights-log-alerts

    I hope this is helpful. If any clarification needed, let me know and I will do my best to answer. Please "Accept as Answer" and Upvote if it helped, so that it can help others in the community looking for help on similar topics. Thank you!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.