Add influxdb to monitor traefik
This commit is contained in:
parent
17f0e22962
commit
ec751ffa1a
4 changed files with 25 additions and 0 deletions
1
ansible/group_vars/all/directories.yml
Normal file
1
ansible/group_vars/all/directories.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
traefik_influx_db_dir: ./influxdb
|
|
@ -1 +1,3 @@
|
||||||
expose_ssh: true
|
expose_ssh: true
|
||||||
|
|
||||||
|
traefik_influx_db_dir: /mnt/tank/dbs/influx/traefik
|
||||||
|
|
|
@ -8,3 +8,19 @@ services:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- ./traefik:/etc/traefik
|
- ./traefik:/etc/traefik
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
- influxdb
|
||||||
|
|
||||||
|
influxdb:
|
||||||
|
image: influxdb:1.8-alpine
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- "{{ traefik_influx_db_dir }}:/var/lib/influxdb"
|
||||||
|
ports:
|
||||||
|
- "{{ wireguard.clients[ansible_fqdn].ip }}:38089:8089/udp"
|
||||||
|
- "{{ wireguard.clients[ansible_fqdn].ip }}:38086:8086"
|
||||||
|
environment:
|
||||||
|
- INFLUXDB_DB=traefik
|
||||||
|
- INFLUXDB_HTTP_AUTH_ENABLED=
|
||||||
|
- INFLUXDB_UDP_ENABLED=true
|
||||||
|
- INFLUXDB_UDP_DATABASE=traefik
|
||||||
|
|
|
@ -41,3 +41,9 @@ certificatesResolvers:
|
||||||
|
|
||||||
serversTransport:
|
serversTransport:
|
||||||
insecureSkipVerify: true
|
insecureSkipVerify: true
|
||||||
|
|
||||||
|
metrics:
|
||||||
|
influxDB:
|
||||||
|
address: "{{ wireguard.clients[ansible_fqdn].ip }}:38089"
|
||||||
|
database: traefik
|
||||||
|
pushInterval: 30s
|
||||||
|
|
Loading…
Reference in a new issue