This is an automated email from the ASF dual-hosted git repository.
liuyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 5dc81b96ed8 [improve][doc] Add some missing subscription metrics doc
5dc81b96ed8 is described below
commit 5dc81b96ed81eb594c329f9fa781a9ae0c2a710f
Author: Christophe Bornet <[email protected]>
AuthorDate: Thu Jul 28 03:57:37 2022 +0200
[improve][doc] Add some missing subscription metrics doc
---
.../pulsar/common/policies/data/stats/SubscriptionStatsImpl.java | 2 +-
site2/docs/reference-metrics.md | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git
a/pulsar-common/src/main/java/org/apache/pulsar/common/policies/data/stats/SubscriptionStatsImpl.java
b/pulsar-common/src/main/java/org/apache/pulsar/common/policies/data/stats/SubscriptionStatsImpl.java
index 6a049522da4..cd163d84823 100644
---
a/pulsar-common/src/main/java/org/apache/pulsar/common/policies/data/stats/SubscriptionStatsImpl.java
+++
b/pulsar-common/src/main/java/org/apache/pulsar/common/policies/data/stats/SubscriptionStatsImpl.java
@@ -104,7 +104,7 @@ public class SubscriptionStatsImpl implements
SubscriptionStats {
/** Last acked message timestamp. */
public long lastAckedTimestamp;
- /** Last MarkDelete position advanced timesetamp. */
+ /** Last MarkDelete position advanced timestamp. */
public long lastMarkDeleteAdvancedTimestamp;
/** List of connected consumers on this subscription w/ their stats. */
diff --git a/site2/docs/reference-metrics.md b/site2/docs/reference-metrics.md
index 8e6078375c3..d9f82f2690b 100644
--- a/site2/docs/reference-metrics.md
+++ b/site2/docs/reference-metrics.md
@@ -435,6 +435,15 @@ All the subscription metrics are labelled with the
following labels:
| pulsar_subscription_msg_rate_out | Gauge | The total message dispatch rate
for a subscription (message per second). |
| pulsar_subscription_msg_throughput_out | Gauge | The total message dispatch
throughput for a subscription (byte per second). |
| pulsar_subscription_msg_ack_rate | Gauge | The total message acknowledgment
rate for a subscription (message per second). |
+| pulsar_subscription_last_expire_timestamp | Gauge | The expiration timestamp
of the last message on the subscription. |
+| pulsar_subscription_last_acked_timestamp | Gauge | The timestamp of the last
acknowledged message on the subscription. |
+| pulsar_subscription_last_consumed_flow_timestamp | Gauge | The timestamp of
the last received consume flow command on the subscription. |
+| pulsar_subscription_last_consumed_timestamp | Gauge | The timestamp of the
last consumed message on the subscription. |
+| pulsar_subscription_last_mark_delete_advanced_timestamp | Gauge | The
advanced timestamp of the last MarkDelete position on the subscription. |
+| pulsar_subscription_msg_rate_expired | Gauge | The total rate of messages
expired on this subscription (message per second). |
+| pulsar_subscription_total_msg_expired | Gauge | The total number of messages
expired on this subscription. |
+| pulsar_subscription_msg_drop_rate | Gauge | The rate of messages dropped on
this subscription (message per second). |
+| pulsar_subscription_consumers_count | Gauge | The number of connected
consumers on this subscription. |
### Consumer metrics