node-monitor-client:节点监视器客户端

时间:2024-05-28 20:16:31
【文件属性】:

文件名称:node-monitor-client:节点监视器客户端

文件大小:49KB

文件格式:ZIP

更新时间:2024-05-28 20:16:31

JavaScript

node-monitor-client node monitor client 通过配置定时任务的方式,执行 shell 执行,然后往服务器端发送监控信息(websocket)。 需要配合 node-monitor-server 一起使用才行。 配置信息 config/index.js module.exports = { // monitor-server 的服务器端地址 server: { development: "", production: "" }, // 日志存放地址,具体到文件。 logDir:{ development: "", production: "" } }; 收集的数据 cpu 收集 cpu 使用情况。 使用的是 top 指令。 具体指令:top -b


【文件预览】:
node-monitor-client-master
----constants()
--------index.js(941B)
----.gitattributes(66B)
----utils()
--------readline.js(2KB)
--------index.js(2KB)
--------watch.js(7KB)
----yarn.lock(69KB)
----etc()
--------pm2.json(392B)
----app.js(12KB)
----config()
--------index.js(412B)
----LICENSE(11KB)
----test()
--------logs()
----README.md(1KB)
----.gitignore(85B)
----task()
--------uptime.js(1KB)
--------free.js(1KB)
--------network.js(2KB)
--------README.md(2KB)
--------program.js(2KB)
--------log.js(3KB)
--------index.js(434B)
--------cpu.js(823B)
----package.json(589B)

网友评论