don't add --cluster.peer if there are no other peers
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
4ee375e104
commit
e1c585bc9a
|
@ -25,7 +25,9 @@ services:
|
|||
- '--cluster.probe-timeout={{ alertmanager_probe_timeout }}'
|
||||
- '--cluster.probe-interval={{ alertmanager_probe_interval }}'
|
||||
{% for peer in alertmanager_cluster_peers %}
|
||||
{% if peer.Node != hostname %}
|
||||
- '--cluster.peer={{ peer.ServiceAddress }}:{{ alertmanager_cluster_port }}' # {{ peer.Node }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if alertmanager_oauth_id %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue