mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
docker-compose: add blackhole receiver for alertmanager (#999)
Currently, alertmanager spams logs with `Notify attempt failed, will retry later` message because default receiver is unreachable. The change updates default configuration with blackhole receiver which means alertmanager will continue to accept alerts but won't make attempts to send them anywhere. https://github.com/VictoriaMetrics/VictoriaMetrics/issues/995
This commit is contained in:
parent
85962b459f
commit
7bd420cbfe
2 changed files with 9 additions and 0 deletions
5
deployment/docker/alertmanager.yml
Normal file
5
deployment/docker/alertmanager.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
route:
|
||||
receiver: blackhole
|
||||
|
||||
receivers:
|
||||
- name: blackhole
|
|
@ -77,6 +77,10 @@ services:
|
|||
alertmanager:
|
||||
container_name: alertmanager
|
||||
image: prom/alertmanager
|
||||
volumes:
|
||||
- ./alertmanager.yml:/config/alertmanager.yml
|
||||
command:
|
||||
- '--config.file=/config/alertmanager.yml'
|
||||
ports:
|
||||
- 9093:9093
|
||||
networks:
|
||||
|
|
Loading…
Reference in a new issue