Skip to content

Prometheus

To enable the Prometheus:

[metrics]
  [metrics.prometheus]
metrics:
  prometheus: {}
--metrics.prometheus=true

buckets

Optional, Default="0.100000, 0.300000, 1.200000, 5.000000"

Buckets for latency metrics.

[metrics]
  [metrics.prometheus]
    buckets = [0.1,0.3,1.2,5.0]
metrics:
  prometheus:
    buckets:
      - 0.1
      - 0.3
      - 1.2
      - 5.0
--metrics.prometheus.buckets=0.100000, 0.300000, 1.200000, 5.000000

addEntryPointsLabels

Optional, Default=true

Enable metrics on entry points.

[metrics]
  [metrics.prometheus]
    addEntryPointsLabels = true
metrics:
  prometheus:
    addEntryPointsLabels: true
--metrics.prometheus.addEntryPointsLabels=true

addServicesLabels

Optional, Default=true

Enable metrics on services.

[metrics]
  [metrics.prometheus]
    addServicesLabels = true
metrics:
  prometheus:
    addServicesLabels: true
--metrics.prometheus.addServicesLabels=true

entryPoint

Optional, Default=traefik

Entry point used to expose metrics.

[entryPoints]
  [entryPoints.metrics]
    address = ":8082"

[metrics]
  [metrics.prometheus]
    entryPoint = "metrics"
entryPoints:
  metrics:
    address: ":8082"

metrics:
  prometheus:
    entryPoint: metrics
--entryPoints.metrics.address=":8082"
--metrics.prometheus.entryPoint="metrics"