2022-04-15 15:44:08 +02:00
|
|
|
---
|
|
|
|
title: "Traefik Datadog Metrics Documentation"
|
|
|
|
description: "Traefik Proxy supports Datadog for backend metrics. Read the technical documentation to enable Datadog for observability."
|
|
|
|
---
|
|
|
|
|
2019-09-02 12:18:04 +02:00
|
|
|
# Datadog
|
2019-07-18 21:36:05 +02:00
|
|
|
|
2019-09-02 12:18:04 +02:00
|
|
|
To enable the Datadog:
|
2019-07-18 21:36:05 +02:00
|
|
|
|
2019-07-22 09:58:04 +02:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
metrics:
|
2019-09-02 12:18:04 +02:00
|
|
|
datadog: {}
|
2019-07-22 09:58:04 +02:00
|
|
|
```
|
|
|
|
|
2021-06-19 00:08:08 +02:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[metrics]
|
|
|
|
[metrics.datadog]
|
|
|
|
```
|
|
|
|
|
2019-07-18 21:36:05 +02:00
|
|
|
```bash tab="CLI"
|
2019-07-22 09:58:04 +02:00
|
|
|
--metrics.datadog=true
|
2019-07-18 21:36:05 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `address`
|
|
|
|
|
|
|
|
_Required, Default="127.0.0.1:8125"_
|
|
|
|
|
|
|
|
Address instructs exporter to send metrics to datadog-agent at this address.
|
|
|
|
|
2019-07-22 09:58:04 +02:00
|
|
|
```yaml tab="File (YAML)"
|
2019-07-18 21:36:05 +02:00
|
|
|
metrics:
|
2019-09-02 12:18:04 +02:00
|
|
|
datadog:
|
2019-07-18 21:36:05 +02:00
|
|
|
address: 127.0.0.1:8125
|
|
|
|
```
|
|
|
|
|
2021-06-19 00:08:08 +02:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[metrics]
|
|
|
|
[metrics.datadog]
|
|
|
|
address = "127.0.0.1:8125"
|
|
|
|
```
|
|
|
|
|
2019-07-18 21:36:05 +02:00
|
|
|
```bash tab="CLI"
|
2019-11-19 10:18:05 +01:00
|
|
|
--metrics.datadog.address=127.0.0.1:8125
|
2019-07-18 21:36:05 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `addEntryPointsLabels`
|
|
|
|
|
|
|
|
_Optional, Default=true_
|
|
|
|
|
|
|
|
Enable metrics on entry points.
|
|
|
|
|
2019-07-22 09:58:04 +02:00
|
|
|
```yaml tab="File (YAML)"
|
2019-07-18 21:36:05 +02:00
|
|
|
metrics:
|
2019-09-02 12:18:04 +02:00
|
|
|
datadog:
|
2019-07-18 21:36:05 +02:00
|
|
|
addEntryPointsLabels: true
|
|
|
|
```
|
|
|
|
|
2021-06-19 00:08:08 +02:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[metrics]
|
|
|
|
[metrics.datadog]
|
|
|
|
addEntryPointsLabels = true
|
|
|
|
```
|
|
|
|
|
2019-07-18 21:36:05 +02:00
|
|
|
```bash tab="CLI"
|
|
|
|
--metrics.datadog.addEntryPointsLabels=true
|
|
|
|
```
|
2021-11-08 13:32:10 +01:00
|
|
|
#### `addRoutersLabels`
|
2021-04-30 10:22:04 +02:00
|
|
|
|
|
|
|
_Optional, Default=false_
|
|
|
|
|
|
|
|
Enable metrics on routers.
|
|
|
|
|
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[metrics]
|
|
|
|
[metrics.datadog]
|
|
|
|
addRoutersLabels = true
|
|
|
|
```
|
|
|
|
|
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
metrics:
|
|
|
|
datadog:
|
|
|
|
addRoutersLabels: true
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash tab="CLI"
|
|
|
|
--metrics.datadog.addrouterslabels=true
|
|
|
|
```
|
2019-07-18 21:36:05 +02:00
|
|
|
|
|
|
|
#### `addServicesLabels`
|
|
|
|
|
|
|
|
_Optional, Default=true_
|
|
|
|
|
|
|
|
Enable metrics on services.
|
|
|
|
|
2019-07-22 09:58:04 +02:00
|
|
|
```yaml tab="File (YAML)"
|
2019-07-18 21:36:05 +02:00
|
|
|
metrics:
|
2019-09-02 12:18:04 +02:00
|
|
|
datadog:
|
2019-07-18 21:36:05 +02:00
|
|
|
addServicesLabels: true
|
|
|
|
```
|
|
|
|
|
2021-06-19 00:08:08 +02:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[metrics]
|
|
|
|
[metrics.datadog]
|
|
|
|
addServicesLabels = true
|
|
|
|
```
|
|
|
|
|
2019-07-18 21:36:05 +02:00
|
|
|
```bash tab="CLI"
|
|
|
|
--metrics.datadog.addServicesLabels=true
|
|
|
|
```
|
|
|
|
|
|
|
|
#### `pushInterval`
|
|
|
|
|
|
|
|
_Optional, Default=10s_
|
|
|
|
|
|
|
|
The interval used by the exporter to push metrics to datadog-agent.
|
|
|
|
|
2019-07-22 09:58:04 +02:00
|
|
|
```yaml tab="File (YAML)"
|
2019-07-18 21:36:05 +02:00
|
|
|
metrics:
|
2019-09-02 12:18:04 +02:00
|
|
|
datadog:
|
2019-07-18 21:36:05 +02:00
|
|
|
pushInterval: 10s
|
|
|
|
```
|
|
|
|
|
2021-06-19 00:08:08 +02:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[metrics]
|
|
|
|
[metrics.datadog]
|
2022-02-03 15:16:12 +01:00
|
|
|
pushInterval = "10s"
|
2021-06-19 00:08:08 +02:00
|
|
|
```
|
|
|
|
|
2019-07-18 21:36:05 +02:00
|
|
|
```bash tab="CLI"
|
|
|
|
--metrics.datadog.pushInterval=10s
|
|
|
|
```
|
|
|
|
|
2021-10-06 09:34:07 -06:00
|
|
|
#### `prefix`
|
|
|
|
|
|
|
|
_Optional, Default="traefik"_
|
|
|
|
|
|
|
|
The prefix to use for metrics collection.
|
|
|
|
|
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
metrics:
|
|
|
|
datadog:
|
|
|
|
prefix: traefik
|
|
|
|
```
|
|
|
|
|
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[metrics]
|
|
|
|
[metrics.datadog]
|
|
|
|
prefix = "traefik"
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash tab="CLI"
|
2022-02-03 15:16:12 +01:00
|
|
|
--metrics.datadog.prefix=traefik
|
2021-10-06 09:34:07 -06:00
|
|
|
```
|