From b521fc871aac07ae2afad2c33a5fd821a35e9f7e Mon Sep 17 00:00:00 2001 From: Ivan De Marino Date: Sun, 7 Jan 2024 21:12:11 +0000 Subject: [PATCH] Fixed bug: missing newline between the _bespoke_ metrics and the Prometheus-crate based metrics --- src/http/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http/mod.rs b/src/http/mod.rs index aa5ea7c..45174cf 100644 --- a/src/http/mod.rs +++ b/src/http/mod.rs @@ -217,8 +217,8 @@ async fn prometheus_metrics(State(state): State) -> impl IntoR // TODO https://github.com/kafkesc/kommitted/issues/56 // TODO https://github.com/kafkesc/kommitted/issues/57 - // Turn the bespoke metrics created so far, into a String - let mut body = body.join("\n"); + // Turn the bespoke metrics created so far, into a single String + let mut body = body.join("\n") + "\n"; // Append to the bespoke metrics, classic Prometheus Metrics let metrics_family = state.metrics.gather();