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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user