apiVersion: traefik.containo.us/v1alpha1 kind: Middleware metadata: name: metrics-blocker namespace: streaming spec: replacePathRegex: regex: ^/metrics replacement: /