@germainapm/nodejs-monitoring
v2022.3.2
Published
Germain APM Node.js Monitoring
Downloads
20
Readme
Germain APM NodeJS Monitoring
This library is a plugin for Node.js applications to send monitoring information to Germain APM.
The main features of the Germain APM Node.js monitoring are:
- Error and Exception monitoring
- Warning monitoring
- Exit monitoring
- HTTP monitoring
- Express monitoring
- Event loop latency monitoring
- Startup duration monitoring
- Transaction monitoring
- Process resources monitoring
- OS resources monitoring
- Disk monitoring
- Multiple promise resolve/rejection monitoring
Installation
with npm
npm i @germainapm/nodejs-monitoring
with yarn
yarn add @germainapm/nodejs-monitoring
Initialization
Initialize Germain APM monitoring in your main application javascript file (e.g. server.js). In the simplest integration only the beacon URL (where the monitoring data will be sent - contact the germain Team if you don't know it) must be provided and the rest will be autoconfigured.
Integration example using RequireJS:
const GermainAPM = require('@germainapm/nodejs-monitoring');
const config = GermainAPM.getDefaultConfiguration('http://GERMAIN_APM_SERVER/');
const apm = new GermainAPM(config);
apm.start();
Integration example using ES6:
import GermainAPM from '@germainapm/nodejs-monitoring';
const config = GermainAPM.getDefaultConfiguration('http://GERMAIN_APM_SERVER/');
const apm = new GermainAPM(config);
apm.start();
Configuration
All configuration options can be found here.
Other
- Documentation: https://docs.germainapm.com/main/node-js-monitoring
- Website: https://germainapm.com/
- License: https://cloud.germainapm.com/agreement.jsp