Pm2: Disable default probes in ProcessContainer.

Created on 1 Jul 2015  路  2Comments  路  Source: Unitech/pm2

I notice that custom probes are not available on keymetrics.io and CliUx in cluster mode. I add loging to https://github.com/Unitech/PM2/blob/master/lib/God/ClusterMode.js#L61 and get logs like:

PM2 { type: 'axm:monitor',
  data: 
   { 'Loop delay': { value: '44.61ms', agg_type: 'avg' },
     'Active connections': { value: 0, agg_type: 'avg' },
     'Registered': { value: 0, agg_type: 'avg' },
     'Default queue length': { value: 0, agg_type: 'avg' },
     'Failed jobs': { value: 0, agg_type: 'avg' },
     HTTP: { value: '0req/s', agg_type: 'avg' },
     'pmx:http:latency': { value: '0ms', agg_type: 'avg' } } }
PM2 { type: 'axm:monitor',
  data: 
   { 'Loop delay': { value: '48.08ms', agg_type: 'avg' },
     HTTP: { value: '0req/s', agg_type: 'avg' },
     'pmx:http:latency': { value: '0ms', agg_type: 'avg' } } }

It seems that default cover custom probes on every tick. If disable pmx.init here everything work fine.
Reproduced on Debian GNU/Linux 8 (jessie), 2 servers, pm2 v0.14.2. On Ubuntu 15.04 all data available, logs still get entries of default probes, but in reverse order:

PM2 { type: 'axm:monitor',
  data: 
   { 'Loop delay': { value: '48.08ms', agg_type: 'avg' },
     HTTP: { value: '0req/s', agg_type: 'avg' },
     'pmx:http:latency': { value: '0ms', agg_type: 'avg' } } }
PM2 { type: 'axm:monitor',
  data: 
   { 'Loop delay': { value: '44.61ms', agg_type: 'avg' },
     'Active connections': { value: 0, agg_type: 'avg' },
     'Registered': { value: 0, agg_type: 'avg' },
     'Default queue length': { value: 0, agg_type: 'avg' },
     'Failed jobs': { value: 0, agg_type: 'avg' },
     HTTP: { value: '0req/s', agg_type: 'avg' },
     'pmx:http:latency': { value: '0ms', agg_type: 'avg' } } }

How can I disable ProcessContainer pmx.init?

Feature

Most helpful comment

All 2 comments

duplicate #1181

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FujiHaruka picture FujiHaruka  路  3Comments

shaunwarman picture shaunwarman  路  3Comments

mario-mui picture mario-mui  路  3Comments

ldarren picture ldarren  路  3Comments

chaos-git picture chaos-git  路  3Comments