Format
This commit is contained in:
parent
77e01776f5
commit
a9717d570d
5 changed files with 28 additions and 10 deletions
|
|
@ -58,7 +58,10 @@ pub async fn metrics_handler(handle: PrometheusHandle) -> impl IntoResponse {
|
|||
|
||||
match handle.render() {
|
||||
output if !output.is_empty() => (StatusCode::OK, output),
|
||||
_ => (StatusCode::INTERNAL_SERVER_ERROR, "Failed to render metrics".to_string()),
|
||||
_ => (
|
||||
StatusCode::INTERNAL_SERVER_ERROR,
|
||||
"Failed to render metrics".to_string(),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue