OpsMind 的
  ](https://github.com/opsmind/opsmind) 
与公司无关的SRE运营平台 通过人工智能支持的监控、多公司支持的插件架构以及通过模型上下文协议(MCP)的全面基础设施可观察性。
建筑:基于插件的系统支持多个公司,配置隔离 当前插件:综合外汇交易(33个工具、1545台服务器、6个数据中心)
______________________________________________________________________
🚀 快速开始
# Clone repository
git clone https://github.com/opsmind/opsmind.git
cd opsmind
# Install dependencies
poetry install
# Configure for your company
cp .env.example .env
# Edit .env with your credentials
# Start OpsMind server
poetry run opsmind-server连接到克劳德代码
添加到 ~/.config/claude-code/mcp_config.json:
{
"mcpServers": {
"opsmind": {
"command": "poetry",
"args": ["run", "opsmind-server"],
"cwd": "/path/to/opsmind"
}
}
}用法示例:
You: "Check health of ppfxidb1"
Assistant: [Uses check_server_health from Integral plugin]
You: "Analyze alerts in Singapore region"
Assistant: [Uses analyze_alerts with AI pattern detection]______________________________________________________________________
🏗️ 建筑
基于插件的设计
OpsMind使用 插件架构 支持多家公司:
OpsMind Platform
├── Core Framework (company-agnostic)
│ ├── MCP server
│ ├── Plugin system
│ ├── Configuration management
│ └── Base classes
│
└── Company Plugins (company-specific)
├── Integral Plugin (33 tools)
├── Your Company Plugin
└── Another Company Plugin每家公司都得到:
- 自定义主机名解析
- 自定义警报模式
- 自定义监控阈值
- 自定义MCP工具
- 隔离配置
______________________________________________________________________
📦 当前插件
集成插件(内置)
基础设施:1545台服务器| 6个数据中心(LDN、NYC、SG、TYO、UAT、DR) 工具:33个MCP工具,分为9类
| 类别 | 工具 | 状态 |
|---|---|---|
| 基础设施监控 | 5 | ✅ 生产 |
| SSH操作 | 4 | ⚠️ WIP |
| 警报情报 | 4 | ✅ 生产 |
| 矢量存储 | 10 | ✅ 生产 |
| 基础设施知识 | 3 | ✅ 生产 |
| 操作脚本 | 2 | ✅ 生产 |
| 普罗米修斯 | 2 | ✅ 生产 |
| 行动情报 | 2 | ✅ 生产 |
| 自动摄入 | 1 | ✅ 生产 |
特性:
- AI驱动的警报分析(85%的噪声检测)
- 矢量存储(6个集合中的10874个条目)
- 自动摄取(每小时松弛+每日汇流)
- 外汇交易基础设施监控
- 主机名解析(ppfxidb1、spfxiclob5约定)
______________________________________________________________________
🔧 为您的公司创建插件
快速入门(4-8小时)
1.复制模板:
cp -r plugins/template plugins/your_company
cd plugins/your_company2.编辑plugin.yaml:
name: "your_company"
version: "1.0.0"
author: "Your Team"
description: "Your company infrastructure monitoring"
class_name: "YourCompanyPlugin"3.自定义主机名解析: 编辑 hostname_parser.py 为了符合您的命名约定:
def parse(self, hostname: str) -> Dict[str, Any]:
# Your logic: web-prod-us-01 → {environment: "prod", location: "us-east", ...}
pass4.配置阈值: 编辑 monitoring_config.py 根据您的阈值:
def get_thresholds(self) -> Dict[str, float]:
return {
"cpu_warning": 80, # Your thresholds
"memory_critical": 95,
}5.启用插件:
# In config/your_company.yaml
plugins:
enabled:
- your_company
# Start server
poetry run opsmind-server看: PLUGIN_DEVELOPMENT_GUIDE.md (第5批)了解全部详细信息
______________________________________________________________________
🛠️ 组件
核心框架(公司不可知)
插件系统 (core/plugins/):
- 插件接口(SREPlugin)
- 插件发现和加载
- 配置验证
配置 (core/config/):
- 带验证的Pydantic模型
- 环境变量替换
- 多环境支持
安全 (计划中):
- 输入验证
- API密钥验证
- 审核日志记录
OpsMind软件包
当前状态:包含所有实现(30个模块)
- MCP服务器(4346条线路,全部33个工具)
- 监控模块(5种)
- 矢量存储(ChromaDB,10874个条目)
- SSH多跳
- 警报情报
- 资源监控
未来状态:将分为:
- 中的通用基类
core/ - 集成特定工具
plugins/integral/tools/
______________________________________________________________________
📚 文档
对于用户
- README.md -此文件(开始)
- OPSMIND_REFACTOR_STATUS.md -当前重构状态
- docs/RUNBOOK.md -操作程序
对于开发者
- 改装_平面图.md -完整的重构计划
- 参考实施指南.md -逐步实施
- REFACTOR_FAST_TRACK.md -1周快速通道计划
- CLAUDE.md -AI助手指南(需要更新)
面向插件开发人员
- 插件/集成/ -参考实施
- 插件/test_plugin/ -最小示例
- 插件_开发_指南.md -即将推出
______________________________________________________________________
🔒 安全
当前 (务实):
- ✅ 输入验证正在进行中
- ✅ 通过环境变量的秘密
- ✅ 专有许可
计划的:
- API密钥身份验证(可选)
- 增强的输入净化
- 审核日志记录
未计划 (内部使用):
- ❌ RBAC(内部不需要)
- ❌ 保险库集成(环境变量足够)
- ❌ 静态加密(可选)
______________________________________________________________________
📝 版本和状态
当前版本:1.0.0(OpsMind) 先前0.7.1(SRE综合助理) 状态: ✅ 第1阶段完成(插件架构经过验证)
分支: refactor/company-agnostic 承诺:4个检查点提交 投入的时间:~12-16小时 剩余 (如果继续):~10-14小时
什么起作用:
- ✅ OpsMind服务器成功启动
- ✅ 插件系统加载Integral插件
- ✅ 所有33个可用工具
- ✅ 主机名解析、警报、阈值提取
- ✅ 内存泄漏已修复
- ✅ 资源监控已激活
接下来是什么:
- 彻底测试当前状态
- (可选)继续处理批次4-5
- 或者创建第二个公司插件进行验证
______________________________________________________________________
🤝 构建于
______________________________________________________________________
📄 许可证
专有-仅供内部使用
______________________________________________________________________
有关详细文档,请参阅文档文件和OPSMIND_REFACTOR_STATUS.md 📖
