Documentation Index

Fetch the complete documentation index at: https://docs.stackify.com/llms.txt

Use this file to discover all available pages before exploring further.

Node.js APM with AWS Elastic Beanstalk

Prev Next

Instructions on how to install the Retrace Linux Agent and Node.js APM on AWS Elastic Beanstalk.

Add Profiler to Application

  1. Add stackify-node-apm module.
$ npm install stackify-node-apm --save
  1. Copy node_modules/stackify-node-apm/stackify.js into your application's root directory.

  2. Modify [application]/stackify.js configuration to include your own Application Name and Environment Name.

  3. Add require('stackify-node-apm') at the top of application's main module.

Installing Stackify Linux Agent

  1. Create a new file named stackify.config in your application’s .ebextensions folder. Learn More about .ebextensions.
  2. Add the following to your stackify.config file: Replace [INSERT ACTIVATION KEY] with your activation key value. Optionally you can include the device name by replacing the [aliasname] with the desired device alias. You can find your activation key under Settings: Account.
sources:
  /home/ec2-user: https://s1.stackify.com/Account/AgentDownload/Linux
    
commands:
  01:
    command: sudo ./agent-install.sh --key [INSERT ACTIVATION KEY] --environment "Production" --devicealias [aliasname]
    cwd: /home/ec2-user/stackify-agent-install-32bit
  1. Deploy your app to Elastic Beanstalk