spm-agent-os
Advanced tools
Comparing version 1.30.12 to 1.30.13
@@ -124,3 +124,6 @@ /* | ||
if (netStat.bytes && netStat.Interface) { | ||
agent.addMetrics({ ts: time, name: 'osnet', filters: [netStat.Interface || 'unknown'], | ||
agent.addMetrics({ | ||
ts: time, | ||
name: 'osnet', | ||
filters: [netStat.Interface || 'unknown'], | ||
value: [calcDiff(netStat.Interface + 'tx', Number(netStat.bytes.Transmit)), | ||
@@ -142,10 +145,12 @@ calcDiff(netStat.Interface + 'rx', Number(netStat.bytes.Receive))], | ||
var dev = disk.filesystem | ||
// if (/\/dev\/.+/i.test(disk.filesystem)) { | ||
// dev = disk.filesystem.split('/')[2] | ||
// } | ||
agent.addMetrics({ ts: time, name: 'osdf', filters: [dev], | ||
value: [disk.available * 1024, disk.used * 1024], | ||
sct: 'OS' | ||
}) | ||
if (/\/dev\/.+/i.test(disk.filesystem)) { | ||
dev = disk.filesystem.split('/')[2] | ||
} | ||
agent.addMetrics({ | ||
ts: time, | ||
name: 'osdf', | ||
filters: [dev], | ||
value: [disk.available * 1024, disk.used * 1024], | ||
sct: 'OS' | ||
}) | ||
}) | ||
@@ -152,0 +157,0 @@ } |
{ | ||
"name": "spm-agent-os", | ||
"version": "1.30.12", | ||
"version": "1.30.13", | ||
"description": "SPM Agent for monitoring operating system metrics", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35440
623