rename /metric endpoint to /prometheus
This commit is contained in:
parent
dc99437aec
commit
3e4260f6e1
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue