Skip to content

fix(admin): use the realtime metrics route - #398

Merged
houseme merged 1 commit into
mainfrom
overtrue/fix-admin-realtime-route
Nov 2, 2026
Merged

houseme merged 1 commit into
mainfrom
overtrue/fix-admin-realtime-route

Conversation

@overtrue

@overtrue overtrue commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Closes #388.

rc admin metrics sends requests to /rustfs/admin/v3/metrics, while RustFS serves realtime metrics at /rustfs/admin/v3/realtime. The wrong route produces a misleading NotImplemented response, including on the default command with no grouping flags.

Use /realtime and update the route assertions for the default command and the encoded filter/grouping query. Correct the internal response-type documentation as well.

Validation: the route regression failed before the fix. cargo fmt --all --check, cargo clippy --workspace -- -D warnings, cargo clippy --workspace --all-targets -- -D warnings, and cargo test --workspace pass with Rust 1.99.0 (1,953 passed; 2 existing ignored tests).

Signed-off-by: overtrue <anzhengchao@gmail.com>
@houseme
houseme merged commit 97f26d4 into main Nov 2, 2026
17 checks passed
@houseme
houseme deleted the overtrue/fix-admin-realtime-route branch November 2, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

admin metrics fails against RustFS 1.0.1 stable with 501 NotImplemented — wrong admin route (/metrics instead of /realtime)

2 participants