Prometheus
To enable the Prometheus:
File (YAML)
metrics:
prometheus: {}
File (TOML)
[metrics]
[metrics.prometheus]
CLI
--metrics.prometheus=true
buckets
Optional, Default=”0.100000, 0.300000, 1.200000, 5.000000”
Buckets for latency metrics.
File (YAML)
metrics:
prometheus:
buckets:
- 0.1
- 0.3
- 1.2
- 5.0
File (TOML)
[metrics]
[metrics.prometheus]
buckets = [0.1,0.3,1.2,5.0]
CLI
--metrics.prometheus.buckets=0.1,0.3,1.2,5.0
addEntryPointsLabels
Optional, Default=true
Enable metrics on entry points.
File (YAML)
metrics:
prometheus:
addEntryPointsLabels: true
File (TOML)
[metrics]
[metrics.prometheus]
addEntryPointsLabels = true
CLI
--metrics.prometheus.addEntryPointsLabels=true
addRoutersLabels
Optional, Default=false
Enable metrics on routers.
File (YAML)
metrics:
prometheus:
addRoutersLabels: true
File (TOML)
[metrics]
[metrics.prometheus]
addRoutersLabels = true
CLI
--metrics.prometheus.addrouterslabels=true
addServicesLabels
Optional, Default=true
Enable metrics on services.
File (YAML)
metrics:
prometheus:
addServicesLabels: true
File (TOML)
[metrics]
[metrics.prometheus]
addServicesLabels = true
CLI
--metrics.prometheus.addServicesLabels=true
entryPoint
Optional, Default=traefik
Entry point used to expose metrics.
File (YAML)
entryPoints:
metrics:
address: :8082
metrics:
prometheus:
entryPoint: metrics
File (TOML)
[entryPoints]
[entryPoints.metrics]
address = ":8082"
[metrics]
[metrics.prometheus]
entryPoint = "metrics"
CLI
--entryPoints.metrics.address=:8082
--metrics.prometheus.entryPoint=metrics
manualRouting
Optional, Default=false
If manualRouting
is true
, it disables the default internal router in order to allow one to create a custom router for the [[email protected]](https://doc.traefik.io/cdn-cgi/l/email-protection)
service.
File (YAML)
metrics:
prometheus:
manualRouting: true
File (TOML)
[metrics]
[metrics.prometheus]
manualRouting = true
CLI
--metrics.prometheus.manualrouting=true