Query with Counter grouping multiple results

Hello,

I have the following metrics (Using Grafana and Prometheus)

irate(http_server_requests_seconds_sum{application="api", exception="None", uri!~".*actuator.*|.*well-known.*"}[1m]) / 
irate(http_server_requests_seconds_count{application="api", exception="None", uri!~".*actuator.*|.*well-known.*"}[1m])

It brings me the results of all PODs and endpoints. How could I group it by endpoint?
image

When I try to use “group by” the result always goes to one.

Is there a way to group this? It would be nice to have something like:
/getData Min Max
/postData min Max

  • What Grafana version and what operating system are you using?
    Grafana v7.5.5