- 1 Minute to read
- Print
- DarkLight
- PDF
Node.js APM with AWS Elastic Beanstalk
- 1 Minute to read
- Print
- DarkLight
- PDF
Instructions on how to install the Retrace Linux Agent and Node.js APM on AWS Elastic Beanstalk.
Add Profiler to Application
- Add stackify-node-apm module.
$ npm install stackify-node-apm --save
Copy
node_modules/stackify-node-apm/stackify.js
into your application's root directory.Modify
[application]/stackify.js
configuration to include your own Application Name and Environment Name.Add
require('stackify-node-apm')
at the top of application's main module.
Installing Stackify Linux Agent
- Create a new file named stackify.config in your application’s .ebextensions folder. Learn More about .ebextensions.
- 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
- Deploy your app to Elastic Beanstalk