Skip to content

Commit

Permalink
Fix Prometheus exposition format for metrics endpoint (#3107)
Browse files Browse the repository at this point in the history
Co-authored-by: Rick van Schijndel <Mindavi@users.noreply.github.com>
  • Loading branch information
zuckschwerdt and Mindavi authored Dec 2, 2024
1 parent a8582c3 commit 568b3ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/http_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ static void handle_openmetrics(struct mg_connection *nc, struct http_message *hm
mg_printf(nc,
"HTTP/1.1 200 OK\r\n"
"Content-Length: %u\r\n"
"Content-Type: text/plain; version=0.0.4; charset=utf-8\r\n"
"\r\n",
len);
mg_send(nc, buf, (size_t)len);
Expand Down

0 comments on commit 568b3ab

Please sign in to comment.