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:
To integrate the Site24x7 APM Insight Next.js agent into your Kubernetes application using initContainers with the prebuilt agent image, follow the steps below: Prerequisites A Next.js application container image The Site24x7 APM Insight license key ...
When you include Site24x7 RUM beacon script in your web pages, the following data is collected. All data that's being collected is in accordance with GDPR compliance. Performance details of web page load time - Metrics like response time of web page ...
To monitor your Oracle Database hosted in a Docker container, follow these steps: Log in to Site24x7 and install the Site24x7 Linux monitoring agent. Execute the following command in your terminal and enter your Oracle Database instance's username ...
The NGINX plugin uses the NGINX status page to pull the performance metrics of the NGINX server. You may encounter the following errors while installing the NGINX plugin integration: Error_code : HTTP Error 404: This error usually indicates that the ...
If you're encountering the pymysql module not found error, it likely means that the pymysql Python library is not installed on the server. pymysql is a Python package that provides a way to interact with MySQL databases using Python code and is used ...