<p>Given a Kubernetes cluster that runs a certain application in a pod, is there any way to <strong>expose an internal parameter of the application</strong> (e.g., socket buffer, concurrent requests in the application, number of items in a certain application queue …,  ) and then asks the <code>Kubernetes horizontal/vertical pod autoscaler</code> to scale up or down based on the value of such internal parameter application?</p>

Mazen Ezzeddine
<p>surely HPA supports <a href="https://towardsdatascience.com/kubernetes-hpa-with-custom-metrics-from-prometheus-9ffc201991e" rel="nofollow noreferrer">custom metrics</a>. You can push your custom metrics to prometheus and configure HPA to scale up on your metrics.</p>
<p>There's a more beautiful article on how to use HPA custom metrics with prometheus to scale pod. You can refer the below link for more details.</p>
<p><a href="https://github.com/kubernetes/community/blob/master/contributors/design-proposals/instrumentation/custom-metrics-api.md" rel="nofollow noreferrer">https://github.com/kubernetes/community/blob/master/contributors/design-proposals/instrumentation/custom-metrics-api.md</a></p>
