mirror of
https://github.com/grafana/grafana.git
synced 2025-01-24 07:17:08 -06:00
Devenv: Allow configuring alertmanager config for prometheus docker block (#89558)
This commit is contained in:
parent
bc43078320
commit
c0641a0ca6
16
devenv/docker/blocks/prometheus/alertmanager.yml
Normal file
16
devenv/docker/blocks/prometheus/alertmanager.yml
Normal 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']
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user