https://github.com/veaba/docker-bronze-mirror
docker青铜镜,实现docker监控,实验性demo。
https://github.com/veaba/docker-bronze-mirror
Last synced: about 1 year ago
JSON representation
docker青铜镜,实现docker监控,实验性demo。
- Host: GitHub
- URL: https://github.com/veaba/docker-bronze-mirror
- Owner: veaba
- Created: 2019-11-26T14:19:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-20T15:09:16.000Z (almost 3 years ago)
- Last Synced: 2025-01-30T17:39:47.258Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-monitor
## 功能
- 分布式,集群监控(webscoket主动监控)
- HTTPS 加密 (todo)
- docker 精密级监控
- 自动检测xxx
## 吐槽!
网上的python版本的socket.io 是什么情况???恩????
我都想重写一个python 版本的socket.io了!
宕机、容器启动等通过websocket 推送消息
- actions 动作
- containers 容器
- images 镜像
- app 应用
- docker docker
- screens 大屏
- status 状态
- websocket websocket
- healthy 心跳
- host 宿主 宿主机
- notify 通知
- webhooks webhooks
- im 即时消息
- channel 通道
- utils 工具类库
## 如果出现
可能是项目顶层文件存在诸如websocket.py 的文件!
> AttributeError: module 'socketio' has no attribute 'Server'
(这个dir 打印奇葩的是,过一会才出现,这更好玩)
## notify
【B级】:检测到容器退出!\n
> 节点 127.0.0.0
> 容器ID:3df85570271c
> 服务名称:distracted_margulis
> 状态:Exited (0)
> 威胁等级 →_→:获得残暴(Burtal)记录
> 请负责人@xxx 处理
> 处理方式建议:xxx
## 线程
### 相互之前不影响的线程定时器独立
- 某a 每1s 执行一次
- 某b 每2s 执行一次
## refenerce
- https://tutorialedge.net/python/python-socket-io-tutorial/