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
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 7 additions and 24 deletions

View file

@ -1,5 +1,3 @@
expose_ssh: true
traefik_influx_db_dir: /mnt/tank/dbs/influx/traefik
docker_zfs_override: true

View file

@ -3,3 +3,8 @@ scrape_configs:
static_configs:
- targets:
- telegraf:9273
- job_name: traefik
static_configs:
- targets:
- 10.23.2.3:8080 # grimes
- 192.168.2.47:8080 # pve-docker

View file

@ -1,5 +1,3 @@
traefik_influx_db_dir: ./influxdb
traefik_provider_jellyfin: false
traefik_provider_homeassistant: false
traefik_provider_grafana: false

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: