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 @@
#PROMETHEUS="http://10.10.65.38:32090/-/healthy"
#ALERTMANAGER="http://10.10.65.38:32092/-/healthy"
#APITOKEN="12345565-123123-11-aea2-338b0155b6cb"
#HEARTBEAT="qualis_heartbeat_prod"
if [ "$(curl $PROMETHEUS 2>/dev/null)" != "Prometheus is Healthy." ]
then
......@@ -18,5 +19,5 @@ if [ "$(curl $ALERTMANAGER 2>/dev/null)" != "OK" ]
fi
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
......@@ -19,4 +19,6 @@ spec:
value: "http://alertmanager:80/-/healthy"
- name: APITOKEN
value: "956b4bb7-5bd6-4512-aea2-338b0155b6cb"
- name: HEARTBEAT
value: "qualis_heartbeat_prod"
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