An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
HorizontalPodAutoscaler Logs in Log Analytics
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:
- whether Normal HPA events such as SuccessfulRescale are expected to be ingested into KubeEvents when collect_all_kube_events = true
- whether there are any known limitations or delays for this on AKS / Container Insights
- 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.