mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Use healthcheck endpoint to monitor OsteoView
This commit is contained in:
parent
832b9cb918
commit
9f0e71f8a0
2 changed files with 14 additions and 2 deletions
|
|
@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue