Skip to content

Returns health information about a running express server.

License

Notifications You must be signed in to change notification settings

molindo/express-route-health

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-route-health

A route that can be mounted onto an express server that will return health information like:

{
  "isHealthy": true,
  "memory": {
    "external": 9307,
    "heapTotal": 6291456,
    "heapUsed": 4691568,
    "rss": 25350144
  },
  "uptime": 123.45
}

Failed health checks return with the status code 503.

Usage

import handleHealth from 'express-route-health';

const server = express();
server.get('/health', handleHealth);

About

Returns health information about a running express server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published