Monitor traefik with prometheus rather than influxdb

This commit is contained in:
Jake Howard
2021-03-04 16:26:55 +00:00
parent e8960ebf27
commit b264e5cbcc
5 changed files with 7 additions and 24 deletions

View File

@ -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

View File

@ -58,10 +58,8 @@ serversTransport:
insecureSkipVerify: true
metrics:
influxDB:
address: "{{ private_ip }}:38089"
database: traefik
pushInterval: 30s
prometheus:
entryPoint: traefik
tls:
options: