24.12.0 • Published 4 months ago

secvision v24.12.0

Weekly downloads
-
License
SEE LICENSE IN ht...
Repository
github
Last release
4 months ago

Overview

The Node.js Agent monitor Nodejs application in production with real-time visibility of server health, server performance, and resource usage.

Install

Insert the following in the root directory of Node.js application:

npm install secvision

Or can use the next tag to get latest version:

npm install secvision@next

Or get specific version of the Node.js agent:

npm install secvision@<version>

Paste the following in application as the very first line of application source code:

require('secvision').profile({
  controllerHostName: '<controller host name>',
  controllerPort: <controller port number>,
  controllerSslEnabled: false,  // Set to true if controllerPort is SSL
  accountName: '<Secvision_account_name>',
  accountAccessKey: '<Secvision_account_key>',
  applicationName: 'your_app_name',
  tierName: 'choose_a_tier_name',
  nodeName: 'choose_a_node_name'
 });

Or create a shim.js file include above code:

require('secvision').profile({
controllerHostName: '<controller host name>',
controllerPort: <controller port number>,
controllerSslEnabled: false,  // Set to true if controllerPort is SSL
accountName: '<Secvision_account_name>',
accountAccessKey: '<Secvision_account_key>',
applicationName: 'your_app_name',
tierName: 'choose_a_tier_name',
nodeName: 'choose_a_node_name'
});

then set NODE_OPTIONS before starting nodejs application.

export NODE_OPTIONS="--require /opt/secvision/shim.js"

--