To uninstall the APM Insight Node.js agent, follow the steps given below:
Enter the below command:
$ npm uninstall apminsightRun the following command to confirm that APM Insight has been removed:
$ npm list | grep apminsightRemove the respective import or require statement from your Node.js application start file.
| JavaScript | Code snippet |
|---|---|
| Common JS | require('apminsight'); |
| ECMAScript | import apminsight from 'apminsight'; |
| TypeScript | import AgentAPI from apminsight'; AgentAPI.config(); |
If the agent was configured using NODE_OPTIONS, remove the below configuration from the package.json file:
NODE_OPTIONS="-r apminsight"Or, delete the command shown below, which you added during the APM Node.js agent installation:
node -r apminsight my-start-file.jsThank you for your feedback!
It allows us to track crucial metrics such as response times, resource utilization, error rates, and transaction performance. The real-time monitoring alerts promptly notify us of any issues or anomalies, enabling us to take immediate action.
Reviewer Role: Research and Development