[http.routers.metric-prometheus] rule = "Host(`{{ inventory_hostname }}`) && PathPrefix(`/metrics`)" entryPoints = ["websecure"] service = "prometheus@internal" [http.routers.metric-prometheus.tls] certResolver = "my-resolver"