Skip to content

Commit

Permalink
Update Node.js monitoring template
Browse files Browse the repository at this point in the history
  • Loading branch information
devmirek committed Mar 24, 2021
1 parent 8972a1d commit 13f20ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions node_js/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function writeProcessUsage() {
// https://nodejs.org/api/process.html#process_process_cpuusage_previousvalue
writeAPI.writePoint(createPoint('node_cpu_usage', process.cpuUsage()))
// https://nodejs.org/api/process.html#process_process_resourceusage

// available since node v12.6
if (process.resourceUsage) {
writeAPI.writePoint(
Expand Down

0 comments on commit 13f20ae

Please sign in to comment.