2017-11-09 15:12:04 +00:00
|
|
|
# Metrics Definition
|
|
|
|
|
|
|
|
## Prometheus
|
|
|
|
|
|
|
|
```toml
|
|
|
|
# Metrics definition
|
|
|
|
[metrics]
|
|
|
|
#...
|
|
|
|
|
|
|
|
# To enable Traefik to export internal metrics to Prometheus
|
|
|
|
[metrics.prometheus]
|
|
|
|
|
2017-11-22 15:28:03 +00:00
|
|
|
# Name of the related entry point
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: "traefik"
|
|
|
|
#
|
|
|
|
entryPoint = "traefik"
|
|
|
|
|
2017-11-09 15:12:04 +00:00
|
|
|
# Buckets for latency metrics
|
|
|
|
#
|
|
|
|
# Optional
|
2019-02-05 15:36:08 +00:00
|
|
|
# Default: [0.1, 0.3, 1.2, 5.0]
|
2017-11-09 15:12:04 +00:00
|
|
|
#
|
|
|
|
buckets = [0.1,0.3,1.2,5.0]
|
|
|
|
|
|
|
|
# ...
|
|
|
|
```
|
|
|
|
|
|
|
|
## DataDog
|
|
|
|
|
|
|
|
```toml
|
|
|
|
# Metrics definition
|
|
|
|
[metrics]
|
|
|
|
#...
|
|
|
|
|
|
|
|
# DataDog metrics exporter type
|
|
|
|
[metrics.datadog]
|
|
|
|
|
|
|
|
# DataDog's address.
|
|
|
|
#
|
|
|
|
# Required
|
|
|
|
# Default: "localhost:8125"
|
|
|
|
#
|
|
|
|
address = "localhost:8125"
|
|
|
|
|
|
|
|
# DataDog push interval
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: "10s"
|
|
|
|
#
|
|
|
|
pushInterval = "10s"
|
|
|
|
|
|
|
|
# ...
|
|
|
|
```
|
|
|
|
|
|
|
|
## StatsD
|
|
|
|
|
|
|
|
```toml
|
|
|
|
# Metrics definition
|
|
|
|
[metrics]
|
|
|
|
#...
|
|
|
|
|
|
|
|
# StatsD metrics exporter type
|
|
|
|
[metrics.statsd]
|
|
|
|
|
|
|
|
# StatD's address.
|
|
|
|
#
|
|
|
|
# Required
|
|
|
|
# Default: "localhost:8125"
|
|
|
|
#
|
|
|
|
address = "localhost:8125"
|
|
|
|
|
|
|
|
# StatD push interval
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: "10s"
|
|
|
|
#
|
|
|
|
pushInterval = "10s"
|
|
|
|
|
|
|
|
# ...
|
|
|
|
```
|
2018-05-29 20:58:03 +00:00
|
|
|
|
2018-06-13 15:44:04 +00:00
|
|
|
## InfluxDB
|
2017-11-09 15:12:04 +00:00
|
|
|
|
|
|
|
```toml
|
2017-11-22 15:28:03 +00:00
|
|
|
[metrics]
|
2017-11-09 15:12:04 +00:00
|
|
|
# ...
|
|
|
|
|
|
|
|
# InfluxDB metrics exporter type
|
2017-11-22 15:28:03 +00:00
|
|
|
[metrics.influxdb]
|
2017-11-09 15:12:04 +00:00
|
|
|
|
|
|
|
# InfluxDB's address.
|
|
|
|
#
|
|
|
|
# Required
|
|
|
|
# Default: "localhost:8089"
|
|
|
|
#
|
|
|
|
address = "localhost:8089"
|
|
|
|
|
2018-05-29 20:58:03 +00:00
|
|
|
# InfluxDB's address protocol (udp or http)
|
|
|
|
#
|
|
|
|
# Required
|
|
|
|
# Default: "udp"
|
|
|
|
#
|
|
|
|
protocol = "udp"
|
|
|
|
|
2018-07-11 15:50:03 +00:00
|
|
|
# InfluxDB's username
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: "" (no username)
|
|
|
|
#
|
|
|
|
username = ""
|
|
|
|
|
|
|
|
# InfluxDB's password
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: "" (no password)
|
|
|
|
#
|
|
|
|
password = ""
|
|
|
|
|
2017-11-09 15:12:04 +00:00
|
|
|
# InfluxDB push interval
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: "10s"
|
|
|
|
#
|
|
|
|
pushinterval = "10s"
|
|
|
|
|
2018-05-29 20:58:03 +00:00
|
|
|
# InfluxDB database used when protocol is http
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: ""
|
|
|
|
#
|
|
|
|
database = ""
|
|
|
|
|
|
|
|
# InfluxDB retention policy used when protocol is http
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: ""
|
|
|
|
#
|
|
|
|
retentionpolicy = ""
|
|
|
|
|
2017-11-09 15:12:04 +00:00
|
|
|
# ...
|
|
|
|
```
|