Prometheus: Put External URL into alerts

This commit is contained in:
Tobias Manske 2023-04-17 22:01:31 +02:00
parent 945fe5d39d
commit 9174639f32
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

@ -5,6 +5,7 @@ services:
restart: unless-stopped restart: unless-stopped
command: command:
- '--config.file=/etc/prometheus/prometheus.yml' - '--config.file=/etc/prometheus/prometheus.yml'
- '--web.external-url=https://prometheus.tobiasmanske.de'
volumes: volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro,Z - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro,Z
- prom_data:/prometheus - prom_data:/prometheus
@ -54,6 +55,7 @@ services:
restart: unless-stopped restart: unless-stopped
command: command:
- '--config.file=/etc/alertmanager/config.yml' - '--config.file=/etc/alertmanager/config.yml'
- '--web.external-url=https://alertmanager.tobiasmanske.de'
- '--storage.path=/data' - '--storage.path=/data'
alertmanager-matrix: alertmanager-matrix: