Conversation
added 2 commits
December 16, 2025 13:53
✨ 新功能: - 告警去重功能:基于指纹识别重复告警,支持时间窗口和计数阈值 - 告警聚合功能:将相似告警聚合成组,减少告警噪音 - 统一告警处理器:集成去重和聚合功能到现有告警流程 - Web管理接口:提供RESTful API进行配置和监控 🔧 核心组件: - AlertProcessor: 统一告警处理器 - AlertDeduplicator: 告警去重管理器 - AlertAggregator: 告警聚合管理器 - AlertNormalizer: 告警标准化转换器 - DeduplicationController/AggregationController: Web管理接口 📊 数据模型: - alert_deduplication: 去重记录表 - alert_aggregation: 聚合记录表 - 内存缓存 + 数据库持久化 🧪 测试覆盖: - 单元测试: 去重和聚合核心功能 - 集成测试: 告警处理器完整流程 - API测试: Web接口功能验证 🔗 集成点: - Prometheus告警处理流程 - 现有数据库和ORM - Beego路由和控制器 ✅ 验证通过: - 去重功能正常工作(重复告警被抑制) - 聚合功能正常工作(相似告警被聚合) - API接口正常响应 - 数据库记录正确创建和更新-
- 保留orm.RunSyncdb调用,确保新增数据表能正确创建 - 优化注释说明,明确执行顺序的重要性 - 确保去重聚合功能的数据表能正常初始化
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ 新功能:
🔧 核心组件:
📊 数据模型:
🧪 测试覆盖:
🔗 集成点:
✅ 验证通过: