ildkule/gatus: add healthcheck for postgresql

This commit is contained in:
h7x4
2026-07-21 16:14:45 +09:00
parent 9a837d210d
commit a99a83c0d8
2 changed files with 86 additions and 0 deletions
@@ -5,6 +5,7 @@ in
{
imports = [
./minecraft-checker.nix
./postgres-checker.nix
];
services.gatus = {
@@ -133,6 +134,12 @@ in
"[BODY].ok == true"
];
})
(mkService "PostgreSQL" "http://localhost:1338" // {
conditions = [
"[STATUS] == 200"
"[BODY].ok == true"
];
})
(mkService "Email (SMTP)" "starttls://mail.pvv.ntnu.no:587")
(mkService "Email (POP3)" "tls://mail.pvv.ntnu.no:995")
(mkService "Email (IMAP)" "tls://mail.pvv.ntnu.no:993")