rename /metric endpoint to /prometheus

master
Edward Shen 2021-07-15 15:54:26 -04:00
parent dc99437aec
commit 3e4260f6e1
Signed by: edward
GPG Key ID: 19182661E818369F
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ pub async fn default(state: Data<RwLockServerState>, req: HttpRequest) -> impl R
}
#[allow(clippy::future_not_send, clippy::unused_async)]
#[get("/metrics")]
#[get("/prometheus")]
pub async fn metrics() -> impl Responder {
let metric_families = prometheus::gather();
let mut buffer = Vec::new();