Hey there,
I'm running traefik with docker-compose and have a metrics rule (through a file) set up like this:
entryPoints:
metrics:
address: ":5443"
http:
routers:
metrics:
entrypoints: https
rule: Path(`/metrics`)
service: prometheus@internal
middlewares: auth@file
services:
metrics:
loadbalancer:
server:
port: 5443
metrics:
prometheus:
entryPoint: metrics
manualRouting: true
However, metrics are not working. I have this message in the logs:
traefik_v2 | time="2020-09-29T16:59:04Z" level=error msg="prometheus is not enabled" entryPointName=https routerName=metrics@file
I also tried a much simpler config like this one from the docs with no luck either:
metrics:
prometheus: {}