基于烧瓶的动态可操作仪表盘,用于监控RQ
rqmonitor的Python项目详细描述
主要特点
- Redis RQ内存监控-通过Lua脚本实现
- 可能RQ并不是redis正在做的唯一工作,您需要密切关注RQ命名空间的内存消耗。在有大量数据的生产环境中执行时要小心谨慎,因为脚本可能会在一段时间内阻塞您的redis。在
- 向远程工作人员发送信号
- 使用rqmonitor,您可以挂起/恢复/删除工作线程以进行调试,这些工作进程可以位于运行rqmonitor的同一个实例或网络中的其他实例上。在
- rqmonitor内部使用fabric向远程工作线程发送命令。在
- 确保运行rqmonitor的实例能够正确地访问其他运行rqworker的实例,这可以通过正确配置ssh来实现,因此确保在ssh配置中添加了适当的条目。在
- 通过数据表填充所有数据:
- 队列和Workers仪表板由客户端数据表呈现,因此您可以获得排序、搜索和可靠分页的附加功能。在
- Jobs dashboard呈现时启用了DataTables的服务器端选项,以便于加载大量的作业(Ajax管道技术也计划在将来进行)
- 更多的Ajax更少的重新加载
- 启动仪表板之后,几乎不需要刷新,几乎每次刷新都是通过ajax完成的。在
- 作业筛选支持
- 您可以选择从具有特定状态的特定队列中查看一组作业。在
- 全球行动
- 您可以轻松地删除/清空多个队列、作业和挂起/恢复工作人员。在
- 最后但并非最不重要的是漂亮的用户界面
- 更多功能即将推出!在
安装
- 用pip安装^{
} $ pip install rqmonitor
- 为码头工人检查下面。在
码头工人
你爱多克,是吗?在
从dockerhub中拉出rqmonitor最新的docker映像
docker pull pranavgupta1234/rqmonitor
docker run -p 8899:8899 pranavgupta1234/rqmonitor
上面的命令将成功运行flask应用程序,但是你的redis可能在你的docker主机上 通过env为redis url提供你的docker主机私有IP,如:
^{pr2}$使用
与rq的选项类似。
从pypi下载最新版本的rqmonitor并启动命令行并键入rqmonitor --help
。在
Usage: rqmonitor [OPTIONS]
Run the RQ Monitor Flask server.
All configuration can be set on the command line or through environment
variables of the form RQ_MONITOR_*. For example RQ_MONITOR_USERNAME.
A subset of the configuration (the configuration parameters used by the
underlying flask blueprint) can also be provided in a Python module
referenced using --config, or with a .cfg file referenced by the
RQ_MONITOR_SETTINGS environment variable.
Options:
-b, --bind TEXT IP or hostname on which to bind HTTP server
-p, --port INTEGER Port on which to bind HTTP server
--url-prefix TEXT URL prefix e.g. for use behind a reverse
proxy
--username TEXT HTTP Basic Auth username (not used if not
set)
--password TEXT HTTP Basic Auth password
-c, --config TEXT Configuration file (Python module on search
path)
-u, --redis-url TEXT Redis URL. Can be specified multiple times.
Default: redis://127.0.0.1:6379
--refresh-interval, --interval INTEGER
Refresh interval in ms
--extra-path TEXT Append specified directories to sys.path
--debug / --normal Enter DEBUG mode
-v, --verbose Enable verbose logging
--help Show this message and exit.
学分
此软件主要依赖于以下开源软件包:
贡献
- 克隆repo并创建新分支:
$ git checkout https://github.com/pranavgupta1234/rqmonitor -b name_for_new_branch
。在 - 进行更改和测试
- 提交请求,并对更改进行全面描述
类似工具
rqmonitor中的一些代码片段已经从rq仪表板中使用。在
- rq-dashboard-又一个RQ仪表板
许可证
Apache 2.0版
- 项目
标签: