hapi-routes-status

Exposes a /status endpoint

(C) 2014 Martin Wawrusch

NOTE: For hapi < 8 use version 1.0.x

Exposes a /status route which returns a json object similar to this:

{
  running: true,
  uptime: 12,
  memoryUsage: {
    rss: 57384960,
    heapTotal: 56160000,
    heapUsed: 19359568
  },
  versions: {
    http_parser: "1.0",
    node: "0.10.22",
    v8: "3.14.5.9",
    ares: "1.9.0-DEV",
    uv: "0.10.19",
    zlib: "1.2.3",
    modules: "11",
    openssl: "1.0.1e"
  },
  droneId: 41309
}

and additionally

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
  • Fork the project
  • Start a feature/bugfix branch
  • Commit and push until you are happy with your contribution
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • Please try not to mess with the package.json, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright (c) 2014 Martin Wawrusch