@firstandthird/hapi-healthcheck
Server monitoring
Last updated 2 years ago by dawnerd .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @firstandthird/hapi-healthcheck 
SYNC missed versions from official npm registry.

hapi-healthcheck

server monitoring

Options:

  • token - Optional token to secure the endpoint.
  • endpoint - Route to use. Defaults to /health
  • checks - array objects for each check.
    • name - Name of the check, used as the key in the response json.
    • method - server method to call. Will be called as async method(request, options). Function should return json.
    • options - optional data to pass to the method.

Example output:

{
  "host": "sorrynotsorry.local",
  "env": "test",
  "uptime": 0,
  "cpu": { "user": 384085, "system": 48978 },
  "memory": {
    "rss": 47497216,
    "heapTotal": 32874496,
    "heapUsed": 18066608,
    "external": 518509
  },
  "customCheck": { "test": 1 }
}

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (3)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |