Use /metrics route

This commit is contained in:
jude
2023-10-22 10:39:12 +01:00
parent 48b50f783d
commit 4c17286614
3 changed files with 4 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ pub fn init_metrics() {
}
pub async fn serve() {
let app = Router::new().route("/", get(metrics));
let app = Router::new().route("/metrics", get(metrics));
let addr = SocketAddr::from(([127, 0, 0, 1], 31755));
axum::Server::bind(&addr)