Skip to content

Instantly share code, notes, and snippets.

@twolfson twolfson/health.js
Created Sep 27, 2012

What would you like to do?
Health for your server
// Health page (attribution to dshaw)
var pkg = require('./package.json');
version = pkg.version;
app.get('/health', function (req, res) {
var health = {
'version': pkg.version,
'memory': process.memoryUsage(),
'uptime': process.uptime()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.