Configuring the diagnostics data collector
Support for diagnostics data collection is disabled by default. Use the following procedure to set and adjust the data collection for specific Node.js applications.
Procedure
To modify the data collector settings of
a specific application that is running:
- Navigate to the install_dir/lx8266/nj/bin/plugin/lib directory, where install_dir is the agent installation directory, and open the file plugin_port_conf.json in a text editor.
- Use the following table for information on modifying the data
collector settings:
Table 1. Data collector settings Diagnostic data category Property Action Enable/Disable collection of diagnostics data enabled Set to true to enable, otherwise set to false, the default value is true. Minimum time delta for stack trace reporting minClockStack Set to a value in milliseconds Minimum time delta to report requests minClockTrace Set to a value in milliseconds Maximum number of events per file eventsPerFile Set to a maximum number of events value Maximum amount of time to report to one file fileCommitTime Set to the maximum time in seconds Maximum number of files to keep before the oldest ones are deleted maxFiles Set to the maximum number of files Request sampling period sampling Set to the wanted sampling period. The default value is 10. A value of 10 means that the agent collects one of every 10 requests. - Restart the Node.js server.
Note: If you change the Performance Management offering type on the Performance
Management server, you must repeat this task to enable the new capabilities in the new offering.