# Confused counters with services using Docker Swarm

**URL:** <https://discuss.prometheus.io/t/confused-counters-with-services-using-docker-swarm/3244>\
**Category:** Exporters and Metrics\
**Created:** [January 10, 2025, 4:49pm UTC](https://discuss.prometheus.io/t/confused-counters-with-services-using-docker-swarm/3244 "2025-01-10T16:49:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dauid64](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/dauid64/32/1003_2.png) [@dauid64](https://discuss.prometheus.io/u/dauid64)\
**Post date:** [January 10, 2025, 4:49pm UTC](https://discuss.prometheus.io/t/confused-counters-with-services-using-docker-swarm/3244/1 "2025-01-10T16:49:11Z")

</div>

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.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/2X/6/68b0dc5a2132e917609eca7f7035277323affb4d.png)

---

<div class="post-metadata">

**Author:** ![besh](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@besh](https://discuss.prometheus.io/u/besh)\
**Post date:** [January 15, 2025, 7:11am UTC](https://discuss.prometheus.io/t/confused-counters-with-services-using-docker-swarm/3244/2 "2025-01-15T07:11:17Z")

</div>

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