To use appmetrics-dash in an application hosted on Bluemix requires 3 easy steps.

Rather than have appmetrics-dash start its own http server (which is the default), we can make it use the server that will typically have been started by your application.

  1. npm install -S appmetrics-dash
  2. In your Node.js application, add:
    var appm = require('appmetrics');
    require('appmetrics-dash').attach({appmetrics:appm});
  3. Then, once you have deployed your application to Bluemix, point your web browser at:
    yourbluemixurl/appmetrics-dash

This can also be applied to any application that already has a webserver and you want to have appmetrics-dash use that for its hosting.

Join The Discussion

Your email address will not be published. Required fields are marked *