Improve gatus/monitoring a bit
This commit is contained in:
parent
c28a195f49
commit
0a604b77ba
2 changed files with 11 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue