Monitor traefik with prometheus rather than influxdb
This commit is contained in:
@ -10,19 +10,3 @@ services:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- ./traefik:/etc/traefik
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- influxdb
|
||||
|
||||
influxdb:
|
||||
image: influxdb:1.8-alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- "{{ traefik_influx_db_dir }}:/var/lib/influxdb"
|
||||
ports:
|
||||
- "{{ private_ip }}:38089:8089/udp"
|
||||
- "{{ private_ip }}:38086:8086"
|
||||
environment:
|
||||
- INFLUXDB_DB=traefik
|
||||
- INFLUXDB_HTTP_AUTH_ENABLED=
|
||||
- INFLUXDB_UDP_ENABLED=true
|
||||
- INFLUXDB_UDP_DATABASE=traefik
|
||||
|
@ -58,10 +58,8 @@ serversTransport:
|
||||
insecureSkipVerify: true
|
||||
|
||||
metrics:
|
||||
influxDB:
|
||||
address: "{{ private_ip }}:38089"
|
||||
database: traefik
|
||||
pushInterval: 30s
|
||||
prometheus:
|
||||
entryPoint: traefik
|
||||
|
||||
tls:
|
||||
options:
|
||||
|
Reference in New Issue
Block a user