Skip to content

Export Prometheus metric for messageTTL - #8871

Merged
sijie merged 7 commits into
apache:masterfrom
315157973:metric
Dec 11, 2020
Merged

sijie merged 7 commits into
apache:masterfrom
315157973:metric

Conversation

@315157973

Copy link
Copy Markdown
Contributor

Fixes #8573

Motivation

Some users who want to know how many messages are expired at what time? Currently, these metrics are too few, so that TTL looks like a black box, unobservable

Modifications

add totalMsgExpired、lastExpireTimestamp、msgRateExpired for Prometheus metric

Verifying this change

PrometheusMetricsTest.java

@315157973

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@315157973

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

# Conflicts:
#	pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/TopicStats.java
@315157973

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@sijie sijie added this to the 2.8.0 milestone Dec 10, 2020
@sijie
sijie merged commit 060e35b into apache:master Dec 11, 2020
@315157973
315157973 deleted the metric branch December 17, 2020 02:52
codelipenghui pushed a commit that referenced this pull request Jan 6, 2021
Fixes #8573

Some users who want to know how many messages are expired at what time? Currently, these metrics are too few, so that TTL looks like a black box, unobservable

add  `totalMsgExpired`、`lastExpireTimestamp`、`msgRateExpired` for Prometheus metric

PrometheusMetricsTest.java

(cherry picked from commit 060e35b)
codelipenghui pushed a commit that referenced this pull request Jan 7, 2021
Fixes #8573

Some users who want to know how many messages are expired at what time? Currently, these metrics are too few, so that TTL looks like a black box, unobservable

add  `totalMsgExpired`、`lastExpireTimestamp`、`msgRateExpired` for Prometheus metric

PrometheusMetricsTest.java

(cherry picked from commit 060e35b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export Prometheus metric for the number of messages that topic subscription skip through the TTL

3 participants