fix: /metrics endpoint is on admin port in both Go and Rust

Chris Lu
2026-03-09 19:53:19 -07:00
parent 3841444c99
commit 300d360f10
+1 -1
@@ -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 |