XINFO [CONSUMERS key groupname] [GROUPS key] [STREAM key] [HELP]

    Time complexity: O(N) with N being the number of returned items for the subcommands CONSUMERS and GROUPS. The STREAM subcommand is O(log N) with N being the number of items in the stream.

    This is an introspection command used in order to retrieve different information about the streams and associated consumer groups. Three forms are possible:

    In the above example you can see that the reported information are the number of elements of the stream, details about the radix tree representing the stream mostly useful for optimization and debugging tasks, the number of consumer groups associated with the stream, the last generated ID that may not be the same as the last entry ID in case some entry was deleted. Finally the full first and last entry in the stream are shown, in order to give some sense about what is the stream content.

    In this form we just get as output all the consumer groups associated with the stream:

    Finally it is possible to get the list of every consumer in a specific consumer group:

    We can see the idle time in milliseconds (last field) together with the consumer name and the number of pending messages for this specific consumer.

    Finally it is possible to get help from the command, in case the user can't remember the exact syntax, by using the subcommand: