Commit 0f5e3d7c authored by Sebastian Denz's avatar Sebastian Denz
Browse files

use heartbeat name from env too

parent 1f6d816a
Pipeline #8492 passed with stage
in 49 seconds
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#PROMETHEUS="http://10.10.65.38:32090/-/healthy" #PROMETHEUS="http://10.10.65.38:32090/-/healthy"
#ALERTMANAGER="http://10.10.65.38:32092/-/healthy" #ALERTMANAGER="http://10.10.65.38:32092/-/healthy"
#APITOKEN="12345565-123123-11-aea2-338b0155b6cb" #APITOKEN="12345565-123123-11-aea2-338b0155b6cb"
#HEARTBEAT="qualis_heartbeat_prod"
if [ "$(curl $PROMETHEUS 2>/dev/null)" != "Prometheus is Healthy." ] if [ "$(curl $PROMETHEUS 2>/dev/null)" != "Prometheus is Healthy." ]
then then
...@@ -18,5 +19,5 @@ if [ "$(curl $ALERTMANAGER 2>/dev/null)" != "OK" ] ...@@ -18,5 +19,5 @@ if [ "$(curl $ALERTMANAGER 2>/dev/null)" != "OK" ]
fi fi
echo "everything is fine :)" echo "everything is fine :)"
curl -X GET 'https://api.eu.opsgenie.com/v2/heartbeats/qualis_heartbeat_prod/ping' --header "Authorization: GenieKey $APITOKEN" curl -X GET "https://api.eu.opsgenie.com/v2/heartbeats/$HEARTBEAT/ping" --header "Authorization: GenieKey $APITOKEN"
exit 0 exit 0
...@@ -19,4 +19,6 @@ spec: ...@@ -19,4 +19,6 @@ spec:
value: "http://alertmanager:80/-/healthy" value: "http://alertmanager:80/-/healthy"
- name: APITOKEN - name: APITOKEN
value: "956b4bb7-5bd6-4512-aea2-338b0155b6cb" value: "956b4bb7-5bd6-4512-aea2-338b0155b6cb"
- name: HEARTBEAT
value: "qualis_heartbeat_prod"
restartPolicy: Never restartPolicy: Never
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment