Metrics Definition

Prometheus

  1. # Metrics definition
  2. [metrics]
  3. #...
  4. # To enable Traefik to export internal metrics to Prometheus
  5. [metrics.prometheus]
  6. # Name of the related entry point
  7. #
  8. # Optional
  9. # Default: "traefik"
  10. #
  11. entryPoint = "traefik"
  12. # Buckets for latency metrics
  13. #
  14. # Optional
  15. # Default: [0.1, 0.3, 1.2, 5.0]
  16. #
  17. buckets = [0.1,0.3,1.2,5.0]
  18. # ...

DataDog

  1. # Metrics definition
  2. [metrics]
  3. #...
  4. # DataDog metrics exporter type
  5. [metrics.datadog]
  6. # DataDog's address.
  7. #
  8. # Required
  9. # Default: "localhost:8125"
  10. #
  11. address = "localhost:8125"
  12. # DataDog push interval
  13. #
  14. # Optional
  15. # Default: "10s"
  16. #
  17. pushInterval = "10s"
  18. # ...

StatsD

  1. # Metrics definition
  2. [metrics]
  3. #...
  4. # StatsD metrics exporter type
  5. [metrics.statsd]
  6. # StatD's address.
  7. #
  8. # Required
  9. # Default: "localhost:8125"
  10. #
  11. address = "localhost:8125"
  12. # StatD push interval
  13. #
  14. # Optional
  15. # Default: "10s"
  16. #
  17. pushInterval = "10s"
  18. # ...

InfluxDB

  1. [metrics]
  2. # ...
  3. # InfluxDB metrics exporter type
  4. [metrics.influxdb]
  5. # InfluxDB's address.
  6. #
  7. # Required
  8. # Default: "localhost:8089"
  9. #
  10. address = "localhost:8089"
  11. # InfluxDB's address protocol (udp or http)
  12. #
  13. # Required
  14. # Default: "udp"
  15. #
  16. protocol = "udp"
  17. # InfluxDB push interval
  18. #
  19. # Optional
  20. # Default: "10s"
  21. #
  22. pushinterval = "10s"
  23. # InfluxDB database used when protocol is http
  24. #
  25. # Optional
  26. # Default: ""
  27. #
  28. database = ""
  29. # InfluxDB retention policy used when protocol is http
  30. #
  31. # Optional
  32. # Default: ""
  33. #
  34. retentionpolicy = ""
  35. # ...