Skip to content

[Enhancement] Add metric for last delayed message timestamp #25267

@Dream95

Description

@Dream95

Search before reporting

  • I searched in the issues and found nothing similar.

Motivation

Without knowing when the last delayed message is scheduled to be delivered, we cannot easily:

  1. Monitor how far in the future delayed messages extend (e.g. "last message is 7 days from now")
  2. Alert when delayed messages are scheduled too far ahead (e.g. misconfigured producers)
  3. Debug delayed delivery issues (e.g. why consumers are not receiving messages yet)
  4. Plan capacity (e.g. understanding the time range of pending delayed messages)

Solution

Add a new metric: the delivery timestamp of the last delayed message .
Name: lastDelayedMessageTimestamp

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions