Skip to content

Improve fluvio topic describe with additional information #3968

@ajhunyady

Description

@ajhunyady

The current fluvio topic describe has been built 3 years ago and it's stale.

We should update this command with the following information:

$ fluvio topic describe my-topic
Name         : my-topic
Replication  : 1
Partitions   : 2 
State        : Provisioned

PARTITION    LEADER   LAST-OFFSET    LAST-PRODUCED   CONSUMERS
0            5001       3,543          1 sec ago       c1, c2
1            5002       1,240          5 sec ago       c3

Note

Let's start with the client approach, as calculating and adding a PartitionStatus object on the SC is a bigger effort.

  • To get last offset, use LEO (Last End Offset).
  • To get last produced, get last event and get timestamp of the event. This could be done in the client (easier) or can be
  • To get consumers, use fluvio consumer list as guidance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIgood first issueGood for newcomershelp wantedGood issue for community involvementno-staleOpt-out of closing issue due to no activity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions