Jake Howard
ddc91059b5
Still missing SMART and ping, but those can come later. Swapped as the polling model for prometheus doesn't play especially well with telegraf, and leads to gaps in data
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
version: "2.3"
|
|
|
|
x-blackbox: &blackbox
|
|
image: prom/blackbox-exporter:latest
|
|
restart: unless-stopped
|
|
user: "{{ docker_user.id }}"
|
|
volumes:
|
|
- ./blackbox.yml:/etc/blackbox_exporter/config.yml:ro
|
|
|
|
services:
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
restart: unless-stopped
|
|
user: "{{ docker_user.id }}"
|
|
volumes:
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
|
- /mnt/tank/dbs/prometheus/forrest/:/prometheus/
|
|
networks:
|
|
- default
|
|
- grafana
|
|
ports:
|
|
- "{{ pve_hosts.forrest.ip }}:9090:9090"
|
|
|
|
blackbox:
|
|
<<: *blackbox
|
|
|
|
blackbox-external:
|
|
<<: *blackbox
|
|
# Don't use my internal DNS servers
|
|
dns:
|
|
- 9.9.9.9
|
|
- 149.112.112.112
|
|
|
|
alertmanager:
|
|
image: prom/alertmanager:latest
|
|
restart: unless-stopped
|
|
user: "{{ docker_user.id }}"
|
|
volumes:
|
|
- ./alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
|
|
|
|
proxmox_exporter:
|
|
image: prompve/prometheus-pve-exporter:latest
|
|
restart: unless-stopped
|
|
user: "{{ docker_user.id }}"
|
|
environment:
|
|
- PVE_USER=prometheus@pve
|
|
- PVE_TOKEN_NAME=prometheus
|
|
- PVE_TOKEN_VALUE={{ prometheus_api_token }}
|
|
- PVE_VERIFY_SSL=false
|
|
|
|
networks:
|
|
grafana:
|
|
external: true
|