You can configure custom metrics scraping for your applications. For that, you deploy the Prometheus Operator and a custom Prometheus instance and Alertmanager instance in the namespace where your application is.
-
To automatically adjust the number of pods in which the application runs, configure Horizontal Pod Autoscaling for the application.