mostafa/xk6-kafka

Kafka Admin Client Support for xk6-kafka

pandsaurus opened this issue · 1 comments

Hi,

Been trying out xk6-kafka as a way to test our consumer. Is there a chance that kafka admin client can be supported? This is so I could get and read the changes in offset of a consumer group. This will be our metrics to know how fast our consumer group can read the events under a certain period of time.

Our current implementation is having a different script(nodejs) utilizing https://kafka.js.org/docs/admin to fetch the consumer group offset while the test is running. It would be nice if admin client would be included in xk6-kafka so that there is no need to run two jobs everytime.

Hey @pandsaurus,

Some admin functionality are available via the Connection object, like creating, listing and deleting topics, however certain features, like the ones you requested, are not available (yet). I don't have any plans to add those at the moment, but I'd be happy to see contributions.