This commit is contained in:
Andras Schmelczer 2026-02-07 19:19:17 +00:00
parent 77e01776f5
commit a9717d570d
5 changed files with 28 additions and 10 deletions

View file

@ -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(),
),
}
}