AI-CloudOps

AI-CloudOps

AI+CloudOps智能化运维平台

Stars: 129

Visit
 screenshot

AI+CloudOps is a cloud-native operations management platform designed for enterprises. It aims to integrate artificial intelligence technology with cloud-native practices to significantly improve the efficiency and level of operations work. The platform offers features such as AIOps for monitoring data analysis and alerts, multi-dimensional permission management, visual CMDB for resource management, efficient ticketing system, deep integration with Prometheus for real-time monitoring, and unified Kubernetes management for cluster optimization.

README:

🚀 AI+CloudOps

🌟 智能化云原生运维管理平台 🌟

融合人工智能与云原生技术,重新定义企业运维管理体验

Go Version React Kubernetes Prometheus

License GitHub Stars GitHub Forks GitHub Issues Build Status

Go Report Card Coverage Latest Release

AI-CloudOps


🌈 项目介绍 (Introduction)

💡 为什么选择 AI+CloudOps?

AI+CloudOps 不仅仅是一个运维平台,它是您数字化转型路上的智能伙伴。我们深度融合人工智能与云原生技术,为企业提供前所未有的运维管理体验。

🎯 核心优势

  • 🤖 AI 驱动: 机器学习算法实现智能预警和自动修复
  • ☁️ 云原生: 深度集成 Kubernetes 和微服务架构
  • 🔒 企业级: 多层级权限控制,满足大型企业需求
  • 📊 可视化: 直观的监控面板和数据分析
  • 🚀 高性能: Go 语言后端,React 前端,性能卓越
  • 🔧 易扩展: 微服务架构,支持灵活定制和扩展

🏢 适用场景

  • 大中型企业 的 IT 运维团队
  • 互联网公司 的 DevOps 实践
  • 金融机构 的稳定性要求
  • 制造业 的数字化转型
  • 教育科研 机构的 IT 管理
  • 政府机构 的信息化建设

🔗 项目生态 (Project Ecosystem)

仓库 描述 技术栈 状态
🔧 AI-CloudOps 核心后端服务 Go + Gin + GORM Status
🎨 AI-CloudOps-web 前端用户界面 Vue + TypeScript + Ant Design vue Status
🧠 AI-CloudOps-aiops AI 智能运维模块 Python + FastAPI + scikit-learn Status

✨ 核心功能特性 (Core Features)

🎨 功能架构图

┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
│   🎯 前端界面    │ ──▶ │   🔧 核心后端    │ ──▶ │   🧠 AI 分析     │
│  React + TS     │    │   Go + Gin      │    │  Python + ML    │
└─────────────────┘    └─────────────────┘    └─────────────────┘
         │                       │                       │
         └───────────────────────┼───────────────────────┘
                                 ▼
                    ┌─────────────────────────┐
                    │     ☁️ 云原生基础设施     │
                    │  K8s + Prometheus + 🗄️   │
                    └─────────────────────────┘

🤖 智能运维 (AIOps)

  • 📊 智能监控: ML 算法分析监控数据
  • 🔍 异常检测: 自动识别系统异常
  • 💡 故障预测: 提前预警潜在问题
  • 🛠️ 自动修复: 智能化故障处理
  • 📈 趋势分析: 性能趋势预测
  • 🎯 根因分析: 快速定位问题根源

🔐 权限管理 (RBAC)

  • 👥 多租户: 支持多组织架构
  • 🎭 角色管理: 灵活的角色定义
  • 🔑 权限控制: 细粒度权限分配
  • 🛡️ 安全审计: 完整的操作日志
  • 📝 合规支持: 符合企业安全标准
  • 🔄 动态授权: 实时权限更新

🌲 资源管理 (CMDB)

  • 🗂️ 服务树: 可视化资源拓扑
  • 📋 资产清单: 自动化资产发现
  • 🔗 依赖关系: 服务依赖图谱
  • 📊 资源监控: 实时资源状态
  • 📈 容量规划: 智能容量分析
  • 🏷️ 标签管理: 灵活的资源分类

📋 工单系统 (Workflow)

  • 📝 工单模板: 可定制工单类型
  • 🔄 流程引擎: 自动化审批流程
  • ⏰ SLA 管理: 服务等级协议监控
  • 📊 统计分析: 工单数据洞察
  • 💬 协作沟通: 内置沟通工具
  • 📱 移动支持: 随时随地处理工单

📡 监控告警 (Monitoring)

  • 🔍 多维监控: 全方位性能监控
  • ⚡ 实时告警: 秒级告警响应
  • 📈 可视化: 丰富的监控图表
  • 🎯 智能阈值: AI 动态阈值调整
  • 📲 多渠道通知: 邮件/短信/钉钉
  • 📊 告警收敛: 智能告警聚合

☸️ Kubernetes 管理

  • 🖥️ 集群管理: 多集群统一管理
  • 🚀 应用部署: 可视化应用部署
  • 📊 资源监控: Pod/Node 监控
  • 🔄 自动扩缩: HPA/VPA 支持
  • 📋 配置管理: ConfigMap/Secret
  • 🔧 故障排查: 日志聚合分析

🌐 在线体验 (Live Demo)

🎯 立即体验我们的平台

Live Demo

演示地址: http://68.64.177.180

登录凭据: 👤 用户名: demo 🔑 密码: Demo@2025

⚠️ 演示环境仅供测试,请勿上传敏感信息

🔥 快速导览

🎨 仪表板: 查看系统整体运行状态 ☸️ K8s 管理: 体验 Kubernetes 集群管理 📊 监控面板: 感受实时监控能力 🤖 AI 分析: 尝试智能故障分析 📋 工单系统: 体验完整工单流程

🏆 核心贡献者 (Core Contributors)

💪 感谢这些优秀的贡献者让项目变得更加出色!

GoSimplicity
🔧 GoSimplicity

项目发起人 & 核心贡献者
Penge666
⚡ Penge666

资深开发者
shixiaocaia
🌟 shixiaocaia

资深贡献者
daihao4371
💼 daihao4371

功能开发者
骑自行车追狗
🚴 骑自行车追狗

活跃贡献者

🌟 贡献统计

Contributors

📊 项目统计

Contributors
Commits
Last Commit

🎯 贡献指南

PRs Welcome
Issues Open
Discussions

🚀 快速开始 (Quick Start)

⚡ 三步快速部署,五分钟上线体验

🛠️ 环境准备 (Prerequisites)

🔧 必需环境

  • Go Go 1.21+
  • Node.js Node.js 21.x
  • pnpm pnpm latest
  • Docker Docker & Docker Compose
  • Python Python 3.11+

🔍 环境检查命令

# 检查所有依赖
go version          # >= 1.23
node --version      # >= 21.0
pnpm --version      # latest
docker --version    # latest
python3 --version   # >= 3.11

📦 获取源码 (Clone Repositories)

🔄 一键克隆所有项目

🔧 后端服务

git clone https://github.com/GoSimplicity/AI-CloudOps.git
cd AI-CloudOps

🎨 前端应用

git clone https://github.com/GoSimplicity/AI-CloudOps-web.git
cd AI-CloudOps-web

🧠 AI 模块

git clone https://github.com/GoSimplicity/AI-CloudOps-aiops.git
cd AI-CloudOps-aiops
📋 批量克隆脚本
#!/bin/bash
# 一键克隆所有项目
echo "🚀 开始克隆 AI-CloudOps 项目组..."

repositories=(
    "https://github.com/GoSimplicity/AI-CloudOps.git"
    "https://github.com/GoSimplicity/AI-CloudOps-web.git" 
    "https://github.com/GoSimplicity/AI-CloudOps-aiops.git"
)

for repo in "${repositories[@]}"; do
    echo "📦 克隆 $repo"
    git clone "$repo"
done

echo "✅ 所有项目克隆完成!"

🔥 开发模式 (Development Mode)

🚀 四步启动完整开发环境

1️⃣ 启动基础设施

2️⃣ 启动前端

3️⃣ 启动后端

4️⃣ 启动 AI 服务


🏗️ 步骤一:启动基础设施

# 进入后端项目目录
cd AI-CloudOps

# 🐳 使用 Docker Compose 启动中间件
docker-compose -f docker-compose-env.yaml up -d

# ⚙️ 配置环境变量
cp env.example .env

# 🔍 检查服务状态
docker-compose -f docker-compose-env.yaml ps

🔧 启动的服务:

  • MySQL MySQL 8.0
  • Redis Redis 7.0
  • Prometheus Prometheus
  • Grafana Grafana

🎨 步骤二:启动前端服务

# 进入前端项目目录
cd ../AI-CloudOps-web

# 📦 安装依赖
pnpm install

# 🚀 启动开发服务器
pnpm run dev

🌐 访问地址:

  • 开发环境: http://localhost:3000
  • 热重载: ✅ 自动
  • 构建工具: Vite + Turbo
  • 代码检查: ESLint + Prettier

🔧 步骤三:启动后端服务

# 回到后端项目目录
cd ../AI-CloudOps

# 📥 安装 Go 依赖
go mod tidy

# 🚀 启动后端主服务
go run main.go

🔗 服务地址:


🧠 步骤四:启动 AI 服务 (可选)

# 进入 AIOps 项目目录
cd ../AI-CloudOps-aiops

# ⚙️ 配置环境变量
cp env.example .env

# 📦 安装 Python 依赖
pip install -r requirements.txt

# 🤖 训练机器学习模型 (首次运行)
cd data/ && python machine-learning.py && cd ..

# 🚀 启动 AI 服务
python app/main.py

🤖 AI 能力:

  • 异常检测: 基于机器学习
  • 故障预测: 时间序列分析
  • 根因分析: 知识图谱
  • 自动修复: 规则引擎
  • API 地址: http://localhost:8001

🎉 恭喜!开发环境启动完成

现在可以通过 http://localhost:3000 访问完整的应用程序了!

🚀 生产部署 (Production Deployment)

🏭 企业级生产环境部署方案

🏗️ 传统部署

手动构建和部署

🐳 容器化部署

推荐方案

☸️ K8s 部署

云原生生产级


🏗️ 方案一:传统构建部署

📦 前端构建
# 进入前端项目目录
cd AI-CloudOps-web

# 📦 安装依赖
pnpm install

# 🔨 构建生产版本
pnpm run build

# 📊 查看构建结果
ls -la dist/

🌐 Nginx 配置示例:

server {
    listen 80;
    server_name your-domain.com;
    
    location / {
        root /var/www/ai-cloudops/dist;
        try_files $uri $uri/ /index.html;
    }
    
    location /api/ {
        proxy_pass http://localhost:8000/api/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
    }
}
🔧 后端构建
# 回到后端项目目录
cd AI-CloudOps

# 🔨 构建生产二进制
go build -o bin/ai-cloudops main.go

# ⚙️ 配置生产环境变量
cp config/config.production.yaml config.yaml

# 🚀 启动生产服务
./bin/ai-cloudops

🔧 Systemd 服务配置:

[Unit]
Description=AI-CloudOps Backend Service
After=network.target

[Service]
Type=simple
User=cloudops
WorkingDirectory=/opt/ai-cloudops
ExecStart=/opt/ai-cloudops/bin/ai-cloudops
Restart=always

[Install]
WantedBy=multi-user.target

🐳 方案二:Docker Compose 部署 (推荐)

# 📁 在 AI-CloudOps 项目根目录
cd AI-CloudOps

# 🚀 一键启动所有服务
docker-compose up -d

# 🔍 查看服务状态
docker-compose ps

# 📊 查看服务日志
docker-compose logs -f

🔧 高级配置选项:

# 🔄 仅更新某个服务
docker-compose up -d backend

# 📊 监控资源使用
docker-compose top

# 🧹 清理和重启
docker-compose down && docker-compose up -d

☸️ 方案三:Kubernetes 部署

🚀 云原生生产级部署
# 📁 进入 Kubernetes 部署目录
cd deploy/kubernetes/

# ⚙️ 配置环境变量
cp config.example config

# 🚀 部署到 Kubernetes
kubectl apply -f .

# 🔍 查看部署状态
kubectl get pods,svc,ingress -l app=ai-cloudops

📊 部署架构:

┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
│   📱 前端 Pod    │───▶│   🔧 后端 Pod    │───▶│   🧠 AI Pod     │
│   React App     │    │   Go Service    │    │  Python ML     │
│   (多副本)       │    │   (多副本)       │    │   (多副本)      │
└─────────────────┘    └─────────────────┘    └─────────────────┘
         │                       │                       │
         └───────────────────────┼───────────────────────┘
                                 ▼
                    ┌─────────────────────────┐
                    │      🗄️ 数据层 Pod      │
                    │  MySQL + Redis + 监控   │
                    └─────────────────────────┘

🏗️ 项目架构 (Project Architecture)

🎯 微服务架构设计

📁 后端结构 (Backend Structure)

🔧 AI-CloudOps 后端架构
AI-CloudOps/
├── 📁 cmd/                    # 命令行入口
│   └── webhook/               # Webhook 服务
├── 📁 config/                 # 配置文件
│   ├── config.development.yaml
│   ├── config.production.yaml
│   └── webhook.yaml
├── 📁 deploy/                 # 部署配置
│   ├── kubernetes/            # K8s 部署文件
│   ├── mysql/                 # 数据库初始化
│   ├── nginx/                 # 反向代理配置
│   └── prometheus/            # 监控配置
├── 📁 internal/               # 核心业务逻辑
│   ├── 🔐 middleware/         # 中间件 (认证、日志等)
│   ├── 📊 model/              # 数据模型
│   ├── 🏭 k8s/                # K8s 管理模块
│   ├── 👥 user/               # 用户管理
│   ├── 📈 prometheus/         # 监控指标
│   ├── 📋 workorder/          # 工单系统
│   ├── 🌲 tree/               # 服务树 CMDB
│   └── 🔧 system/             # 系统管理
├── 📁 pkg/                    # 公共工具包
│   ├── di/                    # 依赖注入
│   ├── utils/                 # 工具函数
│   ├── ssh/                   # SSH 连接
│   └── websocket/             # WebSocket 支持
├── 📁 docs/                   # API 文档
│   ├── swagger.json
│   └── swagger.yaml
├── main.go                    # 程序入口
├── Dockerfile                 # 容器构建
├── docker-compose.yaml        # 本地开发环境
└── go.mod                     # Go 模块管理

🏛️ 架构层级:

  • 🌐 API Layer: RESTful API 接口层
  • 🔄 Service Layer: 业务逻辑服务层
  • 💾 Repository Layer: 数据访问层
  • 🗄️ Infrastructure Layer: 基础设施层

🎨 前端结构 (Frontend Structure)

⚡ AI-CloudOps-web 前端架构
AI-CloudOps-web/
├── 📁 apps/                   # 应用程序目录
│   └── web-antd/              # 主应用 (Ant Design + Vue)
│       ├── src/
│       │   ├── 📁 api/        # API 接口层
│       │   ├── app.vue        # 根组件
│       │   ├── bootstrap.ts   # 应用启动配置
│       │   ├── 📁 composables/ # Vue Composables
│       │   ├── 📁 layouts/    # 布局组件
│       │   ├── 📁 locales/    # 国际化文件
│       │   ├── main.ts        # 应用入口
│       │   ├── preferences.ts # 用户偏好设置
│       │   ├── 📁 router/     # 路由配置
│       │   ├── 📁 store/      # 状态管理
│       │   ├── 📁 types/      # TypeScript 类型
│       │   └── 📁 views/      # 页面视图组件
│       ├── dist/              # 构建输出
│       ├── public/            # 静态资源
│       ├── index.html         # 入口 HTML
│       ├── package.json       # 项目依赖
│       ├── tailwind.config.mjs # Tailwind 配置
│       ├── tsconfig.json      # TypeScript 配置
│       └── vite.config.mts    # Vite 构建配置
├── 📁 packages/               # 共享包 (Monorepo)
├── 📁 internal/               # 内部工具包
├── 📁 docs/                   # 文档目录
├── 📁 scripts/                # 构建脚本
├── cspell.json                # 拼写检查配置
├── eslint.config.mjs          # ESLint 配置
├── stylelint.config.mjs       # 样式检查配置
├── vitest.config.ts           # 单元测试配置
├── vitest.workspace.ts        # 测试工作空间
├── turbo.json                 # Turborepo 配置
├── pnpm-workspace.yaml        # PNPM 工作空间
├── pnpm-lock.yaml             # 锁定文件
├── package.json               # 根项目依赖
└── README.md                  # 项目说明

🎯 技术特性:

  • ⚡ Vite: 极速构建工具
  • 🎨 Ant Design: 企业级 UI 组件
  • 📱 响应式: 适配多端设备
  • 🔄 状态管理: Zustand/Redux
  • 📊 可视化: ECharts/D3.js
  • 🧪 测试: Vitest + Testing Library

🧠 AI 模块结构 (AI Module Structure)

🤖 AI-CloudOps-aiops 智能模块
AI-CloudOps-aiops/
├── 📁 app/                    # 应用主代码
│   ├── __init__.py            # 包初始化文件
│   ├── main.py                # FastAPI 入口
│   ├── 📁 api/                # API 路由层
│   ├── 📁 common/             # 通用模块
│   ├── 📁 config/             # 应用配置
│   ├── 📁 core/               # 核心业务逻辑
│   ├── 📁 mcp/                # MCP 协议实现
│   ├── 📁 models/             # 数据模型定义
│   ├── 📁 services/           # 业务服务层
│   └── 📁 utils/              # 工具函数
├── 📁 config/                 # 全局配置文件
├── 📁 data/                   # 数据存储
├── 📁 deploy/                 # 部署配置
├── 📁 docs/                   # 文档目录
├── 📁 logs/                   # 日志文件
├── 📁 scripts/                # 脚本工具
├── 📁 tests/                  # 测试用例
├── 📁 tools/                  # 开发工具
├── Dockerfile                 # 容器构建文件
├── Dockerfile.mcp             # MCP 服务容器
├── docker-compose.yml         # 本地开发环境
├── env.example                # 环境变量模板
├── LICENSE                    # 开源许可证
├── pyproject.toml             # Python 项目配置
├── pytest.ini                # 测试配置
├── README.md                  # 项目说明
└── requirements.txt           # Python 依赖

🧠 AI 能力:

  • 📊 时间序列分析: LSTM, ARIMA, Prophet
  • 🔍 异常检测: Isolation Forest, LOF
  • 🎯 分类预测: Random Forest, XGBoost
  • 📈 回归分析: Linear, Polynomial, SVR
  • 🕸️ 知识图谱: Neo4j, NetworkX
  • 📝 NLP 处理: BERT, Word2Vec

🤝 贡献指南 (Contributing Guide)

🌟 我们欢迎所有形式的贡献!

🚀 快速开始贡献

📝 代码贡献流程

# 1. Fork 仓库
gh repo fork GoSimplicity/AI-CloudOps

# 2. 克隆到本地
git clone https://github.com/YOUR_USERNAME/AI-CloudOps.git

# 3. 创建特性分支
git checkout -b feature/amazing-feature

# 4. 提交更改
git commit -m "✨ Add amazing feature"

# 5. 推送分支
git push origin feature/amazing-feature

# 6. 创建 Pull Request
gh pr create --title "Add amazing feature" --body "Description of the feature"

🎯 贡献类型

  • 🐛 Bug 修复: 发现并修复代码问题
  • ✨ 新功能: 添加令人兴奋的新特性
  • 📚 文档: 改善项目文档和说明
  • 🎨 UI/UX: 提升用户界面和体验
  • ⚡ 性能: 优化系统性能和效率
  • 🧪 测试: 增加测试覆盖率
  • 🔧 工具: 改进开发工具和流程
  • 🌐 国际化: 支持多语言和本地化

📋 贡献规范

💻 代码规范

Go 后端代码规范

// ✅ 推荐的代码风格
func (s *UserService) CreateUser(ctx context.Context, req *CreateUserRequest) (*User, error) {
    // 参数验证
    if err := req.Validate(); err != nil {
        return nil, fmt.Errorf("invalid request: %w", err)
    }
    
    // 业务逻辑
    user := &User{
        Name:  req.Name,
        Email: req.Email,
    }
    
    return s.repo.Create(ctx, user)
}

TypeScript 前端代码规范

// ✅ 推荐的代码风格
interface UserCreateRequest {
  name: string;
  email: string;
}

const createUser = async (request: UserCreateRequest): Promise<User> => {
  const response = await api.post('/users', request);
  return response.data;
};
📝 提交信息规范

使用 Conventional Commits 规范:

<type>(<scope>): <description>

[optional body]

[optional footer]

提交类型:

  • feat: 新功能
  • fix: Bug 修复
  • docs: 文档更新
  • style: 代码格式调整
  • refactor: 重构代码
  • perf: 性能优化
  • test: 测试相关
  • ci: CI/CD 配置

示例:

git commit -m "feat(k8s): add pod auto-scaling feature"
git commit -m "fix(auth): resolve login timeout issue"
git commit -m "docs(readme): update installation guide"

📄 开源许可 (License)

MIT License

本项目基于 MIT License 开源

这意味着您可以自由使用、修改、分发此项目,包括商业用途

📋 许可证要点

✅ 允许的操作

✨ 商业使用: 可用于商业项目 🔄 修改: 可以修改源代码 📦 分发: 可以分发原版或修改版 🔒 私人使用: 可以私人使用 📄 专利使用: 获得专利使用权

❗ 必须遵循的条件

📝 许可证声明: 必须包含许可证副本 ©️ 版权声明: 必须保留版权声明

⚠️ 免责声明

🚫 无责任: 作者不承担任何责任 🛡️ 无保证: 软件按"现状"提供,无任何保证


📞 联系与支持 (Contact & Support)

🌐 多渠道联系方式

📧 邮件联系

[email protected]

🕒 24小时内回复

💬 微信交流

微信号: GoSimplicity

⚠️ 添加请备注 "AI-CloudOps"

🐛 问题反馈

提交 Issue

🚀 快速响应技术问题

📱 微信群二维码

image

加入我们的技术交流群,与更多开发者一起讨论


🌟 Star History

📈 项目增长轨迹

Star History Chart

感谢每一位给我们点 Star 的开发者!

GitHub stars GitHub forks GitHub watchers

🙏 致谢 (Acknowledgements)

💖 特别感谢

感谢所有为 AI-CloudOps 做出贡献的开发者和用户!

正是因为你们的支持和贡献,这个项目才能不断进步和完善。

🔧 技术支持

Go 生态系统

Vue 生态系统

Kubernetes 社区

开源社区

📚 灵感来源

Grafana

Prometheus

Istio

ArgoCD

🛠️ 基础设施

GitHub Actions

Docker Hub

DigitalOcean

Cloudflare

🎨 设计资源

Ant Design Vue

Heroicons

Unsplash

Figma

🎯 让我们一起

共同构建更智能的云原生运维未来!


🎉 感谢您阅读到这里!如果觉得项目有用,请给我们一个 Star ⭐

🔝 回到顶部

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for AI-CloudOps

Similar Open Source Tools

For similar tasks

For similar jobs