Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 939 Bytes
layout title description permalink
docs
Install PMX
Installing PMX for advanced interactions
/docs/usage/install-pmx/

PMX

In order to use Keymetrics in a more advanced way, you will need to install PMX. You just need to add it as a dependency to your project:

$ npm install pmx --save

Then to get the PMX library in your code, just require it at the very beginning of your code:

var pmx = require('pmx').init({
  http          : true, // HTTP routes logging (default: true)
  ignore_routes : [/socket\.io/, /notFound/], // Ignore http routes with this pattern (Default: [])
  errors        : true, // Exceptions logging (default: true)
  custom_probes : true, // Auto expose JS Loop Latency and HTTP req/s as custom metrics
  network       : true, // Network monitoring at the application level
  ports         : true  // Shows which ports your app is listening on (default: false)
});