Skip to content

Instantly share code, notes, and snippets.

@tlhunter
Created October 24, 2012 18:32
Show Gist options
  • Save tlhunter/3947931 to your computer and use it in GitHub Desktop.
Save tlhunter/3947931 to your computer and use it in GitHub Desktop.
/HEALTH
app.get('/health', function(req, res){
res.send({
pid: process.pid,
memory: process.memoryUsage(),
uptime: process.uptime(),
connections: server.connections
});
});
@tlhunter
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment