@sematext/logagent-nodejs-monitor
v2.0.10
Published
Monitoring plugin for logagent
Downloads
8
Readme
Monitoring for @sematext/logagent
This plugin provides monitoring for the @sematext/logagent process with SPM for Node.js.
Installation
Make sure @sematext/logagent (> v2.0) is installed.
npm i -g @sematext/logagent
npm i -g @sematext/logagent-nodejs-monitor
Then add following lines to your logagent 2.x config file:
input:
logagentMonitor:
module: @sematext/logagent-nodejs-monitor
INFRA_TOKEN: YOUR_SEMATEXT_INFRA_MONITORING_TOKEN
MONITORING_TOKEN: YOUR_NODEJS_APP_TOKEN
SPM_LOG_TO_CONSOLE: false
SPM_LOG_LEVEL: error
Restart logagent-js service.