Install APM Insight Node.js agent (versions 2.x and 3.x)
How to install the APM Insight Node.js agent (versions 2.x and 3.x)?
We highly recommend you download the latest version of the APM Insight Node.js agent. However, if you need to download agent versions v2.x or v3.x for some reason, kindly refer to the below given steps.
1. Open your Node.js application.
2. Access the node packet manager (NPM).
3. Use the command npm i apminsight --save to install an APM Insight Node.js agent from NPM. This will create an APM Insight directory under node_modules.
4. Create a new file named apminsightnode.json and place it in the directory where you run the application. Add the below code snippet in the file.
If you are using Common JS, follow the below instruction: Include the following code in the first line of your Node.js application start file before any other require statements. require('apminsight')()
If you are using ES, follow the below instruction: Include the following code in the first line of your Node.js application start file before any other require statements. import apminsight from 'apminsight'; apminsight.config()
If you are using a typescript application, follow the below steps:
i. Create a file named apminsight.d.ts in the same directory as your application start file.
ii. Add the below line to the apminsight.d.ts file.
declare module "apminsight";
iii. Add the below lines to the first line of your application start file.
import * as apminsight from 'apminsight'; apminsight.config()
6. Copy and paste the license key in the apminsightnode.json file.
7. Restart your application and make few transactions to view data in APM Insight client.
If you are unable to add application port in the apminsightnode.json file, you can add it in your application start file as mentioned below. However other parameters like license key and app name should be added only in apminsightnode.json file. To add application port in application start file:
Obtain the new device key. Update the licenseKey value in the apminsighnode.json file located at the <application root directory>. Log in to the server and delete the existing instance information file apminsight.json located at <application root ...
In general, after installing the APM Insight Java agent, you have to restart your application for the agent to capture monitoring data. But in case of critical issues in the app, like sudden application slowness, where you haven't installed APM ...
Folder path to view One agent logs One agent logs can be found only in the common application folder in Windows (usually under C:\ProgramData from Vista onwards). Check the following folder path in Windows: C:\ProgramData\Site24x7APMOneAgent\Logs ...
Follow these steps to seamlessly migrate your Data Center: Obtain the new device key. Reinstall PHP Agent and S247DataExporter service with the newly obtained device key. Restart your web server and FastCGI Process Manager (FPM). Related Articles DC ...
Obtain the new device key. Update the license.key value in the apminsight.conf file located at <apminsight-javaagent.zip Extracted Directory>/. Log in to the server and delete the existing instance information file apminsight.info located at ...