Improve gatus/monitoring a bit

This commit is contained in:
Tobias Reisinger 2024-10-08 17:46:14 +02:00
parent c28a195f49
commit 0a604b77ba
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 11 additions and 1 deletions

View file

@ -47,6 +47,7 @@ class FilterModule(object):
default_conditions = [
"[STATUS] == any(200, 204)",
"[CERTIFICATE_EXPIRATION] > 48h"
]
for service in services:
@ -79,6 +80,9 @@ class FilterModule(object):
"url": url,
"conditions": conditions,
"alerts": self.default_alerts,
"ui": {
"hide-url": True
}
}
result.append(new_endpoint)

View file

@ -314,7 +314,13 @@ services = {
name = "postgresql"
type = "hook"
}]
# TODO add monitoring
monitoring = {
url = "tcp://db.serguzim.me:5432"
group = "7-support"
conditions = [
"[CONNECTED] == true"
]
}
auth = false
database = false
s3 = false