From 13f20ae2f078a214091565382def5ecb055852fd Mon Sep 17 00:00:00 2001 From: "mirek.malecha@bonitoo.io" Date: Fri, 5 Feb 2021 09:41:21 +0100 Subject: [PATCH] Update Node.js monitoring template --- node_js/monitor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/node_js/monitor.js b/node_js/monitor.js index f908e55..2e32625 100644 --- a/node_js/monitor.js +++ b/node_js/monitor.js @@ -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(