configure probe interval and timeout

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-12-10 11:07:05 +01:00
parent b84557d921
commit a659ba2721
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 7 additions and 1 deletions

View File

@ -17,6 +17,10 @@ alertmanager_cont_log_lvl: 'info'
alertmanager_webui_port: 9093
# Port used for clustering AlertManager peers
alertmanager_cluster_port: 9094
# Time to wait for ack before marking node unhealthy
alertmanager_probe_timeout: '1000ms'
# Interval between random node probes
alertmanager_probe_interval: '5s'
# SMTP
alertmanager_smtp_host: ~

View File

@ -17,11 +17,13 @@ services:
- '/certs:/certs'
command:
- '--storage.path=/data'
- '--log.level={{ alertmanager_cont_log_lvl }}'
- '--config.file=/etc/alertmanager.yml'
- '--log.level={{ alertmanager_cont_log_lvl }}'
- '--web.external-url={{ alertmanager_url }}'
- '--cluster.advertise-address={{ ansible_local.tinc.vpn_ip }}:{{ alertmanager_cluster_port }}'
- '--cluster.listen-address=0.0.0.0:{{ alertmanager_cluster_port }}'
- '--cluster.probe-timeout={{ alertmanager_probe_timeout }}'
- '--cluster.probe-interval={{ alertmanager_probe_interval }}'
{% for peer in alertmanager_cluster_peers %}
- '--cluster.peer={{ peer.ServiceAddress }}:{{ alertmanager_cluster_port }}' # {{ peer.Node }}
{% endfor %}