Prerequisites
To monitor Node.js Applications, You need to configure both Node.js and Single agent. Ensure that both are running on the same machine:
- Single Agent
- Node.js Agent
Monitoring
1. Login into the Applicare console, go to the Download Agents screen, and download the appropriate agents: SingleAgentWindows for Windows Then, transfer the download file to the machine where the agent will be deployed.
2. Extract the contents of the downloaded file.
3a. Execute the deploynodejsagent.bat in Administrator mode inside the ApplicareSingleAgentWindows.zip extracted directory. After executing, the message "Enter any open port for Applicare Agent" will appear in the command window and enter any open port in it.
3b. Enter the Node.js home path where the application is running.
3c. Once the agent is successfully installed, You will see a message similar to the one shown below.
4. Navigate to the Node.js application home directory and insert the following code at the beginning of the main file (usually called server.js or app.js).
var applicareConfig = require('./agent.config.js');
var applicare = require('applicare-agent')(applicareConfig);
5. Restart the Node.js server.
6. Go to the SingleAgent home directory and execute the command based on the OS.
7.Open a command window in administrator mode, go to the Agent_home/agentscripts directory and execute the file below.
createNodejsAgentTask.bat
Comments
0 comments
Please sign in to leave a comment.