Stop IDLE applications

Hi everyone, I’m trying to create a lifecycle job to stop Qovery applications based on their activity. Exactly, apps in an IDLE status (i.e. apps that don’t receive requests except for their health check endpoint). I’m planning to use the kubernetes metrics-server to accomplish this, getting all the requests for the pods in a deployment and applying a filter to see which endpoints are being called (I’m not 100% sure if there is such filter).

Any advice would be appreciated.
Thanks for your help :pray:

Note: For now, I have created a job that gets the last deployment timestamp for each app using the Qovery API, and stops every app that exceeds certain amount of time since its last deployment.

1 Like