The Atatus Node.js agent helps you in troubleshooting your Node.js application problems and also identifies performance issues before it becomes apparent to your users. It also captures unhandled exceptions and HTTP failures in production to determine which part of your Node.js application is slower or producing lots of errors.

Create a free account to start monitoring your Node.js apps.

Installation & Setup

If you want to include Atatus script with your source, you need to integrate from package managers.

  • Install Atatus Node.js package.

    copy
    icon/buttons/copy
    npm install --save atatus-node
    
  • Require Atatus in your Node.js app and invoke start with your API key.

    copy
    icon/buttons/copy
    // It must be placed above all other 'require' statements
    var atatus = require("atatus-node");
    
  • Start the Atatus agent with your API key:

    copy
    icon/buttons/copy
    atatus.start({ apiKey: "YOUR_API_KEY" });
    
    copy
    icon/buttons/copy
    // For Example:
    var atatus = require("atatus-node");
    atatus.start({ apiKey: "52b0973130c34aaca6726d02b19f7f56" });
    

    For more advanced options on installing your monitoring code, view customizing agent.

  • Stop and Start your Node server.

    Just restart your server and access it from your web app or mobile app or curl. You will visualize your application's metrics within minutes.

For Node.js Cluster:

If you use Node.js cluster module, you must add the above code in the server node (server.js), not in the cluster node (cluster.js). See the example here.

For Koa.js Framework:

If you are using koa.js framework, you must use the koa-atatus integration.