title: node.js http server how to get connections count
body: <p>I'm using node as a http server with the following code:</p>
  
  <pre><code>http.createServer(function(req, res) {}).listen(8181);
  </code></pre>
  
  <p>I'm looking for a simple way to monitor a node js http server from within the same process. For me it would be enough to have a own function which just outputs the current resource usage and connection count as json. For now I don't need deep measuring or real time performance monitoring.</p>
  
  <p>What are the key performance indicators for a node http server and is it possible to get them from node? If yes how? 
  What you think of the folling kpi's:</p>
  
  <ol>
  <li>Connection Count</li>
  <li>CPU Usage</li>
  <li>Ram Usage</li>
  </ol>
  
  <p>Just need to know which variables/functions I need to get the data?</p>
  
  <p>Thx I really appreciate your help</p>