Kubernetes Autoscale based on Prometheus matrics

Can anyone help me to below use case. I have kubernetes and have one pod which has service running and the service is using websocket communication to connect now I wanted to ScaleUp and Scaledown pods based on no of websocket connection… I am using prometeus to get the no of active connection for pod but how do i use prometeus matrics to apply on kubernetes to autoscale??

Theres a bit of infrastructure and other components you need to setup in addition to prometheus -

I did a brief overview of it here:

Here are a few other links that might help as well:

1 Like

I will have a look.