Monitor traefik with prometheus rather than influxdb
This commit is contained in:
parent
e8960ebf27
commit
b264e5cbcc
5 changed files with 7 additions and 24 deletions
|
@ -1,5 +1,3 @@
|
||||||
expose_ssh: true
|
expose_ssh: true
|
||||||
|
|
||||||
traefik_influx_db_dir: /mnt/tank/dbs/influx/traefik
|
|
||||||
|
|
||||||
docker_zfs_override: true
|
docker_zfs_override: true
|
||||||
|
|
|
@ -3,3 +3,8 @@ scrape_configs:
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- telegraf:9273
|
- telegraf:9273
|
||||||
|
- job_name: traefik
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- 10.23.2.3:8080 # grimes
|
||||||
|
- 192.168.2.47:8080 # pve-docker
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
traefik_influx_db_dir: ./influxdb
|
|
||||||
|
|
||||||
traefik_provider_jellyfin: false
|
traefik_provider_jellyfin: false
|
||||||
traefik_provider_homeassistant: false
|
traefik_provider_homeassistant: false
|
||||||
traefik_provider_grafana: false
|
traefik_provider_grafana: false
|
||||||
|
|
|
@ -10,19 +10,3 @@ 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:
|
|
||||||
- "{{ 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
|
insecureSkipVerify: true
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
influxDB:
|
prometheus:
|
||||||
address: "{{ private_ip }}:38089"
|
entryPoint: traefik
|
||||||
database: traefik
|
|
||||||
pushInterval: 30s
|
|
||||||
|
|
||||||
tls:
|
tls:
|
||||||
options:
|
options:
|
||||||
|
|
Loading…
Reference in a new issue