2021-03-04 14:53:03 +00:00
|
|
|
version: "2.3"
|
|
|
|
|
2022-12-06 10:04:23 +00:00
|
|
|
x-blackbox: &blackbox
|
|
|
|
image: prom/blackbox-exporter:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
user: "{{ docker_user.id }}"
|
|
|
|
volumes:
|
|
|
|
- ./blackbox.yml:/etc/blackbox_exporter/config.yml:ro
|
|
|
|
|
2021-03-04 14:53:03 +00:00
|
|
|
services:
|
|
|
|
prometheus:
|
|
|
|
image: prom/prometheus:latest
|
|
|
|
restart: unless-stopped
|
2022-12-05 21:17:23 +00:00
|
|
|
user: "{{ docker_user.id }}"
|
2021-03-04 14:53:03 +00:00
|
|
|
volumes:
|
2022-12-05 21:12:55 +00:00
|
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
2023-02-19 18:31:52 +00:00
|
|
|
- ./alert-rules.d:/etc/prometheus/alert-rules.d:ro
|
2023-06-15 21:18:50 +01:00
|
|
|
- /mnt/speed/dbs/prometheus/forrest/:/prometheus/
|
2021-03-04 14:53:03 +00:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- grafana
|
|
|
|
ports:
|
2021-06-03 20:47:33 +01:00
|
|
|
- "{{ pve_hosts.forrest.ip }}:9090:9090"
|
2021-03-04 14:53:03 +00:00
|
|
|
|
2022-12-04 22:11:49 +00:00
|
|
|
blackbox:
|
2022-12-06 10:04:23 +00:00
|
|
|
<<: *blackbox
|
|
|
|
|
|
|
|
blackbox-external:
|
|
|
|
<<: *blackbox
|
|
|
|
# Don't use my internal DNS servers
|
|
|
|
dns:
|
|
|
|
- 9.9.9.9
|
|
|
|
- 149.112.112.112
|
2022-12-04 22:11:49 +00:00
|
|
|
|
2022-12-05 21:10:41 +00:00
|
|
|
alertmanager:
|
|
|
|
image: prom/alertmanager:latest
|
|
|
|
restart: unless-stopped
|
2022-12-05 21:17:23 +00:00
|
|
|
user: "{{ docker_user.id }}"
|
2022-12-05 21:10:41 +00:00
|
|
|
volumes:
|
2022-12-05 21:12:55 +00:00
|
|
|
- ./alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
|
2022-12-05 21:10:41 +00:00
|
|
|
|
2023-01-31 09:11:09 +00:00
|
|
|
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
|
|
|
|
|
2023-01-31 21:45:59 +00:00
|
|
|
speedtest_exporter:
|
|
|
|
image: jraviles/prometheus_speedtest:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
user: "{{ docker_user.id }}"
|
|
|
|
|
2021-03-04 14:53:03 +00:00
|
|
|
networks:
|
|
|
|
grafana:
|
|
|
|
external: true
|