主管过程仪表事件监听器
supergauge的Python项目详细描述
版本
0.0.2版
支持的后端
- ALI CMS
- 百度bcm
如何使用
创建配置文件
docker:version:autosupervisor:SUPERVISOR_SERVER_URL:http://localhost:9000/RPC2# SUPERVISOR_USERNAME: chulai-usr# SUPERVISOR_PASSWORD: chulai-pwdplugins:# echo: {}# ali_cms:# user_id: ALI-USER-ID# baidu_bcm:# access_key: BCE_ACCESS-KEY# secret_key: BCE-SECRET-KEY# user_id: BCE-USER-ID# scope: BCM-SCOPElogging:version:1loggers:supergauge.eventlistener:handlers:[file]level:DEBUG__main__:handlers:[file]level:INFOhandlers:file:class :logging.handlers.RotatingFileHandlerlevel:DEBUGformatter:precisefilename:log/gauge.logmaxBytes:1024backupCount:3formatters:precise:class:logging.Formatterformat:"%(asctime)s%(name)-15s%(levelname)-8s%(processName)-10s%(message)s"
将以下代码片段放入主管配置文件中
[eventlistener:supergauge]command=supergauge /path/to/config/fileevents=TICK_60 ; collect every 60s [TICK_5, TICK_60, TICK_3600]user=username ; if you have your permission screwed up, use root
如何安装
pip install supergauge–流程依赖链接