Use /metrics route

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

No files matched your search

+1 -1
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)