2019-07-18 19:36:05 +00:00
|
|
|
# StatsD
|
|
|
|
|
|
|
|
To enable the Statsd:
|
|
|
|
|
2019-07-22 07:58:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
2019-07-18 19:36:05 +00:00
|
|
|
metrics:
|
2019-09-30 12:56:05 +00:00
|
|
|
statsD: {}
|
2019-07-18 19:36:05 +00:00
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[metrics]
|
|
|
|
[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.
|
|
|
|
|
2019-07-22 07:58:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
2019-07-18 19:36:05 +00:00
|
|
|
metrics:
|
2019-09-30 12:56:05 +00:00
|
|
|
statsD:
|
2019-07-18 19:36:05 +00:00
|
|
|
address: localhost:8125
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[metrics]
|
|
|
|
[metrics.statsD]
|
|
|
|
address = "localhost:8125"
|
|
|
|
```
|
|
|
|
|
2019-07-18 19:36:05 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--metrics.statsd.address=localhost:8125
|
2019-07-18 19:36:05 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `addEntryPointsLabels`
|
|
|
|
|
|
|
|
_Optional, Default=true_
|
|
|
|
|
|
|
|
Enable metrics on entry points.
|
|
|
|
|
2019-07-22 07:58:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
2019-07-18 19:36:05 +00:00
|
|
|
metrics:
|
2019-09-30 12:56:05 +00:00
|
|
|
statsD:
|
2019-07-18 19:36:05 +00:00
|
|
|
addEntryPointsLabels: true
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[metrics]
|
|
|
|
[metrics.statsD]
|
|
|
|
addEntryPointsLabels = true
|
|
|
|
```
|
|
|
|
|
2019-07-18 19:36:05 +00:00
|
|
|
```bash tab="CLI"
|
|
|
|
--metrics.statsd.addEntryPointsLabels=true
|
|
|
|
```
|
|
|
|
|
|
|
|
#### `addServicesLabels`
|
|
|
|
|
|
|
|
_Optional, Default=true_
|
|
|
|
|
|
|
|
Enable metrics on services.
|
|
|
|
|
2019-07-22 07:58:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
2019-07-18 19:36:05 +00:00
|
|
|
metrics:
|
2019-09-30 12:56:05 +00:00
|
|
|
statsD:
|
2019-07-18 19:36:05 +00:00
|
|
|
addServicesLabels: true
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[metrics]
|
|
|
|
[metrics.statsD]
|
|
|
|
addServicesLabels = true
|
|
|
|
```
|
|
|
|
|
2019-07-18 19:36:05 +00:00
|
|
|
```bash tab="CLI"
|
|
|
|
--metrics.statsd.addServicesLabels=true
|
|
|
|
```
|
|
|
|
|
|
|
|
#### `pushInterval`
|
|
|
|
|
|
|
|
_Optional, Default=10s_
|
|
|
|
|
|
|
|
The interval used by the exporter to push metrics to statsD.
|
|
|
|
|
2019-07-22 07:58:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
2019-07-18 19:36:05 +00:00
|
|
|
metrics:
|
2019-09-30 12:56:05 +00:00
|
|
|
statsD:
|
2019-07-18 19:36:05 +00:00
|
|
|
pushInterval: 10s
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[metrics]
|
|
|
|
[metrics.statsD]
|
|
|
|
pushInterval = 10s
|
|
|
|
```
|
|
|
|
|
2019-07-18 19:36:05 +00:00
|
|
|
```bash tab="CLI"
|
|
|
|
--metrics.statsd.pushInterval=10s
|
|
|
|
```
|
2019-11-12 17:18:04 +00:00
|
|
|
|
|
|
|
#### `prefix`
|
|
|
|
|
|
|
|
_Optional, Default="traefik"_
|
|
|
|
|
|
|
|
The prefix to use for metrics collection.
|
|
|
|
|
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
metrics:
|
|
|
|
statsD:
|
|
|
|
prefix: traefik
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[metrics]
|
|
|
|
[metrics.statsD]
|
|
|
|
prefix = "traefik"
|
|
|
|
```
|
|
|
|
|
2019-11-12 17:18:04 +00:00
|
|
|
```bash tab="CLI"
|
|
|
|
--metrics.statsd.prefix="traefik"
|
2021-06-18 22:08:08 +00:00
|
|
|
```
|