X-LightYear opened a new issue, #7280:
URL: https://github.com/apache/rocketmq-dashboard/issues/7280
## Problem
The REST API exposes `POST
/api/metrics/query/datasource?key={dataSourceKey}` and `GET
/api/metrics/profiles`, but `docs/api-spec.md` does not list these endpoints in
the interface index or describe the configured data-source query contract.
## Reproduction
1. Open
`server/src/main/java/org/apache/rocketmq/studio/cluster/metrics/MetricsController.java`.
2. Observe the `profiles` endpoint and the `query/datasource` endpoint.
3. Compare them with the Metrics section and interface index in
`docs/api-spec.md`.
## Expected behavior
The API specification should document the public metrics endpoints,
including the `key` query parameter, request body, response shape, and relevant
error statuses for configured data-source queries.
## Actual behavior
The specification documents only `POST /api/metrics/query`; consumers
reading the API spec cannot discover or correctly call the configured
data-source endpoint.
## Scope
This is a documentation-only contract correction. Runtime behavior is
unchanged.
--
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]