Skip to content

Add metrics for the cursor ack state #9535

Closed

Description

@codelipenghui

Is your enhancement request related to a problem? Please describe.

The acknowledgment state is persistent to the Ledger or Zookeeper(can't persistent to the Ledger). But currently, we don't have any metrics for the persistence of the acknowledgment state such as the total count of the success/failed persistent operations.

Describe the solution you'd like
Add metrics for the ManagedCursor:

brk_ml_cursor_persistence_count(ml_name="", cursor_name="", persistent_type:"ledger/zookeeper")

And we should provide a way to enable or disable the per cursor metrics since if enabled the cursor metrics, this will generate many metrics.

exposeCursorMetricsInPrometheus=true (since the topic level metrics exposed by default, we can keep consistent with the topic level metrics)

Activity

  1. added
    type/enhancement
    on Feb 9, 2021
  2. limingnihao commented on Feb 9, 2021

    @limingnihao
    Contributor

    I will fix this issue, please assign it to me.

  3. added a commit that references this issue on Feb 22, 2021
    99a907b
  4. added a commit that references this issue on Feb 25, 2021
    0f02424
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions