Kafka KRaft Metrics are Empty after Migration #11355
-
Hi, I followed KRaft migration docs and migration is completed $ k get pods | grep kafka
kafka-controller-3 1/1 Running 0 25m
kafka-controller-4 1/1 Running 0 23m
kafka-controller-5 1/1 Running 0 24m
kafka-entity-operator-5fc5f95d66-plcmg 2/2 Running 0 27d
kafka-kafka-0 1/1 Running 0 99m
kafka-kafka-1 1/1 Running 0 99m
kafka-kafka-2 1/1 Running 0 98m
kafka-kafka-exporter-85f7d595f9-rmnrt 1/1 Running 0 7m37s
$ k get kafka
NAME DESIRED KAFKA REPLICAS DESIRED ZK REPLICAS READY METADATA STATE WARNINGS
kafka 3 3 True KRaft True
$ k get kafkanodepool
NAME DESIRED REPLICAS ROLES NODEIDS
controller 3 ["controller"] [3,4,5]
kafka 3 ["broker"] [0,1,2] And used the grafana dashbaord from here, after migration, I expect see some metrics in KRaft dashboard The Kafka Dashboard is fine ✅ Is this expected? do I have wait for some time? Just wondering why issue before migrating on prod clusters |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I guess it depends how you are configuring metrics in the ConfigMap used for that. We provide example here https://github.com/strimzi/strimzi-kafka-operator/blob/main/examples/metrics/kafka-metrics.yaml#L200 to expose KRaft related metrics and they should work with the above Grafana dashboard. |
Beta Was this translation helpful? Give feedback.
I guess it depends how you are configuring metrics in the ConfigMap used for that. We provide example here https://github.com/strimzi/strimzi-kafka-operator/blob/main/examples/metrics/kafka-metrics.yaml#L200 to expose KRaft related metrics and they should work with the above Grafana dashboard.