spm-agent-nodejs
Advanced tools
Comparing version 1.0.24 to 1.0.25
@@ -12,2 +12,4 @@ #!/usr/bin/env node | ||
var fs = require('fs') | ||
var os = require ('os') | ||
var spm_token = '' | ||
@@ -19,6 +21,11 @@ if (process.argv.length === 3) { | ||
spm_token = process.env.SPM_TOKEN | ||
var useLinuxAgent = 'false' | ||
if (os.platform() === 'linux') | ||
{ | ||
useLinuxAgent = 'true' | ||
} | ||
var cfgLines = [ | ||
"# Please don't change this configuration", | ||
'# Directory for buffered metrics', | ||
'useLinuxAgent='+useLinuxAgent, | ||
'dbDir = ./spmdb', | ||
@@ -25,0 +32,0 @@ ' ', |
{ | ||
"name": "spm-agent-nodejs", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"description": "Node.js monitoring agent for SPM by Sematext", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
52234
19
950