If you do not need to monitor your Node.js environment or if you want to upgrade the
stand-alone Node.js data collector, you must first
unconfigure previous settings for the stand-alone Node.js data collector.
Procedure
-
Remove the
require('ibmapm');
line from the application main file.
Tip: If you start your application by running the node app.js
command, app.js is the main file of your application.
-
Remove
“ibmapm": "./ibmapm"
from the dependencies section in the
package.json file of your Node.js application.
-
Delete the node_modules folder from the home directory of your
application.
-
Run the
npm install
command to install application dependencies.
Results
You have successfully unconfigured the stand-alone Node.js data collector.
What to do next
After you unconfigure the data collector, the
Cloud APM console continues to display the data
collector in any applications that you added the data collector to. The Cloud APM console will show that no data is available for the
application and will not indicate that the data collector is offline. For information about how to
remove the data collector from applications and from resource groups, see Removing data collectors from Cloud APM console.