Metrics
Traefik supports 4 metrics backends:
Configuration
To enable metrics:
File (YAML)
metrics: {}
File (TOML)
[metrics]
CLI
--metrics=true
Server Metrics
Metric | DataDog | InfluxDB | Prometheus | StatsD |
---|---|---|---|---|
Configuration reloads | ✓ | ✓ | ✓ | ✓ |
Configuration reload failures | ✓ | ✓ | ✓ | ✓ |
Last Configuration Reload Success | ✓ | ✓ | ✓ | ✓ |
Last Configuration Reload Failure | ✓ | ✓ | ✓ | ✓ |
Configuration Reloads
The total count of configuration reloads.
Datadog
config.reload.total
InfluDB
traefik.config.reload.total
Prometheus
traefik_config_reloads_total
StatsD
# Default prefix: "traefik"
{prefix}.config.reload.total
Configuration Reload Failures
The total count of configuration reload failures.
Datadog
config.reload.total (with tag "failure" to true)
InfluDB
traefik.config.reload.total.failure
Prometheus
traefik_config_reloads_failure_total
StatsD
# Default prefix: "traefik"
{prefix}.config.reload.total.failure
Last Configuration Reload Success
The timestamp of the last configuration reload success.
Datadog
config.reload.lastSuccessTimestamp
InfluDB
traefik.config.reload.lastSuccessTimestamp
Prometheus
traefik_config_last_reload_success
StatsD
# Default prefix: "traefik"
{prefix}.config.reload.lastSuccessTimestamp
Last Configuration Reload Failure
The timestamp of the last configuration reload failure.
Datadog
config.reload.lastFailureTimestamp
InfluDB
traefik.config.reload.lastFailureTimestamp
Prometheus
traefik_config_last_reload_failure
StatsD
# Default prefix: "traefik"
{prefix}.config.reload.lastFailureTimestamp
EntryPoint Metrics
Metric | DataDog | InfluxDB | Prometheus | StatsD |
---|---|---|---|---|
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
entrypoint.request.total
InfluDB
traefik.entrypoint.requests.total
Prometheus
traefik_entrypoint_requests_total
StatsD
# Default prefix: "traefik"
{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
traefik_entrypoint_requests_tls_total
Request Duration Histogram
Request process time duration histogram on an entrypoint.
Available labels: code
, method
, protocol
, entrypoint
.
Datadog
entrypoint.request.duration
InfluDB
traefik.entrypoint.request.duration
Prometheus
traefik_entrypoint_request_duration_seconds
StatsD
# Default prefix: "traefik"
{prefix}.entrypoint.request.duration
Open Connections Count
The current count of open connections on an entrypoint.
Available labels: method
, protocol
, entrypoint
.
Datadog
entrypoint.connections.open
InfluDB
traefik.entrypoint.connections.open
Prometheus
traefik_entrypoint_open_connections
StatsD
# Default prefix: "traefik"
{prefix}.entrypoint.connections.open
Service Metrics
Metric | DataDog | InfluxDB | Prometheus | StatsD |
---|---|---|---|---|
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
service.request.total
InfluDB
traefik.service.requests.total
Prometheus
traefik_service_requests_total
StatsD
# Default prefix: "traefik"
{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
traefik_service_requests_tls_total
Request Duration Histogram
Request process time duration histogram on a service.
Available labels: code
, method
, protocol
, service
.
Datadog
service.request.duration
InfluDB
traefik.service.request.duration
Prometheus
traefik_service_request_duration_seconds
StatsD
# Default prefix: "traefik"
{prefix}.service.request.duration
Open Connections Count
The current count of open connections on a service.
Available labels: method
, protocol
, service
.
Datadog
service.connections.open
InfluDB
traefik.service.connections.open
Prometheus
traefik_service_open_connections
StatsD
# Default prefix: "traefik"
{prefix}.service.connections.open
Requests Retries Count
The count of requests retries on a service.
Available labels: service
.
Datadog
service.retries.total
InfluDB
traefik.service.retries.total
Prometheus
traefik_service_retries_total
StatsD
# Default prefix: "traefik"
{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
service.server.up
InfluDB
traefik.service.server.up
Prometheus
traefik_service_server_up
StatsD
# Default prefix: "traefik"
{prefix}.service.server.up