secvision
v24.4.8
Published
Performance Profiler and Monitor
Downloads
16
Maintainers
Readme
Introduction
You can monitor your Node.js applications in production with the Secvision Node.js Agent. The Node.js Agent enables real-time visibility of server health, server performance, and resource usage.
Performance issues can result in a slow or unavailable website. The Node.js Agent uses process-level visibility and proactive monitoring to reveal the internal workings of your application and infrastructure with policies, troubleshooting, and performance/capacity optimization. You can use process snapshots to examine your code execution at the multi-process level and identify the root cause of slow performance in minutes.
Before You Begin
To start the Node.js Agent, complete the following:
Obtain an account with a running Controller.
Install the Node.js Agent
All Node.js Agent versions are compatible with major Controller versions 4.4.1.0 and later. For certain features with Controller version dependencies, you will need to upgrade your Controller.
To install the Node.js Agent, insert the following command in the root directory of your instrumented Node.js application:
npm install secvision
If you know you want the latest published agent version, you can use the next
tag:
npm install secvision@next
If you know which specific version of the Node.js agent you want to install, you can specify it:
npm install secvision@<version>
Paste the following in your application as the very first line of your application source code, before any other require statement:
require('secvision').profile({
controllerHostName: '<controller host name>',
controllerPort: <controller port number>,
controllerSslEnabled: false, // Set to true if controllerPort is SSL
accountName: '<account_name>',
accountAccessKey: '<account_key>',
applicationName: 'your_app_name',
tierName: 'choose_a_tier_name',
nodeName: 'choose_a_node_name'
});
--