1.1.3 • Published 9 years ago

connio-health v1.1.3

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

connio-health

A light /health route for the Express framework as connect middleware.

Useful for monitoring when application is ready to serve traffic by adding /health endpoint.

It delivers a following JSON payload:

{
  "app": "connio.app",
  "version": "1.0.0",
  "memory": {
    "rss": 95416320,
    "heapTotal": 64826112,
    "heapUsed": 42684560
  }
}
  • name - app name from package.json
  • version - app version from package.json
  • memory
    • rss - resident set size in bytes
    • heapTotal - heap total in bytes
    • heapUsed - used heap in bytes

Getting Started

$ npm install --save connio-health

In your configuration file:

var health = require('connio-health')
...
app.use(health())

By default it uses path of main file in package.json as root path.

You can also configure app root path manually:

app.use(health(__dirname + '/server'))
1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago