btlqql opened a new issue, #2174: URL: https://github.com/apache/rocketmq-dashboard/issues/2174
### What happened? The metrics query validator accepts duration steps that Prometheus rejects, including units in ascending order (`1s1h`), repeated units (`1m1m`), and fractional suffixed durations (`1.5h`). The local parser sums every matched part, so these values pass validation and only fail later at the configured Prometheus/Thanos endpoint. ### Expected behavior Validate duration steps with Prometheus's duration grammar before issuing the query: integer duration parts, units ordered from longest to shortest, and each unit appearing at most once. Bare numeric steps should continue to represent seconds. ### Reproduction Submit a range metrics query with `step` set to `1s1h` or `1m1m`. The backend accepts the request even though the downstream query API rejects the step syntax. -- 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]
