The NodeJS Agent plugin allows you to monitor a number of metrics on your NodeJS application. The plugin’s metrics can help your team detect failures like heap total and high resolution time, to see if your application is performant. If you can not find this plugin in the /usr/lib/fm-agent/plugins folder, then your version of the Agent is out of date and you should update it to gain access to this feature.
If you have not already, read the Add FortiMonitor Agent checks article to learn how to set up monitoring for any Agent plugin.
Control Panel Configuration
To use the NodeJS plugin, first select NodeJS from the monitoring catalog.
A drawer will slide out showing the 5 available metrics.
-
Cluster workers
-
High resolution time
-
Resident set size
-
Total heap
-
Used heap
If you would like to inspect the NodeJS plugin in more detail you can find the python script for it in the /usr/lib/fm-agent/plugins folder.
If you have followed the steps above and the new metric and plugin does not show properly, you may need to manually rebuild the agent’s metadata. You can do this by following the guide here.
Note: NodeJS plugin is currently only available for Linux.