zmuxuny opened a new issue, #6747: URL: https://github.com/apache/rocketmq-dashboard/issues/6747
### Before Creating the Bug Report - [x] I have searched the [open issues](https://github.com/apache/rocketmq-dashboard/issues) of this repository and believe that this is not a duplicate. - [x] This is a defect in RocketMQ Studio, not a usage question and not a defect in another Apache RocketMQ repository. - [x] I can reproduce this on the current `master` branch, or I have stated the exact version I am running below. ### Studio Version rocketmq-studio a92c23144408cdf5729707050e9ecd9b75f1bad0 ### Runtime Environment Linux, Node24.19.0, Vitest/jsdom; real MetricsExplorer component with synthetic metric API responses. ### Connected RocketMQ Cluster No live cluster required. Prometheus-compatible scalar response. ### Build Toolchain _No response_ ### Describe the Bug MetricsExplorer drops explicit unavailable samples before drawing one polyline for an entire series, inventing continuity across gaps. A series with only one valid sample draws a one-vertex polyline, which has no visible stroke, despite its nonzero legend and visible-series count. ### Steps to Reproduce 1. Query a series with values [10,11,"NaN",12,13] at 30-second intervals. 2. Inspect the chart across the middle timestamp. 3. Separately query a series with one valid value 42. ### What Did You Expect to See? Preserve the explicit unavailable interval by drawing separate valid runs, and paint isolated valid samples as visible points. ### What Did You See Instead? The first series draws one continuous polyline across NaN. The singleton produces one coordinate and no visible marker, while its legend says 42 messages/s. Two real-component regression tests fail on untouched production code. ### Additional Context Sources: MetricsExplorer.tsx around127–149/237–248; metricsExplorerDiagnostics.ts173–186. Prometheus permits NaN strings: https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats . SVG polyline/path rules: https://www.w3.org/TR/SVG/shapes.html#PolylineElement and https://www.w3.org/TR/SVG/painting.html#StrokeProperty . All-state issue/PR search for metrics NaN/gap/interpolation/single sample found no equivalent. #6137 handles separate MiniBar/MiniLine sanitization; #4358 distinguishes histogram/scalar data. This report combines related missing-sample rendering cases as one coherent fix. ### Are You Willing to Submit a Pull Request? - [x] Yes, I am willing to submit a pull request. -- 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]
