Confused counters with services using Docker Swarm

I’m trying to collect an error counter from my application, which is exposed on the /metrics endpoint, but when I query it, it’s confusing to visualize and group the errors by URL.

I’m not sure if I got your point right. What about sum(error_counter_total{url=~"/victoria/api/.+"}) would that do?