Skip to content

Add metrics for the skipped entries count #14507

Closed

Description

@codelipenghui

Is your enhancement request related to a problem? Please describe.
Pulsar uses a marker approach to achieve the replicated subscription https://github.com/apache/pulsar/wiki/PIP-33%3A-Replicated-subscriptions or transaction buffer. For the messages dispatching, we should filter out the markers.
But currently, we don't have any metrics or stats to indicate how many entries are filtered, this will confuse users there are backlogs for a subscription, but can't receive messages from the topic.

Describe the solution you'd like
Add skip entries count in the subscription stats under the topics stats, so that users can get the information from pulsar-admin topics stats

Details for entries filter:

public int filterEntriesForConsumer(Optional<EntryWrapper[]> entryWrapper, int entryWrapperOffset,

Activity

  1. added
    type/enhancement
    on Mar 1, 2022
  2. added this to the 2.11.0 milestone on Mar 1, 2022
  3. tjiuming commented on Mar 1, 2022

    @tjiuming
    Contributor

    @codelipenghui assign to me please

  4. vkuznecovas commented on Mar 2, 2022

    @vkuznecovas

    Could this also be exported as a prometheus metric please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

help wantedtype/enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions