This integration collects data from Traefik and checks its health.
Create a traefik.yaml
in the Datadog Agent's conf.d
directory.
Add this configuration setup to your traefik.yaml
file to start gathering your metrics:
init_config:
instances:
- host: 10.1.2.3
port: "8080"
path: "/health"
Configuration Options:
- host: Traefik endpoint to query. Required
- port: API listener of Traefik endpoint. Default value
8080
. Optional - path: Path of Traefik health check endpoint. Default
/health
. Optional
Restart the Agent to begin sending Traefik metrics to Datadog.
Run the Agent's status
subcommand and look for traefik
under the Checks section:
Checks
======
[...]
traefik
-------
- instance #0 [OK]
- Collected 2 metrics, 0 events & 1 service check
[...]
The check is compatible with all major platforms.
See metadata.csv for a list of metrics provided by this integration.
The Traefik check does not include any events at this time.
Query Traefik and expect 200
as return status code.
Refer to the main documentation for more details about how to test and develop Agent based integrations.