consthealthcheck=require('health-middleware');// If you need/want to add custom health checker functions:healthcheck.addCheck('cassandra','timeout',async()=>{// Faking data here, for brevityreturn{status : 'pass',metricValue: 250,metricUnit: "ms"};});// Add middleware to your Express app:app.use(healthcheck());