[Proposal] Add log observability and metric-trace-log correlation
Maintainer thường phản hồi trong vòng 8 ngày
@dodjdnh đang làm issue này rồi.
Từ ngày 22/8/2026.
Đá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
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- elasticsearch, go, grafana, prometheus, typescript
- Lĩnh vực
- api, backend, frontend, observability
Hướng nghiên cứu
Bắt đầu bằng cách đọc pkg/config/observability, pkg/console/handler/observability.go, pkg/console/router/router.go và ui-vue3/src/components/GrafanaPage.vue để lập bản đồ các entry point hiện có của Grafana và metrics. Công việc được xem là hoàn tất khi các yêu cầu đã thống nhất về provider, correlation, compatibility, test và documentation được triển khai, đồng thời các tính năng metric và trace hiện có vẫn hoạt động mà không cần log provider.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Background
Dubbo Admin already provides application, instance, and service information, together with metric and trace Grafana dashboards. However, log observability is not currently exposed as a unified capability in the Admin console. When investigating an RPC failure, users need to switch between different tools and manually connect the trace, related logs, and metric changes.
This issue proposes adding log observability and cross-signal correlation to Dubbo Admin.
Current status
The current codebase already contains several extension points:
pkg/config/observabilityprovides Prometheus and Grafana configuration.pkg/console/handler/observability.gobuilds Grafana dashboard URLs.pkg/console/router/router.goexposes metric and trace dashboard routes for applications, instances, and services.ui-vue3/src/components/GrafanaPage.vueprovides the reusable Grafana iframe container.- Instance metric collection already reads Prometheus exposition data from the application metrics endpoint.
The missing parts are log data source adapters, log dashboard routes, a common correlation context, and metric compatibility handling for dubbogo.
Proposed scope
- Add configurable Loki and Elasticsearch log providers.
- Introduce a unified log query and result model in the Go backend.
- Add application, instance, and service level log dashboard configuration and routes.
- Pass a common context containing service, application, instance, method, trace ID, and time range between metric, trace, and log panels.
- Support trace-to-log lookup and opening the related metric dashboard.
- Add metric label/profile mapping so dubbogo and dubbojava metrics can use the same display model where possible.
- Add unit tests, provider mock tests, frontend tests, fixture data, and configuration documentation.
Implementation direction
The first implementation should reuse the existing Grafana integration and add a small backend abstraction instead of introducing a new observability platform.
Resource detail page
|
v
CorrelationContext
|
+-----+------+
| |
Log query Grafana URL builder
| metric / trace / log
v
LokiAdapter or ElasticsearchAdapter
The backend should translate the unified query model into LogQL or Elasticsearch Query DSL. The frontend should only call Dubbo Admin APIs and should not directly expose data source credentials or arbitrary downstream URLs.
Acceptance criteria
- Loki can be configured and queried from Dubbo Admin.
- Elasticsearch can be configured and queried from Dubbo Admin.
- Applications, instances, and services have clear log dashboard entry points.
- A trace ID and time range can be used to find related logs.
- The same resource and time context can be used to open the related metric dashboard.
- Existing metric and trace features remain available when no log provider is configured.
- dubbogo and dubbojava metric fixtures pass the normalization/compatibility tests.
- The implementation includes tests and documentation that can be reproduced by contributors.
Non-goals for the first version
- Replacing Loki, Elasticsearch, Prometheus, or Grafana.
- Building a separate log storage or alerting platform.
- Implementing advanced log aggregation, anomaly detection, or long-term trace storage.
Questions for discussion
- Should log queries be proxied through Dubbo Admin, or should the first version only generate Grafana dashboard URLs?
- Which log fields and Grafana variables are considered stable across current Dubbo Java and dubbogo deployments?
- Should the first version prioritize trace ID correlation, or also include resource/time-window correlation when trace IDs are unavailable?
Related project
This proposal corresponds to the OSPP project “增强Dubbo Admin的可观测能力”. The implementation would use Go for the backend and TypeScript for the frontend, with RISC-V64 compatibility included in the build verification.
- 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ó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
compiler-explorer/compiler-explorer#9738 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ 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ó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
evilmartians/lefthook#1674 ·
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