You can place the require statement as the first line in the require statement of another module that appears as the first line of code. To install the latest agent, run the following command:įor reference information on the settings, along with other settings you can use, see Node.js Settings Reference. Refer to Agent and Controller Compatibility to determine which versions of the Node.js Agent are compatible with your Controller. If you are using Node.js 0.8.1 through 0.8.18, see Set User Agent for Node.js 0.8.1 through 0.8.18 before running the install command. To install the agent, run the install command in the directory of your application and add a require command to add the agent module to your application. If you do, the Node.js Agent may fail to register. If you install the Machine Agent on the machine hosting the instrumented Node.js node, do not specify the application, tier, or node name in the machine agent's controller-info.xml file.Install the Node.js Agent before you install the Machine Agent.If you install the Machine Agent on the machine hosting the instrumented Node.js node and you specify the tier and node name in the controller-info.xml file of the Machine Agent, the Node.js Agent will fail to register. Use the Node.js Agent with the Machine Agent If you are instrumenting a Node.js application that uses the PM2 process manager, set the node suffix name to _id. If you are instrumenting worker processes on different machines, keep in mind that each application and node name combination must be unique. Therefore, be sure to specify different node name prefixes for each server, for example, by configuring nodeName=Server1 for the first server and nodeName=Server2 for the second server. For example, given the following setting: By default, the agent uses the value configured for nodeName as a prefix and adds a dash and number as a suffix. You configure the identify of a Node.js application instance using the node name setting. It populates the statement with the connection settings for the Controller and the values you provide for the wizard to model the Node.js application in AppDynamics.įor installation on Windows, see Supported Environment for your version of Windows and install the Visual C++ Redistributable for Visual Studio 2015. The Getting Started Wizard in the Controller generates the require statement for you. In addition to running the AppDynamics Controller, you need to have write access to the application source code and the ability to restart the Node.js application, which installs the agent. You must add a require statement to the source code of your Node.js application to install the Node.js Agent. The wizard constructs a pre-configured require statement for the agent based on your input. The Getting Started Wizard in the Controller provides the easiest way to get started with the AppDynamics Node.js Agent. This page provides instructions on how to install the Node.js Agent.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |