robusta
robusta copied to clipboard
Bug in HPA alert enrichment
Describe the bug I have a Deployment and HPA configured to autoscaling Pods by CPU utilization.
When HPA scale the Deployment to the maximum number of replicas, Robusta notifies "HPA reached max replicas" and inside the message nforms a "Current avg cpu utilization" percent that is lower than the HPA target CPU configured in HPA. In my case target is configured at 80%, and Robusta alerts say 18% current
To Reproduce Steps to reproduce the behavior:
- Generate load inside the pod, to increase the CPU usage
- HPA scales up to max replicas because current is higher than target.
- Wait for Robusta to detect this behavior and alert
- Look in the alert message and see that current is lower than HPA target cpu threshold
Expected behavior Current percent informed should be higher than HPA target cpu threshold
Screenshots
Additional context This tests were done in an OpenShift cluster version 4.10 and notifications received in Slack