Lightweight non-invasive node service monitoring and early warning program, including optional enterprise wechat message push function.
Start with fork mode, single process, suitable for running in docker environment.
npm install -g pm-docker
pmd run [script]
The script value is the scripts command configured in the node project package.json that you want to run.
Create the pm-docker.env file in your project directory and fill in the complete configuration information
#log save path
logPath=
#log split format
logPattern=.yyyy-MM-dd
#upper limit of cpu useage percent
cpuLimit=90
#mini free memory
memoryLimit=100000000
#available disk
diskLimit=500000000
#企业id
corpid=
#自建应用secret
corpsecret=
#自建应用agentid
agentid=
#消息推送给谁
touser=