HorizontalPodAutoscaler Logs in Log Analytics

Greg Pakes 0 Reputation points
2026-04-21T19:43:51.8933333+00:00

We’re not seeing non-warning HorizontalPodAutoscaler events in Log Analytics.

kubectl describe hpa on the cluster shows Normal HPA events such as SuccessfulRescale, for example:

  • New size: 5; reason: cpu resource utilization (percentage of request) above target

However, when we query KubeEvents in the Log Analytics workspace, we only see Warning events like:

  • FailedGetResourceMetric
  • FailedComputeMetricsReplicas

We enabled collect_all_kube_events = true in the container-azm-ms-agentconfig ConfigMap, deployed it to kube-system, confirmed it is synced, and restarted the AMA pods, but Normal HPA events still do not appear in KubeEvents.

Can you confirm:

  1. whether Normal HPA events such as SuccessfulRescale are expected to be ingested into KubeEvents when collect_all_kube_events = true
  2. whether there are any known limitations or delays for this on AKS / Container Insights
  3. how to verify that the AMA agent has actually applied the collect_all_kube_events setting and is forwarding Normal Kubernetes events correctly

We want to surface HPA scaling reasons in Azure Monitor, but currently only HPA warnings are visible.

Azure Kubernetes Service
Azure Kubernetes Service

An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.


Your answer

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