feat: implement comprehensive health check endpoints for API, Auth, and Realtime services to monitor database, Redis, MinIO, and InfluxDB connectivity.
This commit is contained in:
@@ -97,9 +97,19 @@ async function initDb() {
|
||||
`);
|
||||
}
|
||||
|
||||
async function checkPostgres() {
|
||||
try {
|
||||
await pool.query('SELECT NOW()');
|
||||
return true;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
pool,
|
||||
query,
|
||||
getClient,
|
||||
initDb
|
||||
initDb,
|
||||
checkPostgres
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user