From 300d360f10cc971f2f336ea54e886fb4cae43429 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 9 Mar 2026 19:53:19 -0700 Subject: [PATCH] fix: /metrics endpoint is on admin port in both Go and Rust --- Rust-Volume-Server.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rust-Volume-Server.md b/Rust-Volume-Server.md index 3674535..d288685 100644 --- a/Rust-Volume-Server.md +++ b/Rust-Volume-Server.md @@ -172,7 +172,7 @@ The `redb` backend is Rust-only. It provides crash-safe disk-backed needle maps |----------|------|------|-------| | Profiling | Go pprof on debug port | Rust pprof (prost-codec) on debug port | Same `/debug/pprof` endpoint, different profiler | | Prometheus metrics | Go client library | Rust `prometheus` crate | Same metric names and label patterns | -| `/metrics` endpoint | On main port | On admin (debug) port | Different port binding | +| `/metrics` endpoint | On admin/metrics port | On admin (debug) port | Both serve on admin port, not the main volume port | | Disk monitoring | `sysinfo` package | `sysinfo` crate + `libc` | | | Volume preallocation | `fallocate` on Linux | `fallocate` on Linux via `libc` | Identical behavior | | Write batching | Synchronous per-request | Async batched write queue (128 batch, mpsc) | Rust batches concurrent writes for higher throughput |