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:
Giuseppe Raffa
2026-04-04 12:10:00 +02:00
parent ba6941fd2a
commit b31a04b1a7
10 changed files with 106 additions and 8 deletions

View File

@@ -123,6 +123,15 @@ async function getFileStream(bucket, objectName) {
return dataStream;
}
async function checkMinio() {
try {
await client.listBuckets();
return true;
} catch (error) {
return false;
}
}
module.exports = {
bucketExists,
getBuckets,
@@ -132,5 +141,6 @@ module.exports = {
removeObject,
upload,
download,
getFileStream
getFileStream,
checkMinio
}