Skip to content

Commit

Permalink
Fixed bug: missing newline between the _bespoke_ metrics and the Prom…
Browse files Browse the repository at this point in the history
…etheus-crate based metrics
  • Loading branch information
detro committed Jan 7, 2024
1 parent 5d15508 commit b521fc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ async fn prometheus_metrics(State(state): State<HttpServiceState>) -> 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();
Expand Down

0 comments on commit b521fc8

Please sign in to comment.