Prometheus¶
This document describes the steps to follow to use Prometheus with TraefikEE.
Enabling Prometheus Metrics¶
If you want to use Prometheus as a metrics collector, it can be enabled with the below static configuration:
entryPoints:
http:
address: ":80"
https:
address: ":443"
metrics:
address: ":8080"
metrics:
prometheus:
entryPoint: metrics
providers:
kubernetesCRD: {}
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.https]
address = ":443"
[entryPoints.metrics]
address = ":8080"
[metrics.prometheus]
entryPoint = "metrics"
[providers.kubernetescrd]
This enables a Prometheus exporter endpoint on the entrypoint metrics
which is listening to port 8080
.
The entrypoint can be customized to listen to any desired port or to use an existing entrypoint. Please refer to
Traefik documentation for more configuration options.
It is possible to use ingress entrypoints to expose Prometheus metrics. For more information on this feature, please
refer to the Traefik documentation on manual routing
.