redpanda-data / console

Redpanda Console is a developer-friendly UI for managing your Kafka/Redpanda workloads. Console gives you a simple, interactive approach for gaining visibility into your topics, masking data, managing consumer groups, and exploring real-time data with time-travel debugging.
https://redpanda.com
3.77k stars 346 forks source link

Add UI helpers for editing consumer group commits #346

Open rcrowe opened 2 years ago

rcrowe commented 2 years ago

A common use case I find myself doing is to change a consumer groups offset by a numeric amount, typically --shift-by 1 and I'd like Kowl to add support.

For example, say we see a corrupt message on a topic & need to bump a consumer past it, we would issue the following...

/opt/kafka/bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --group {group} --reset-offsets --shift-by 1 --topic {topic}:{partition} --execute
weeco commented 2 years ago

I think this is already possible given that you can edit the offset as you wish - and you also see the current index for the group right? So is it safe to assume that this request is just some sugar so that you don't need to lookup the previous offset (which might be existent in the edit group modal already, not sure) and then increment that index by 1 to set it as a new offset?

rcrowe commented 2 years ago

Thanks for the speedy reply @weeco

I think this is already possible given that you can edit the offset as you wish

I'm obviously doing something wrong or missing something obvious, but I can only edit an offset with the following & not as you wish?

I've clicked around and failing to find a place to manually change the offset in 1.5.0. Are you saying it's already possible to enter a value for an offset beyond the above options?

If there is indeed a way to manually change the offset to a specific value 🤞🏻 then this would indeed be syntatic sugar to allow a spinner to increase the offset #