Metric to get oldest delay of any topic #26294
Replies: 1 comment
|
There is a metric for the age, but not usually a direct "oldest message timestamp" metric. For Prometheus-style broker metrics, look for: In the broker stats code this is populated from For autoscaling consumers, I would use it together with the subscription backlog count, for example: Decision rule:
Example PromQL shape: and combine that with: One caveat: this is an age/delay value, not the original publish timestamp. If you need the exact timestamp, derive it in Prometheus as roughly If that matches your queue-scaling use case, please mark this as answered so others looking for the backlog-age metric can find it. |
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
Is there any metric to get the timestamp or delay of the oldest message in a topic? I used pulsar v3.0 as a queue in my architecture so this is required to scale my consumers.
All reactions