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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user