[Feature] Implement Intelligent Diagnosis Tools for Dubbo Admin AI Agent
Maintainer thường phản hồi trong vòng 8 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- go, grafana, kubernetes, prometheus
- Lĩnh vực
- ai, backend-api-design, devops, distributed-systems, observability-sre
Hướng nghiên cứu
Bắt đầu trong thư mục ai/ bằng cách xem xét các công cụ mock hiện tại, sau đó kiểm tra các API hiện có cho ứng dụng, service, instance, PromQL, quy tắc lưu lượng, khả năng quan sát và Kubernetes. Issue mô tả một tập hợp các endpoint mới theo từng giai đoạn cho metrics, log, trace, quản lý, chẩn đoán, dự đoán và khôi phục; để hoàn thành sẽ cần thống nhất về phạm vi và tích hợp các công cụ đã chọn với API thực thay vì mock.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This issue proposes the implementation of a comprehensive set of intelligent diagnosis tools for the Dubbo Admin AI Agent. The goal is to enhance the AI agent's ability to diagnose and resolve issues in Dubbo microservices across three deployment modes (Universal, Half, K8s) by leveraging multi-dimensional observability data (metrics, logs, traces).
Current State
The current Dubbo Admin AI Agent in the ai/ directory only uses mock tools. While Dubbo Admin has rich observability capabilities and service management APIs, these are not exposed to the AI agent for intelligent diagnosis.
Existing Capabilities Identified
Observability Infrastructure:
- Prometheus integration with metric collection from Dubbo instances
- Grafana dashboard integration for visualization
- Distributed tracing support with dashboard links
- Comprehensive logging infrastructure based on Zap
- Real-time metrics and monitoring capabilities
Service Management APIs:
- Complete CRUD operations for services, instances, and applications
- Traffic rule management (condition routes, tag routes)
- Configuration management (timeout, retry, load balancing)
- Multi-deployment mode support (Universal, Half, K8s)
- K8s resource models and management capabilities
Missing Integration
The gap is between these existing capabilities and the AI agent tools. The agent needs structured APIs to:
- Query and analyze observability data
- Perform intelligent diagnosis using LLM reasoning
- Execute safe recovery operations
- Provide comprehensive root cause analysis
Proposed Solution
Phase 1: Foundation Tools (High Priority)
1. Metrics Query Tools
query_service_metrics- Query basic metrics (QPS, RT, success rate) with filteringget_application_overview- Get application health status and summaryanalyze_metrics_anomaly- Detect metric anomalies based on historical datacompare_instance_performance- Compare performance across multiple instances
2. Log Analysis Tools
search_service_logs- Search logs by service, instance, keywords, time rangeanalyze_error_logs- Analyze error patterns and frequencycorrelate_logs_with_metrics- Correlate logs with metric anomaliestrace_error_propagation- Track error propagation in call chains
3. Basic Service Management Tools
list_applications- List applications with filtering and paginationget_service_details- Get comprehensive service informationlist_service_instances- List service instances with health statusget_instance_status- Get detailed instance status and health checks
Phase 2: Advanced Analysis Tools (Medium Priority)
4. Distributed Tracing Tools
query_service_traces- Query distributed traces with filteringanalyze_trace_performance- Analyze trace performance and bottlenecksdetect_trace_anomalies- Detect trace anomalies (failures, timeouts)map_service_dependencies- Build service dependency topology
5. Traffic Management Tools
list_traffic_rules- List all traffic control rulesget_traffic_rule_details- Get detailed rule configuration and impactanalyze_traffic_distribution- Analyze traffic patterns and anomaliessimulate_traffic_impact- Simulate traffic rule changes impact
6. Configuration Management Tools
get_service_config- Get service configuration detailslist_config_changes- List configuration change historyanalyze_config_consistency- Analyze configuration consistencyvalidate_config_changes- Validate configuration changes safety
Phase 3: Intelligent Diagnosis Tools (Low Priority)
7. Cross-Mode Management Tools
get_deployment_mode- Get deployment mode informationlist_k8s_resources- List K8s resources in K8s modeanalyze_cross_mode_consistency- Analyze cross-mode consistencymigrate_service_mode- Assist with deployment mode migration
8. Intelligent Diagnosis Tools
diagnose_service_issues- Comprehensive issue diagnosis using multi-dim datapredict_service_anomalies- Predict potential anomalies based on historygenerate_recovery_plan- Generate automated recovery plansexecute_safe_recovery- Execute safe recovery operations
Required API Enhancements
New API Endpoints to Implement
Metrics APIs:
POST /api/v1/metrics/batch-query # Batch metric queries
POST /api/v1/metrics/anomaly-detection # Anomaly detection
POST /api/v1/metrics/comparison # Metric comparison analysis
Log APIs:
POST /api/v1/logs/search # Log search
POST /api/v1/logs/error-analysis # Error log analysis
POST /api/v1/logs/correlation # Log-metric correlation
Trace APIs:
POST /api/v1/traces/query # Trace query
POST /api/v1/traces/performance-analysis # Performance analysis
POST /api/v1/traces/dependency-map # Dependency map generation
Diagnosis APIs:
POST /api/v1/diagnosis/comprehensive # Comprehensive diagnosis
POST /api/v1/prediction/anomalies # Anomaly prediction
POST /api/v1/recovery/plan-generation # Recovery plan generation
Existing API Enhancements Required
- Enhance
/api/v1/application/detail- Add health status assessment - Enhance
/api/v1/service/detail- Add more related information - Enhance
/api/v1/instance/detail- Add health checks and resource usage - Enhance
/api/v1/promQL/query- Support batch queries and time ranges - Enhance traffic rule APIs - Add impact analysis and statistics
- Ngôn ngữ chính
- Go
- Star
- 4.1k
- Fork
- 2.2k
- Merge trung bình
- 6 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/dubbo-admin
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
apache/dubbo-admin#1659 ·
Maintainer thường phản hồi trong vòng 8 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/dubbo-admin#1658 ·
Maintainer thường phản hồi trong vòng 8 ngày
-
Editing a tag rule in the UI form drops the addresses of its tagsCó thể đã có người làm @AsperforMias đã nhận 7 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
apache/dubbo-admin#1649 ·
Maintainer thường phản hồi trong vòng 8 ngày
-
[Bug] Generic invoke does not propagate timeoutMs to Dubbo client, causing per-request timeout to fall back to 3sCó thể đã có người làm @dodjdnh đã nhận 3 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
apache/dubbo-admin#1654 ·
Maintainer thường phản hồi trong vòng 8 ngày
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 40/100
apache/dubbo-admin#1646 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 8 ngày
Tất cả issue của apache/dubbo-admin
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
taskmanager: a failed v1alpha1 backup leaves the partial backup behindCó thể đã có người làm @arshil42 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
modelcontextprotocol/go-sdk#1557 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Packaging: support mise-en-placeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100