Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Prometheus metric for messageTTL #8871

Merged
merged 7 commits into from Dec 11, 2020
Merged

Conversation

315157973
Copy link
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 totalMsgExpiredlastExpireTimestampmsgRateExpired for Prometheus metric

Verifying this change

PrometheusMetricsTest.java

@315157973
Copy link
Contributor Author

/pulsarbot run-failure-checks

@315157973
Copy link
Contributor Author

/pulsarbot run-failure-checks

# Conflicts:
#	pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/TopicStats.java
@315157973
Copy link
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