Skip to content

Commit

Permalink
Further optimisations to AlertManager initscript
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Sep 19, 2024
1 parent ed129ca commit 44bbce5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ data:
AM_IPS=$(jq '.items[].status.podIP' /tmp/peers.json -r)
echo Generating CLI flags for Alertmanager...
PEER_ARGS=$(echo $AM_IPS | sed 's/ /\n/g' | awk '{ print "--cluster.peer="$1":9094" }')
PEER_ARGS=$(echo $AM_IPS | awk -v RS=' ' -v ORS=' ' '{ print "--cluster.peer="$1":9094" }')
echo Writing CLI flags to /tmp/peers...
echo $PEER_ARGS > /tmp/peers

0 comments on commit 44bbce5

Please sign in to comment.