What are the metrics for MaxPods value in Horizontal Pod Autoscalers

Solution Verified - Updated -

Environment

  • RHOCP
    • 4.5+

Issue

  • Need to create a Prometheus alert to fire whenever a workload exceeds a percentage of the MaxPods value in Horizontal Pod Autoscalers

Resolution

  • Below are the metrics for MaxPods value in Horizontal Pod Autoscalers
    • kube_hpa_status_desired_replicas
    • kube_hpa_spec_max_replicas

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments