Use healthcheck endpoint to monitor OsteoView

This commit is contained in:
Paul-Henri Froidmont 2022-10-30 01:53:58 +02:00
parent 832b9cb918
commit 9f0e71f8a0
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 14 additions and 2 deletions

View file

@ -59,7 +59,13 @@
then alert then alert
check host osteoview with address osteoview.app check host osteoview with address osteoview.app
if failed port 443 protocol https with timeout 5 seconds then alert if failed
port 443
protocol https
status = 200
request "/api/_health"
with timeout 5 seconds
then alert
''; '';
}; };

View file

@ -61,7 +61,13 @@
if status != 0 then alert if status != 0 then alert
check host osteoview with address osteoview.app check host osteoview with address osteoview.app
if failed port 443 protocol https with timeout 5 seconds then alert if failed
port 443
protocol https
status = 200
request "/api/_health"
with timeout 5 seconds
then alert
''; '';
}; };