gmonitor:go实现的进程监控项目

时间:2021-05-14 22:13:26
【文件属性】:
文件名称:gmonitor:go实现的进程监控项目
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-14 22:13:26
Go gmonitor(参考自) 功能 用于进程监控,管理 安装 go get -u github.com/zhaochuanyun/gmonitor 实现 被监控进程启动后,按每300ms执行一次状态检测(通过发signal0信号检测),每个被监控进程在一个独立的协程里被监测。 gmonitor启动后会监听一个http端口用于接收管理命令(start|stop|restart|status|...) 使用方法 配置文件: (json格式,支持注释),可以通过传入自定义的env及conf参数来重定义配置文件里的参数,如:./gmonitor -env dev -conf='port=8080;clog.mode=1',多个参数用;分隔 { "dev": { "port": 29118, // 配置监听端口 "rootpath": "/home/zhaoch
【文件预览】:
gmonitor-master
----clog()
--------clog.go(300B)
----svr()
--------stru.go(91B)
--------httpsvr.go(3KB)
--------timersvr.go(4KB)
--------svr.go(242B)
----main.go(1KB)
----README.md(4KB)
----gmonitor.sh(3KB)
----conf()
--------conf.go(3KB)
--------conf.json(1KB)
----.gitattributes(378B)
----procs()
--------procs.go(2KB)
----comm()
--------cons.go(129B)

网友评论