Created
August 3, 2021 16:12
-
-
Save vilaca/67cd5a3a3ac52843d7ae7c48d9837870 to your computer and use it in GitHub Desktop.
AlertManager cluster (3x)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: "3.1" | |
services: | |
am-01: | |
command: | |
- '--cluster.listen-address=0.0.0.0:9094' | |
- '--cluster.peer=am-02:9094' | |
- '--config.file=/etc/alertmanager/config.yaml' | |
- '--log.level=error' | |
- '--storage.path=/alertmanager' | |
image: prom/alertmanager:v0.22.2 | |
ports: | |
- 9091:9093 | |
volumes: | |
- ./alertmanager/config.yaml:/etc/alertmanager/config.yaml | |
am-02: | |
command: | |
- '--cluster.listen-address=0.0.0.0:9094' | |
- '--cluster.peer=am-03:9094' | |
- '--config.file=/etc/alertmanager/config.yaml' | |
- '--log.level=error' | |
- '--storage.path=/alertmanager' | |
image: prom/alertmanager:v0.22.2 | |
ports: | |
- 9092:9093 | |
volumes: | |
- ./alertmanager/config.yaml:/etc/alertmanager/config.yaml | |
am-03: | |
command: | |
- '--cluster.listen-address=0.0.0.0:9094' | |
- '--cluster.peer=am-01:9094' | |
- '--config.file=/etc/alertmanager/config.yaml' | |
- '--log.level=error' | |
- '--storage.path=/alertmanager' | |
image: prom/alertmanager:v0.22.2 | |
ports: | |
- 9093:9093 | |
volumes: | |
- ./alertmanager/config.yaml:/etc/alertmanager/config.yaml | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Configuration file for all alertmanager instances should be placed in alertmanager/config.yaml