Extend traefik to collect metrics.
This commit is contained in:
@@ -46,6 +46,16 @@ services:
|
||||
- --certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json
|
||||
- --log=true
|
||||
- --accessLog=true
|
||||
- --metrics.influxdb=true
|
||||
- --metrics.influxdb.address=influx.lan
|
||||
- --metrics.influxdb.protocol=http
|
||||
- --metrics.influxdb.database=${INFLUXDB_DB}
|
||||
- --metrics.influxdb.username=${INFLUXDB_ADMIN_USER}
|
||||
- --metrics.influxdb.password=${INFLUXDB_ADMIN_PASSWORD}
|
||||
- --metrics.influxdb.addEntryPointsLabels=true
|
||||
- --metrics.influxdb.addrouterslabels=true
|
||||
- --metrics.influxdb.addServicesLabels=true
|
||||
- --metrics.influxdb.pushInterval=10s
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
|
||||
Reference in New Issue
Block a user