diff --git a/lib/manageiq/messaging/kafka/client.rb b/lib/manageiq/messaging/kafka/client.rb index 77eccb5..2fcf948 100644 --- a/lib/manageiq/messaging/kafka/client.rb +++ b/lib/manageiq/messaging/kafka/client.rb @@ -69,6 +69,11 @@ def topics Rdkafka::Metadata.new(native_kafka).topics.collect { |topic| topic[:topic_name] } end + def metadata + native_kafka = producer.instance_variable_get(:@native_kafka) + Rdkafka::Admin.new(native_kafka).metadata + end + private attr_reader :kafka_client