StackBeam
skip the Usage and Installation steps!
For API only usageFEATURES
- Monitor incoming HTTP requests
- Diagnose errors happening in your application's code
- View queries being executed on your MongoDB database
- Keep an eye on your server's CPU, Memory and Storage usage
- Get notified in case of emergency (High error rates, high latency...)
- Track realtime log entries (Coming soon)
Website
DASHBOARD
Usage
// Token acquired from the dashboard projects pageconst TOKEN = '0ABCDEF12345678901234567890123456789012345678901234567890ABCDEF0'; // Ability to turn on/off specific features (All on by default)const options = alarm: true events: true benchmarks: true crashReporting: true ; // Installing and Initializing the moduleconst StackBeam = ; // Before including any routeapp; // Require mongoDB and pass it as an argument app; // Normal Express routes...app
Installation
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js.
Installation is done using the
npm install
command:
$ npm install stackbeam --save
API Usage
(for non-nodejs projects)
## !!Replace <token> with the token from the dashboard
## Endpoints Request
curl -X POST \
-d '{"endpoint": "/users/:id", "method": "GET", "startAt": "1544268184321", "end": "1544268181234", "ip": "181.215.95.235", "resStatusCode": "200", "resStatusMessage": "Success"}' \
-H 'Token: <token>' \
-H 'Content-Type: application/json' \
'https://api.stackbeam.io/library/metrics'
## Exceptions Request
curl -X POST \
-d '{"errMsg":"TypeError", "errName":"cannot read property 'length' of undefined", "filename": "app.js", "colno":"13", "lineno":"80", "pre_context":"let x = [1,2,3]", "context_line":"console.log(y.length)", "post_context":"console.log(`DONE ${x}`)", "function":"getLength"}' \
-H 'Token: <token>' \
-H 'Content-Type: application/json' \
'https://api.stackbeam.io/library/exceptions'
Security Issues
If you discover a security vulnerability in Stackbeam, please see Security Policies and Procedures.
People
The original authors of StackBeam are Pierre Raii and Surge