traefik/docs/content/observability/metrics/prometheus.md
mpl 092aa8fa6d API: remove configuration of Entrypoint and Middlewares
Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com>
2019-07-19 12:28:07 +02:00

1.3 KiB

Prometheus

To enable the Prometheus:

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

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
--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
--metrics.prometheus.addEntryPointsLabels=true

addServicesLabels

Optional, Default=true

Enable metrics on services.

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