Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed --alertmanager.cluster.peers #329

Merged
merged 1 commit into from
Jun 16, 2021
Merged

Fixed --alertmanager.cluster.peers #329

merged 1 commit into from
Jun 16, 2021

Conversation

pracucci
Copy link
Collaborator

What this PR does:
The --alertmanager.cluster.peers is expected to have multiple peers a single comma-separated string, instead of specifying multiple times the CLI flag. This PR fixes it.

Which issue(s) this PR fixes:
N/A

Checklist

  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci requested a review from a team as a code owner June 16, 2021 13:17
@@ -63,7 +63,7 @@
$.util.mapToFlags($.alertmanager_args) +
if isHA then
['--alertmanager.cluster.listen-address=[$(POD_IP)]:%s' % $._config.alertmanager.gossip_port] +
['--alertmanager.cluster.peers=%s' % peer for peer in peers]
['--alertmanager.cluster.peers=%s' % std.join(',', peers)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a good time to also fix the double --?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not now, otherwise will trigger a rollout in all envs :)

@pracucci pracucci merged commit b320e0f into main Jun 16, 2021
@pracucci pracucci deleted the fix-alertmanager-peers branch June 16, 2021 13:20
simonswine pushed a commit to grafana/mimir that referenced this pull request Dec 20, 2021
…anager-peers

Fixed --alertmanager.cluster.peers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants