From 7bd420cbfe3d9513bb93a346e532dc1ad7567da3 Mon Sep 17 00:00:00 2001 From: Roman Khavronenko Date: Thu, 7 Jan 2021 21:33:53 +0000 Subject: [PATCH] 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 --- deployment/docker/alertmanager.yml | 5 +++++ deployment/docker/docker-compose.yml | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 deployment/docker/alertmanager.yml diff --git a/deployment/docker/alertmanager.yml b/deployment/docker/alertmanager.yml new file mode 100644 index 000000000..6cf304a51 --- /dev/null +++ b/deployment/docker/alertmanager.yml @@ -0,0 +1,5 @@ +route: + receiver: blackhole + +receivers: + - name: blackhole diff --git a/deployment/docker/docker-compose.yml b/deployment/docker/docker-compose.yml index fc1e4f115..736d3f4bd 100644 --- a/deployment/docker/docker-compose.yml +++ b/deployment/docker/docker-compose.yml @@ -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: