Note

  • Ensure that you are using Node.js version 14.x-18.x.
  • Ensure that you restart the agent after installation.


The following is an example of an AnsibleĀ® role to install Node.js Agent on Linux:

---
- hosts: linux
  tasks:
    - include_role:
        name: appdynamics.agents.node
      vars:
        agent_version: latest # [latest or provide the specific agent version]
        agent_type: node
        agent_action: upgrade # can be upgrade/install/rollback, default upgrade when unspecified
        controller_account_access_key: "123key" # Please add this to your Vault
        controller_host_name: "fieldlab.saas.appdynamics.com" # Your Cisco AppDynamics controller
        controller_account_name: "customer1" # Please add this to your Vault
        enable_ssl: "false"
        controller_port: "8090"
YML

Ensure that you restart the agent after installation using the following command:

node -r appd-config.js app.js 
CODE


Node.js Agent Variables

VariableDescriptionDefaultPossible ValuesRequired
agent_versionNode.js agent version to be installed.latestlatest, [agent version in x.x.x.x format]No
node_agent_enableGraphQLUse this if your application uses graphql.falsetrue, falseNo
node_agent_debug_loggingTo run the application with debug logging enabled.falsetrue, falseNo
npm_registryTo run the application in debug mode.https://registry.npmjs.org
No


AnsibleĀ® is a registered trademark of Red Hat, Inc. in the United States and other countries.