StatsD

To enable the Statsd:

File (YAML)

  1. metrics:
  2. statsD: {}

File (TOML)

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

CLI

  1. --metrics.statsd=true

address

Required, Default=”localhost:8125”

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

File (YAML)

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

File (TOML)

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

CLI

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

addEntryPointsLabels

Optional, Default=true

Enable metrics on entry points.

File (YAML)

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

File (TOML)

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

CLI

  1. --metrics.statsd.addEntryPointsLabels=true

addRoutersLabels

Optional, Default=false

Enable metrics on entry points.

File (YAML)

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

File (TOML)

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

CLI

  1. --metrics.statsd.addrouterslabels=true

addServicesLabels

Optional, Default=true

Enable metrics on services.

File (YAML)

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

File (TOML)

  1. [metrics]
  2. [metrics.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 (YAML)

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

File (TOML)

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

CLI

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

prefix

Optional, Default=”traefik”

The prefix to use for metrics collection.

File (YAML)

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

File (TOML)

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

CLI

  1. --metrics.statsd.prefix=traefik