Metrics in Traefik V2 with Prometheus

Hi everyone !

I'm trying to setup Traefik in our Docker Swarm but having hard issues with the config.
I'm unable to retrieve metrics on path "/metrics" and getting a 404 Not found.

Here my conf :

version: '3.3'

services:
  reverse-proxy:
    image: traefik:v2.0
    command: 
      - --api=true
      - --providers.docker
      - --providers.docker.swarmMode=true
      - --entryPoints.web-secure.address=:443
      - --metrics=true
      - --metrics.prometheus=true
      - --metrics.prometheus.entryPoint="web-secure"
    ports:
      - "443:443"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      my-network:
    deploy:
      mode: global
      labels:
        - "traefik.enable=true"
        - "traefik.http.routers.traefik.rule=Host(`traefik.my-domain.com`)"
        - "traefik.http.services.traefik.loadbalancer.server.port=8080"
        - "traefik.http.routers.traefik.service=api@internal"
      placement:
        constraints:
          - node.role == manager
networks:
  my-network:
    external: true

The dashboard is working well, services on Traefik too.
I don't get what i'm doing wrong.

Thanks.

You need to create service/router for metrics. I recently gave an example here: Prometheus Authentication in File