Skip to content

Instantly share code, notes, and snippets.

@vegasbrianc
Created July 8, 2019 19:58
Show Gist options
  • Save vegasbrianc/b8ad7d7ef9e54528e0634105a46a58d7 to your computer and use it in GitHub Desktop.
Save vegasbrianc/b8ad7d7ef9e54528e0634105a46a58d7 to your computer and use it in GitHub Desktop.
Enable Metrics for Traefik in Docker compose
version: '3.7'
services:
traefik:
image: traefik:v1.7-alpine
command:
- "--logLevel=DEBUG"
- "--api"
- "--metrics"
- "--metrics.prometheus.buckets=0.1,0.3,1.2,5.0"
- "--docker"
- "--docker.swarmMode"
- "--docker.domain=docker.localhost"
- "--docker.watch"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment