mirror of https://github.com/samply/bridgehead.git
Migrate monitoring to self-hosted instance
This commit is contained in:
parent
e94b5961f3
commit
d12f9c44dc
|
@ -14,15 +14,16 @@ UPTIME=
|
||||||
USER_AGENT=
|
USER_AGENT=
|
||||||
|
|
||||||
function hc_send(){
|
function hc_send(){
|
||||||
|
BASEURL="https://healthchecks.verbis.dkfz.de/ping"
|
||||||
if [ -n "$MONITOR_APIKEY" ]; then
|
if [ -n "$MONITOR_APIKEY" ]; then
|
||||||
hc_set_uuid $MONITOR_APIKEY
|
hc_set_uuid $MONITOR_APIKEY
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$HCSERVICE" ]; then
|
if [ -n "$HCSERVICE" ]; then
|
||||||
HCURL="https://hc-ping.com/$PING_KEY/$HCSERVICE"
|
HCURL="$BASEURL/$PING_KEY/$HCSERVICE"
|
||||||
fi
|
fi
|
||||||
if [ -n "$HCUUID" ]; then
|
if [ -n "$HCUUID" ]; then
|
||||||
HCURL="https://hc-ping.com/$HCUUID"
|
HCURL="$BASEURL/$HCUUID"
|
||||||
fi
|
fi
|
||||||
if [ ! -n "$HCURL" ]; then
|
if [ ! -n "$HCURL" ]; then
|
||||||
log WARN "Did not report Healthcheck: Neither Healthcheck UUID nor service set. Please define MONITOR_APIKEY in /etc/bridgehead."
|
log WARN "Did not report Healthcheck: Neither Healthcheck UUID nor service set. Please define MONITOR_APIKEY in /etc/bridgehead."
|
||||||
|
|
Loading…
Reference in New Issue