Add more Prometheus metrics for memory and Tokio tasks (#5282)

* Add more Prometheus metrics for memory and Tokio tasks

* pr comments
This commit is contained in:
aecsocket
2026-02-03 19:05:34 +00:00
committed by GitHub
parent ab753a82bc
commit 5d6593a9da
5 changed files with 171 additions and 85 deletions

View File

@@ -206,9 +206,8 @@ async fn app() -> std::io::Result<()> {
.await
.expect("Failed to register redis metrics");
#[cfg(target_os = "linux")]
labrinth::routes::debug::jemalloc_memory_stats(&prometheus.registry)
.expect("Failed to register jemalloc metrics");
labrinth::routes::debug::register_and_set_metrics(&prometheus.registry)
.expect("Failed to register debug metrics");
let labrinth_config = labrinth::app_setup(
pool.clone(),