How would I convert a `counter` that is an aggregate to compute the rate of the counter?

I have a query

sum by (service) (traefik_service_requests_total{protocol!="websocket"})

I just want to convert it to a rate of counter using rate() but I can’t seem to get the syntax correct