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