Skip to content

Commit

Permalink
Adding Alert Manager Setup File
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumar-vs committed Apr 24, 2024
1 parent 3fa59bf commit 2e5aaf4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pmm_qa/alertmanager.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

while [ $# -gt 0 ]; do

if [[ $1 == *"--"* ]]; then
param="${1/--/}"
declare $param="$2"
fi

shift
done

docker stop alert-manager && docker rm -fv alert-manager
sleep 10
docker run -d -p 9093:9093 --name alert-manager prom/alertmanager:latest
sleep 20

0 comments on commit 2e5aaf4

Please sign in to comment.