StatsD

To enable the Statsd:

File (TOML)

  1. [metrics]
  2. [metrics.statsD]

File (YAML)

  1. metrics:
  2. statsD: {}

CLI

  1. --metrics.statsd=true

address

Required, Default=”localhost:8125”

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

File (TOML)

  1. [metrics]
  2. [metrics.statsD]
  3. address = "localhost:8125"

File (YAML)

  1. metrics:
  2. statsD:
  3. address: localhost:8125

CLI

  1. --metrics.statsd.address=localhost:8125

addEntryPointsLabels

Optional, Default=true

Enable metrics on entry points.

File (TOML)

  1. [metrics]
  2. [metrics.statsD]
  3. addEntryPointsLabels = true

File (YAML)

  1. metrics:
  2. statsD:
  3. addEntryPointsLabels: true

CLI

  1. --metrics.statsd.addEntryPointsLabels=true

addServicesLabels

Optional, Default=true

Enable metrics on services.

File (TOML)

  1. [metrics]
  2. [metrics.statsD]
  3. addServicesLabels = true

File (YAML)

  1. metrics:
  2. statsD:
  3. addServicesLabels: true

CLI

  1. --metrics.statsd.addServicesLabels=true

pushInterval

Optional, Default=10s

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

File (TOML)

  1. [metrics]
  2. [metrics.statsD]
  3. pushInterval = 10s

File (YAML)

  1. metrics:
  2. statsD:
  3. pushInterval: 10s

CLI

  1. --metrics.statsd.pushInterval=10s

prefix

Optional, Default=”traefik”

The prefix to use for metrics collection.

File (TOML)

  1. [metrics]
  2. [metrics.statsD]
  3. prefix = "traefik"

File (YAML)

  1. metrics:
  2. statsD:
  3. prefix: traefik

CLI

  1. --metrics.statsd.prefix="traefik"