Send Traefik metrics, logs, and traces to Datadog to monitor your Traefik services.
Setup
The Traefik check is not included in the Datadog Agent package, so you need to install it.
Installation
For Agent v7.21+ / v6.21+, follow the instructions below to install the Traefik check on your host. See Use Community Integrations to install with the Docker Agent or earlier versions of the Agent.
Run the following command to install the Agent integration:
By default, Traefik logs are sent to stdout. This should not be changed for containerized version, because the Datadog Agent can collect logs directly from the container stdout/stderr.
Collecting logs is disabled by default in the Datadog Agent. Enable it in your datadog.yaml file with:
logs_enabled:true
Add this configuration block to your traefik.d/conf.yaml file at the root of your Agent’s configuration directory to start collecting your Traefik logs:
By default, Traefik logs are sent to stdout. This should not be changed for containerized version, as the Datadog Agent is able to collect logs directly from container stdout/stderr.
Collecting logs is disabled by default in the Datadog Agent. Enable it in your datadog.yaml file with:
logs_enabled:true
Add this configuration block to your traefik.d/conf.yaml file at the root of your Agent’s configuration directory to start collecting your Traefik logs: