-
Notifications
You must be signed in to change notification settings - Fork 643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can i get a list of active consumers? #131
Comments
IMHO zookeeper is probably the eadiest place to get this. There are many If you perform a GetChildren query on /consumers you'll get the list of On Tue, 1 Dec 2015 at 20:54, Ivan Shumkov notifications@github.com wrote:
|
Ah, sorry… ZK won't give you that. 😊 |
Yep :(. Endpoint |
+1 for this endpoint |
Yeah, makes sense to me. Maybe we can add: GET /consumers Might also be helpful to have a way to query current offsets: GET /consumers/{groupId}/instances/{instanceId}/offsets |
@hachikuji Do we need to be careful about how we group these too under the resources? The current set of APIs under /consumers only support operations for consumers on the current instances, but that's because they are all mutating operations (e.g. create, delete, and reading from a topic is as well despite being a GET). In contrast, I might expect I'm not sure if mixing both under |
@ewencp I'm not sure I see any problem with having Now that I'm thinking about it, there seems to be two use cases here. In one case, the user wants to see the full list of instances in the group (e.g. to view the group's assignments and lag). In the other, the user wants to see only the instances hosted on the proxy in order to monitor the proxy itself (this seems to be @shumkov's use case). Given these cases, I would probably favor having |
@hachikuji Yeah, that's exactly what I was getting at. In retrospect, I probably would have preferred the cluster-wide version to be |
Was this ever implemented? I assume not as it's not in the docs. I think it would be useful, especially when used with generated consumer names. |
@joewood If you're referring to the ability to list all the consumers in the cluster, it hasn't been implemented yet. It'd probably fall under the admin API. There's a new Java AdminClient API that is coming soon in Apache Kafka which would probably be the best way to get this info, although I'm not sure when info about consumer groups will be exposed in it (it is part of KIP-4 which is a large, multi-stage effort). |
Hi, folks. |
you can check the number of consumers and some information about consumers. Information : |
Does anybody know how to use those kafka sh scripts with the remote bootstrap server? |
Firstly, thanks for this great product!
I have many instances of REST proxy and i want to monitor how many consumers has each instance. How can i do it?
The text was updated successfully, but these errors were encountered: