Want to execute the query which can create alerts on Prometheus regarding the Error rates and Average response time for each application?
Query for Average response time.
sum(rate(http_request_duration_seconds_sum[5m])) / sum(rate(http_request_duration_seconds_count[5m]))