Metrics

Traefik supports 4 metrics backends:

Configuration

To enable metrics:

File (YAML)

  1. metrics: {}

File (TOML)

  1. [metrics]

CLI

  1. --metrics=true

Server Metrics

MetricDataDogInfluxDBPrometheusStatsD
Configuration reloads
Configuration reload failures
Last Configuration Reload Success
Last Configuration Reload Failure

Configuration Reloads

The total count of configuration reloads.

Datadog

  1. config.reload.total

InfluDB

  1. traefik.config.reload.total

Prometheus

  1. traefik_config_reloads_total

StatsD

  1. # Default prefix: "traefik"
  2. {prefix}.config.reload.total

Configuration Reload Failures

The total count of configuration reload failures.

Datadog

  1. config.reload.total (with tag "failure" to true)

InfluDB

  1. traefik.config.reload.total.failure

Prometheus

  1. traefik_config_reloads_failure_total

StatsD

  1. # Default prefix: "traefik"
  2. {prefix}.config.reload.total.failure

Last Configuration Reload Success

The timestamp of the last configuration reload success.

Datadog

  1. config.reload.lastSuccessTimestamp

InfluDB

  1. traefik.config.reload.lastSuccessTimestamp

Prometheus

  1. traefik_config_last_reload_success

StatsD

  1. # Default prefix: "traefik"
  2. {prefix}.config.reload.lastSuccessTimestamp

Last Configuration Reload Failure

The timestamp of the last configuration reload failure.

Datadog

  1. config.reload.lastFailureTimestamp

InfluDB

  1. traefik.config.reload.lastFailureTimestamp

Prometheus

  1. traefik_config_last_reload_failure

StatsD

  1. # Default prefix: "traefik"
  2. {prefix}.config.reload.lastFailureTimestamp

EntryPoint Metrics

MetricDataDogInfluxDBPrometheusStatsD
HTTP Requests Count
HTTPS Requests Count
Request Duration Histogram
Open Connections Count

HTTP Requests Count

The total count of HTTP requests processed on an entrypoint.

Available labels: code, method, protocol, entrypoint.

Datadog

  1. entrypoint.request.total

InfluDB

  1. traefik.entrypoint.requests.total

Prometheus

  1. traefik_entrypoint_requests_total

StatsD

  1. # Default prefix: "traefik"
  2. {prefix}.entrypoint.request.total

HTTPS Requests Count

The total count of HTTPS requests processed on an entrypoint.

Available labels: tls_version, tls_cipher, entrypoint.

Prometheus

  1. traefik_entrypoint_requests_tls_total

Request Duration Histogram

Request process time duration histogram on an entrypoint.

Available labels: code, method, protocol, entrypoint.

Datadog

  1. entrypoint.request.duration

InfluDB

  1. traefik.entrypoint.request.duration

Prometheus

  1. traefik_entrypoint_request_duration_seconds

StatsD

  1. # Default prefix: "traefik"
  2. {prefix}.entrypoint.request.duration

Open Connections Count

The current count of open connections on an entrypoint.

Available labels: method, protocol, entrypoint.

Datadog

  1. entrypoint.connections.open

InfluDB

  1. traefik.entrypoint.connections.open

Prometheus

  1. traefik_entrypoint_open_connections

StatsD

  1. # Default prefix: "traefik"
  2. {prefix}.entrypoint.connections.open

Service Metrics

MetricDataDogInfluxDBPrometheusStatsD
HTTP Requests Count
HTTPS Requests Count
Request Duration Histogram
Open Connections Count
Requests Retries Count
Service Server UP

HTTP Requests Count

The total count of HTTP requests processed on a service.

Available labels: code, method, protocol, service.

Datadog

  1. service.request.total

InfluDB

  1. traefik.service.requests.total

Prometheus

  1. traefik_service_requests_total

StatsD

  1. # Default prefix: "traefik"
  2. {prefix}.service.request.total

HTTPS Requests Count

The total count of HTTPS requests processed on a service.

Available labels: tls_version, tls_cipher, service.

Prometheus

  1. traefik_service_requests_tls_total

Request Duration Histogram

Request process time duration histogram on a service.

Available labels: code, method, protocol, service.

Datadog

  1. service.request.duration

InfluDB

  1. traefik.service.request.duration

Prometheus

  1. traefik_service_request_duration_seconds

StatsD

  1. # Default prefix: "traefik"
  2. {prefix}.service.request.duration

Open Connections Count

The current count of open connections on a service.

Available labels: method, protocol, service.

Datadog

  1. service.connections.open

InfluDB

  1. traefik.service.connections.open

Prometheus

  1. traefik_service_open_connections

StatsD

  1. # Default prefix: "traefik"
  2. {prefix}.service.connections.open

Requests Retries Count

The count of requests retries on a service.

Available labels: service.

Datadog

  1. service.retries.total

InfluDB

  1. traefik.service.retries.total

Prometheus

  1. traefik_service_retries_total

StatsD

  1. # Default prefix: "traefik"
  2. {prefix}.service.retries.total

Service Server UP

Current service’s server status, described by a gauge with a value of 0 for a down server or a value of 1 for an up server.

Available labels: service, url.

Datadog

  1. service.server.up

InfluDB

  1. traefik.service.server.up

Prometheus

  1. traefik_service_server_up

StatsD

  1. # Default prefix: "traefik"
  2. {prefix}.service.server.up