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 = [
|
default_conditions = [
|
||||||
"[STATUS] == any(200, 204)",
|
"[STATUS] == any(200, 204)",
|
||||||
|
"[CERTIFICATE_EXPIRATION] > 48h"
|
||||||
]
|
]
|
||||||
|
|
||||||
for service in services:
|
for service in services:
|
||||||
|
@ -79,6 +80,9 @@ class FilterModule(object):
|
||||||
"url": url,
|
"url": url,
|
||||||
"conditions": conditions,
|
"conditions": conditions,
|
||||||
"alerts": self.default_alerts,
|
"alerts": self.default_alerts,
|
||||||
|
"ui": {
|
||||||
|
"hide-url": True
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
result.append(new_endpoint)
|
result.append(new_endpoint)
|
||||||
|
|
|
@ -314,7 +314,13 @@ services = {
|
||||||
name = "postgresql"
|
name = "postgresql"
|
||||||
type = "hook"
|
type = "hook"
|
||||||
}]
|
}]
|
||||||
# TODO add monitoring
|
monitoring = {
|
||||||
|
url = "tcp://db.serguzim.me:5432"
|
||||||
|
group = "7-support"
|
||||||
|
conditions = [
|
||||||
|
"[CONNECTED] == true"
|
||||||
|
]
|
||||||
|
}
|
||||||
auth = false
|
auth = false
|
||||||
database = false
|
database = false
|
||||||
s3 = false
|
s3 = false
|
||||||
|
|
Loading…
Reference in a new issue