Skip to content

Metrics not showing in broker's metrics tab #1716

@elade9977

Description

@elade9977

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 want to view the metrics under broker's metric tabs. the loader is stuck with white page. I used the dev tools to get the endpoint of the metrics URL and ran it manually I get the json response of the metric. Same for using curl.
I used jmx_prometheus_javaagent-1.0.1.jar for the metrics.

curl -s -H "Cookie: SESSION=XXX" \
  http://localhost:8080/kafkaui/api/clusters/my_env/brokers/2/metrics | jq '.metrics | length'
6055

Expected behavior

Show all metrics in the UI

Your installation details

Version - v1.4.2
Kafka 4.0.0 (bitnami image)
Docker deployment with SSL and Auth login.
Client: Docker Engine - Community
Version: 29.2.1
API version: 1.53

Steps to reproduce

Deploy single broker as docker container with SSL in KRaft mode.
Deploy UI as docker container with SSL and connect broker to it.
All under the same network and using DNS.

Screenshots

No response

Logs

2026-03-09T17:57:17.372Z DEBUG 1 --- [     parallel-1] i.k.u.s.ClustersStatisticsScheduler      : Start getting metrics for kafkaCluster: my_env
2026-03-09T17:57:17.525Z DEBUG 1 --- [     parallel-1] i.k.u.s.m.s.i.InferredMetricsScraper     : 18 metric families inferred from cluster state
2026-03-09T17:57:17.528Z DEBUG 1 --- [     parallel-1] i.k.u.s.m.s.p.PrometheusMetricsRetriever : Retrieving metrics from prometheus endpoint: kfc-kafka:9991
2026-03-09T17:57:20.289Z DEBUG 1 --- [or-http-epoll-1] i.k.u.s.ClustersStatisticsScheduler      : Metrics updated for cluster: my_env

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions