traefik/docs/content/observability/metrics/datadog.md

107 lines
1.5 KiB
Markdown
Raw Normal View History

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
```toml tab="File (TOML)"
[metrics]
2019-09-02 12:18:04 +02:00
[metrics.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
```
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.
```toml tab="File (TOML)"
[metrics]
2019-09-02 12:18:04 +02:00
[metrics.datadog]
2019-07-18 21:36:05 +02:00
address = "127.0.0.1:8125"
```
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
```
```bash tab="CLI"
--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.
```toml tab="File (TOML)"
[metrics]
2019-09-02 12:18:04 +02:00
[metrics.datadog]
2019-07-18 21:36:05 +02:00
addEntryPointsLabels = true
```
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
```
```bash tab="CLI"
--metrics.datadog.addEntryPointsLabels=true
```
#### `addServicesLabels`
_Optional, Default=true_
Enable metrics on services.
```toml tab="File (TOML)"
[metrics]
2019-09-02 12:18:04 +02:00
[metrics.datadog]
2019-07-18 21:36:05 +02:00
addServicesLabels = true
```
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
```
```bash tab="CLI"
--metrics.datadog.addServicesLabels=true
```
#### `pushInterval`
_Optional, Default=10s_
The interval used by the exporter to push metrics to datadog-agent.
```toml tab="File (TOML)"
[metrics]
2019-09-02 12:18:04 +02:00
[metrics.datadog]
2019-07-18 21:36:05 +02:00
pushInterval = 10s
```
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
```
```bash tab="CLI"
--metrics.datadog.pushInterval=10s
```