Metrics
Traefik supports these metrics backends:
Global Metrics
Metric
Type
Description
Config reload total
Count
The total count of configuration reloads.
Config reload last success
Gauge
The timestamp of the last configuration reload success.
TLS certificates not after
Gauge
The expiration date of certificates.
EntryPoint Metrics
Metric
Type
Labels
Description
Requests total
Count
code
, method
, protocol
, entrypoint
The total count of HTTP requests received by an entrypoint.
Requests TLS total
Count
tls_version
, tls_cipher
, entrypoint
The total count of HTTPS requests received by an entrypoint.
Request duration
Histogram
code
, method
, protocol
, entrypoint
Request processing duration histogram on an entrypoint.
Open connections
Count
method
, protocol
, entrypoint
The current count of open connections on an entrypoint.
Requests bytes total
Count
code
, method
, protocol
, entrypoint
The total size of HTTP requests in bytes handled by an entrypoint.
Responses bytes total
Count
code
, method
, protocol
, entrypoint
The total size of HTTP responses in bytes handled by an entrypoint.
Router Metrics
Metric
Type
Labels
Description
Requests total
Count
code
, method
, protocol
, router
, service
The total count of HTTP requests handled by a router.
Requests TLS total
Count
tls_version
, tls_cipher
, router
, service
The total count of HTTPS requests handled by a router.
Request duration
Histogram
code
, method
, protocol
, router
, service
Request processing duration histogram on a router.
Open connections
Count
method
, protocol
, router
, service
The current count of open connections on a router.
Requests bytes total
Count
code
, method
, protocol
, router
, service
The total size of HTTP requests in bytes handled by a router.
Responses bytes total
Count
code
, method
, protocol
, router
, service
The total size of HTTP responses in bytes handled by a router.
Service Metrics
Metric
Type
Labels
Description
Requests total
Count
code
, method
, protocol
, service
The total count of HTTP requests processed on a service.
Requests TLS total
Count
tls_version
, tls_cipher
, service
The total count of HTTPS requests processed on a service.
Request duration
Histogram
code
, method
, protocol
, service
Request processing duration histogram on a service.
Open connections
Count
method
, protocol
, service
The current count of open connections on a service.
Retries total
Count
service
The count of requests retries on a service.
Server UP
Gauge
service
, url
Current service's server status, 0 for a down or 1 for up.
Requests bytes total
Count
code
, method
, protocol
, service
The total size of requests in bytes received by a service.
Responses bytes total
Count
code
, method
, protocol
, service
The total size of responses in bytes returned by a service.
Labels
Here is a comprehensive list of labels that are provided by the metrics:
Label
Description
example
cn
Certificate Common Name
"example.com"
code
Request code
"200"
entrypoint
Entrypoint that handled the request
"example_entrypoint"
method
Request Method
"GET"
protocol
Request protocol
"http"
router
Router that handled the request
"example_router"
sans
Certificate Subject Alternative NameS
"example.com"
serial
Certificate Serial Number
"123..."
service
Service that handled the request
"example_service@provider"
tls_cipher
TLS cipher used for the request
"TLS_FALLBACK_SCSV"
tls_version
TLS version used for the request
"1.0"
url
Service server url
"http://example.com"
method
label value
If the HTTP method verb on a request is not one defined in the set of common methods for HTTP/1.1
or the PRI
verb (for HTTP/2
),
then the value for the method label becomes EXTENSION_METHOD
.