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

106 lines
1.5 KiB
Markdown
Raw Normal View History

2019-07-18 19:36:05 +00:00
# StatsD
To enable the Statsd:
```toml tab="File (TOML)"
[metrics]
[metrics.statsD]
2019-07-18 19:36:05 +00:00
```
2019-07-22 07:58:04 +00:00
```yaml tab="File (YAML)"
2019-07-18 19:36:05 +00:00
metrics:
statsD: {}
2019-07-18 19:36:05 +00:00
```
```bash tab="CLI"
2019-07-22 07:58:04 +00:00
--metrics.statsd=true
2019-07-18 19:36:05 +00:00
```
#### `address`
_Required, Default="localhost:8125"_
Address instructs exporter to send metrics to statsd at this address.
```toml tab="File (TOML)"
[metrics]
[metrics.statsD]
2019-07-18 19:36:05 +00:00
address = "localhost:8125"
```
2019-07-22 07:58:04 +00:00
```yaml tab="File (YAML)"
2019-07-18 19:36:05 +00:00
metrics:
statsD:
2019-07-18 19:36:05 +00:00
address: localhost:8125
```
```bash tab="CLI"
--metrics.statsd.address="localhost:8125"
```
#### `addEntryPointsLabels`
_Optional, Default=true_
Enable metrics on entry points.
```toml tab="File (TOML)"
[metrics]
[metrics.statsD]
2019-07-18 19:36:05 +00:00
addEntryPointsLabels = true
```
2019-07-22 07:58:04 +00:00
```yaml tab="File (YAML)"
2019-07-18 19:36:05 +00:00
metrics:
statsD:
2019-07-18 19:36:05 +00:00
addEntryPointsLabels: true
```
```bash tab="CLI"
--metrics.statsd.addEntryPointsLabels=true
```
#### `addServicesLabels`
_Optional, Default=true_
Enable metrics on services.
```toml tab="File (TOML)"
[metrics]
[metrics.statsD]
2019-07-18 19:36:05 +00:00
addServicesLabels = true
```
2019-07-22 07:58:04 +00:00
```yaml tab="File (YAML)"
2019-07-18 19:36:05 +00:00
metrics:
statsD:
2019-07-18 19:36:05 +00:00
addServicesLabels: true
```
```bash tab="CLI"
--metrics.statsd.addServicesLabels=true
```
#### `pushInterval`
_Optional, Default=10s_
The interval used by the exporter to push metrics to statsD.
```toml tab="File (TOML)"
[metrics]
[metrics.statsD]
2019-07-18 19:36:05 +00:00
pushInterval = 10s
```
2019-07-22 07:58:04 +00:00
```yaml tab="File (YAML)"
2019-07-18 19:36:05 +00:00
metrics:
statsD:
2019-07-18 19:36:05 +00:00
pushInterval: 10s
```
```bash tab="CLI"
--metrics.statsd.pushInterval=10s
```