pm2/examples/axm/keymetrics-test.js
2014-12-03 11:46:12 +01:00

28 lines
1.1 KiB
JavaScript

var pm2 = require('../..');
pm2.connect(function() {
pm2.delete('all', function() {
pm2.start('examples/axm/pm2_probe.js', function() {
pm2.start('examples/axm/pm2_agent_probe.js', function() {
pm2.start('examples/axm/event.js', {force:true}, function() {
pm2.start('examples/axm/http_app.js', {force:true, instances:4},function() {
pm2.start('examples/axm/probes.js',function() {
pm2.start('examples/axm/custom_action.js', {force:true}, function() {
pm2.start('examples/axm/custom_action_with_params.js', {force:true, name : 'custom'} , function() {
pm2.start('examples/axm/http_transaction.js', {name:'trace', force:true}, function() {
pm2.start('examples/axm/throw.js', {name:'auto-throw', execMode : 'cluster_mode', force:true}, function() {
pm2.disconnect(function() { process.exit(1); });
});
});
});
});
});
});
});
});
});
});
});