Skip to content

BE: Metrics: Response payload should end with an EOFΒ #1506

@AleCostaSF

Description

@AleCostaSF

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running main-labeled docker image and the issue still persists there
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/internalInternal app components. Will be excluded from the changelog.scope/backendRelated to backend changesstatus/triage/completedAutomatic triage completedtype/bugSomething isn't working

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions