traefik/docs/content/observability/metrics/statsd.md
2022-04-15 15:44:08 +02:00

2.3 KiB

title description
Traefik StatsD Documentation Traefik supports several metrics backends, including StatsD. Learn how to implement it for observability in Traefik Proxy. Read the technical documentation.

StatsD

To enable the Statsd:

metrics:
  statsD: {}
[metrics]
  [metrics.statsD]
--metrics.statsd=true

address

Required, Default="localhost:8125"

Address instructs exporter to send metrics to statsd at this address.

metrics:
  statsD:
    address: localhost:8125
[metrics]
  [metrics.statsD]
    address = "localhost:8125"
--metrics.statsd.address=localhost:8125

addEntryPointsLabels

Optional, Default=true

Enable metrics on entry points.

metrics:
  statsD:
    addEntryPointsLabels: true
[metrics]
  [metrics.statsD]
    addEntryPointsLabels = true
--metrics.statsd.addEntryPointsLabels=true

addRoutersLabels

Optional, Default=false

Enable metrics on entry points.

metrics:
  statsD:
    addRoutersLabels: true
[metrics]
  [metrics.statsD]
    addRoutersLabels = true
--metrics.statsd.addrouterslabels=true

addServicesLabels

Optional, Default=true

Enable metrics on services.

metrics:
  statsD:
    addServicesLabels: true
[metrics]
  [metrics.statsD]
    addServicesLabels = true
--metrics.statsd.addServicesLabels=true

pushInterval

Optional, Default=10s

The interval used by the exporter to push metrics to statsD.

metrics:
  statsD:
    pushInterval: 10s
[metrics]
  [metrics.statsD]
    pushInterval = "10s"
--metrics.statsd.pushInterval=10s

prefix

Optional, Default="traefik"

The prefix to use for metrics collection.

metrics:
  statsD:
    prefix: traefik
[metrics]
  [metrics.statsD]
    prefix = "traefik"
--metrics.statsd.prefix=traefik