chore(demo): add 3rd alertmanager instance

This commit is contained in:
Łukasz Mierzwa
2020-06-12 19:14:17 +01:00
committed by Łukasz Mierzwa
parent 3ef13a00c0
commit 7db11609b2
4 changed files with 25 additions and 5 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ import time
import urllib.request, urllib.error, urllib.parse
APIs = ["http://localhost:9093", "http://localhost:9094"]
APIs = ["http://localhost:9093", "http://localhost:9094", "http://localhost:9095"]
MAX_INTERVAL = 10
MIN_INTERVAL = 5
@@ -411,7 +411,7 @@ class PaginationTest(AlertGenerator):
severity="warning", job="node_exporter",
region="US"),
self._annotations(dashboard="https://example.com")
) for i in range(0, 1000)
) for i in range(0, 500)
]
def silences(self):
+14 -2
View File
@@ -18,6 +18,12 @@ alertmanager:
proxy: true
cors:
credentials: same-origin
- name: single
uri: "http://localhost:9095"
timeout: 10s
proxy: true
cors:
credentials: same-origin
alertAcknowledgement:
enabled: true
duration: 15m0s
@@ -31,6 +37,7 @@ custom:
debug: true
filters:
default:
- "@cluster=HA"
- "@receiver=by-cluster-service"
grid:
sorting:
@@ -56,9 +63,14 @@ labels:
unique:
- cluster
- instance
- @receiver
- @cluster
- "@receiver"
- "@cluster"
custom:
"@cluster":
- value: HA
color: "#70e1e1"
- value: single
color: "#ff6347"
region:
- value_re: ".*"
color: "#736598"
+8
View File
@@ -22,6 +22,14 @@ stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:alertmanager3]
command=/alertmanager --config.file=/etc/alertmanager.yaml --storage.path=/tmp/alertmanager3 --web.listen-address=:9095 --cluster.listen-address=127.0.0.1:8003
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:generator]
command=/generator.py
autorestart=true
+1 -1
View File
@@ -8,4 +8,4 @@ docker-image:
run-demo:
docker build --build-arg VERSION=$(VERSION) -t $(NAME):demo -f demo/Dockerfile .
@docker rm -f $(NAME)-demo || true
docker run --rm --name $(NAME)-demo -p 8080:8080 -p 9093:9093 -p 9094:9094 $(NAME):demo
docker run --rm --name $(NAME)-demo -p 8080:8080 -p 9093:9093 -p 9094:9094 -p 9095:9095 $(NAME):demo