secvision
Version:
Performance Profiler and Monitor
66 lines (53 loc) • 1.54 kB
Markdown
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:
```sh
npm install secvision
```
Or can use the `next` tag to get latest version:
```sh
npm install secvision@next
```
Or get specific version of the Node.js agent:
```sh
npm install secvision@<version>
```
Paste the following in application as the very first line of application source code:
```sh
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:
```sh
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.
```sh
export NODE_OPTIONS="--require /opt/secvision/shim.js"
```
<br />
<br />
--
<br />
<br />
<br />