Actualiser configs/traefik.yml
This commit is contained in:
parent
68a97ba36f
commit
788e10b187
@ -15,6 +15,8 @@ entryPoints:
|
|||||||
scheme: "https"
|
scheme: "https"
|
||||||
https:
|
https:
|
||||||
address: ":443"
|
address: ":443"
|
||||||
|
metrics:
|
||||||
|
address: ":8181"
|
||||||
|
|
||||||
# Access logs
|
# Access logs
|
||||||
# accessLog: fields:
|
# accessLog: fields:
|
||||||
@ -26,7 +28,7 @@ providers:
|
|||||||
docker:
|
docker:
|
||||||
endpoint: "unix:///var/run/docker.sock"
|
endpoint: "unix:///var/run/docker.sock"
|
||||||
exposedByDefault: false
|
exposedByDefault: false
|
||||||
network: "interne"
|
# network: "interne"
|
||||||
watch: true
|
watch: true
|
||||||
file:
|
file:
|
||||||
directory: /etc/traefik/dynamic
|
directory: /etc/traefik/dynamic
|
||||||
@ -49,9 +51,28 @@ api:
|
|||||||
log:
|
log:
|
||||||
level: DEBUG
|
level: DEBUG
|
||||||
filepath: "/var/log/traefik.log"
|
filepath: "/var/log/traefik.log"
|
||||||
|
format: json
|
||||||
# default: "common"
|
# default: "common"
|
||||||
|
|
||||||
accesslog:
|
accesslog:
|
||||||
filepath: "/var/log/access.log"
|
filepath: "/var/log/access.log"
|
||||||
|
format: json
|
||||||
bufferingSize: 100
|
bufferingSize: 100
|
||||||
# format: common
|
# format: common
|
||||||
|
|
||||||
|
# Ajout de la partie métrique qui concerne Prometheus
|
||||||
|
metrics:
|
||||||
|
prometheus:
|
||||||
|
# Nom du point d'entrée défini au dessus
|
||||||
|
entryPoint: metrics
|
||||||
|
# On configure la latence des métriques
|
||||||
|
buckets:
|
||||||
|
- 0.1
|
||||||
|
- 0.3
|
||||||
|
- 1.2
|
||||||
|
- 5.0
|
||||||
|
# Ajout des métriques sur les points d'entrée
|
||||||
|
addEntryPointsLabels: true
|
||||||
|
# Ajout des services
|
||||||
|
addServicesLabels: true
|
||||||
|
addRoutersLabels: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user