Add ntfy alert delivery for monitoring
This commit is contained in:
@@ -19,10 +19,49 @@ services:
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
depends_on:
|
||||
- alertmanager
|
||||
- blackbox-exporter
|
||||
- node-exporter
|
||||
- cadvisor
|
||||
|
||||
alertmanager:
|
||||
image: prom/alertmanager:v0.28.1
|
||||
container_name: monitoring-alertmanager
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- --config.file=/etc/alertmanager/alertmanager.yml
|
||||
- --storage.path=/alertmanager
|
||||
volumes:
|
||||
- ./alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
|
||||
- alertmanager_data:/alertmanager
|
||||
networks:
|
||||
- monitoring_net
|
||||
expose:
|
||||
- "9093"
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
|
||||
alertmanager-ntfy-bridge:
|
||||
image: python:3.13-alpine
|
||||
container_name: monitoring-alertmanager-ntfy-bridge
|
||||
restart: unless-stopped
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 8.8.8.8
|
||||
environment:
|
||||
NTFY_URL: https://ntfy.kaleschke.info/homelab-alerts
|
||||
command:
|
||||
- python
|
||||
- /app/bridge.py
|
||||
volumes:
|
||||
- ./alertmanager-ntfy-bridge/bridge.py:/app/bridge.py:ro
|
||||
networks:
|
||||
- monitoring_net
|
||||
expose:
|
||||
- "8080"
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
|
||||
blackbox-exporter:
|
||||
image: prom/blackbox-exporter:v0.27.0
|
||||
container_name: monitoring-blackbox-exporter
|
||||
@@ -311,6 +350,7 @@ networks:
|
||||
|
||||
volumes:
|
||||
prometheus_data:
|
||||
alertmanager_data:
|
||||
loki_data:
|
||||
promtail_positions:
|
||||
grafana_data:
|
||||
|
||||
Reference in New Issue
Block a user