kafka-ui icon indicating copy to clipboard operation
kafka-ui copied to clipboard

BE: Metrics: Response payload should end with an EOF

Open AleCostaSF opened this issue 2 weeks ago • 2 comments

Issue submitter TODO list

  • [x] I've looked up my issue in FAQ
  • [x] I've searched for an already existing issues here
  • [x] I've tried running main-labeled docker image and the issue still persists there
  • [x] I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

I am using Alloy to scrape metrics from the /metrics endpoint, but I keep getting this error:

data does not end with # EOF

I checked and the textfile returned from the endpoint is missing the final # EOF line, which is mandatory as far as I understood.

I have the same issue with Prometheus directly.

Expected behavior

The content returned by /metrics should end with # EOF

Your installation details

A Kubernetes deployment running ghcr.io/kafbat/kafka-ui:v1.4.2

Steps to reproduce

  1. Launch the Kafka UI
  2. Call the /metrics endpoint
  3. Check that the content is missing the final # EOF line

Screenshots

No response

Logs

No response

Additional context

To make sure this is the issue, I wrote a small proxy script running as sidecar that appends that line and everything works.

AleCostaSF avatar Nov 17 '25 14:11 AleCostaSF