# Metrics in Traefik V2 with Prometheus

**URL:** <https://community.traefik.io/t/metrics-in-traefik-v2-with-prometheus/2803>\
**Category:** Traefik v2\
**Tags:** metrics, docker-swarm, docker\
**Created:** [November 5, 2019, 1:43pm UTC](https://community.traefik.io/t/metrics-in-traefik-v2-with-prometheus/2803 "2019-11-05T13:43:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zespri](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/zespri/32/310_2.png) [@zespri](https://community.traefik.io/u/zespri)\
**Post date:** [November 5, 2019, 11:27pm UTC](https://community.traefik.io/t/metrics-in-traefik-v2-with-prometheus/2803/2 "2019-11-05T23:27:51Z")

</div>

You need to create service/router for metrics. I recently gave an example here: [Prometheus Authentication in File](https://community.containo.us/t/prometheus-authentication-in-file/1938/13)

---

_[View the full topic](https://community.traefik.io/t/metrics-in-traefik-v2-with-prometheus/2803)._
