kafka-ui
kafka-ui copied to clipboard
BE: Metrics: Response payload should end with an EOF
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
- Launch the Kafka UI
- Call the
/metricsendpoint - Check that the content is missing the final
# EOFline
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.