Devenv: Allow configuring alertmanager config for prometheus docker block (#89558)

This commit is contained in:
Gilles De Mey 2024-06-22 13:20:51 +02:00 committed by GitHub
parent bc43078320
commit c0641a0ca6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,16 @@
route:
group_by: ['alertname']
group_wait: 30s
group_interval: 5m
repeat_interval: 1h
receiver: 'web.hook'
receivers:
- name: 'web.hook'
webhook_configs:
- url: 'http://127.0.0.1:5001/'
inhibit_rules:
- source_match:
severity: 'critical'
target_match:
severity: 'warning'
equal: ['alertname', 'dev', 'instance']

View File

@ -25,7 +25,11 @@
FD_DATASOURCE: prom
alertmanager:
image: quay.io/prometheus/alertmanager
image: prom/alertmanager
volumes:
- ${PWD}/docker/blocks/prometheus/alertmanager.yml:/etc/alertmanager/alertmanager.yml
command: >
--config.file=/etc/alertmanager/alertmanager.yml
ports:
- "9093:9093"