This library aims to help provision applications into our monitoring ecosystem.
Add an entry for the apm-monitor
under dependencies
and run npm install
.
{
...
"dependencies": {
...
"apm-monitor": "gedigital-apm/apm-monitor"
}
}
Import the apm-monitor
library at the top of your entry-point file.
require("apm-monitor");
...
Configuration options can be set via environment variables.
Environment Variable | Default | |
---|---|---|
MONITORING_ENABLED |
true |
Set to false to disable application monitoring. |
MONITORING_DEBUG |
false |
Set to true to enable debug logs. |