rename /metric endpoint to /prometheus

This commit is contained in:
Edward Shen 2021-07-15 15:54:26 -04:00
parent dc99437aec
commit 3e4260f6e1
Signed by: edward
GPG key ID: 19182661E818369F

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)] #[allow(clippy::future_not_send, clippy::unused_async)]
#[get("/metrics")] #[get("/prometheus")]
pub async fn metrics() -> impl Responder { pub async fn metrics() -> impl Responder {
let metric_families = prometheus::gather(); let metric_families = prometheus::gather();
let mut buffer = Vec::new(); let mut buffer = Vec::new();