lizhimins opened a new pull request, #2838:
URL: https://github.com/apache/rocketmq-dashboard/pull/2838
## Problem
- The metrics explorer defaulted to the first profile returned by
`MetricProfileService.listProfiles()`, which was the 4.x exporter template.
Deployments exposing 5.x native metrics showed "no data" for every default
panel.
- The cluster health overview only queried the single statically configured
name server, so registered open-source instances were missing from the
dashboard.
- The explorer could only show one metric at a time and had no ad-hoc query
entry.
## Changes
**Backend**
- Add `studio.metrics.prometheus.profile` (`PrometheusProperties`, default
`rocketmq5-native`); `listProfiles()` puts the configured default profile first.
- Fix the 5.x lag-latency mapping to the unit-suffixed metric name
`rocketmq_consumer_lag_latency_milliseconds` (OTel Prometheus export appends
units).
- Broker Health now reports node online state (`min(up{...})`) instead of
processor watermarks, which are constantly 0 on healthy low-traffic clusters;
watermark aggregation switched to `by (cluster, node_id)` to avoid series
explosion.
- Add Topic Count / Consumer Group Count panels (5.x template 7 -> 9), using
`max(...) by (cluster)` since counters are cluster-level values reported by
every broker.
- `RocketMQDashboardProvider` overview now aggregates all registered
APACHE-vendor instances; unreachable instances contribute a warning row instead
of failing the page; falls back to the static name server when no instance is
registered.
**Frontend**
- `MetricsExplorer` queries all metrics of the selected profile concurrently
in a responsive grid (one panel per metric), plus a custom PromQL query panel.
- Selected profile persisted to localStorage; charts cap legends at top-10
series by latest value; axis label/line sizing tuned for small panels.
## Tests
- `MetricProfileServiceTest` (12), `RocketMQDashboardProviderTest` (28),
`MetricsExplorer.test.tsx` (19) all green; full frontend suite 737 green; `tsc
--noEmit` and `npm run build` pass.
- Verified against a live 5.x deployment: default profile first, real data
on all panels, 24 topics / 15 groups counted.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]