To monitor Meteor server errors, you need to create Node.js APM Project in Atatus. Then you need to copy and paste the following code in /server/main.js
. This should be above all other import statements.
copy
// /server/main.js
atatus = require('atatus-nodejs');
atatus.start({
licenseKey: "YOUR_LICENSE_KEY",
appName: "YOUR_APP_NAME"
});
var consoleLogOrig = console.log;
console.log = function (arguments) {
// special case for meteor dev mode
if(arguments === 'LISTENING') {
return consoleLogOrig.call(console, 'LISTENING');
}
atatus.notifyError(arguments);
consoleLogOrig.call(console, arguments);
};
Since Meteor uses sockets for communication, Atatus APM will not collect the performance metrics from the Meteor server. But you can track all your errors in the Atatus.