You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by te...@apache.org on 2022/08/08 09:24:26 UTC

[pulsar] 10/11: [doc][broker][monitoring] Add doc for per-subscription EntryFilter metrics (#16976)

This is an automated email from the ASF dual-hosted git repository.

technoboy pushed a commit to branch branch-2.11
in repository https://gitbox.apache.org/repos/asf/pulsar.git

commit 87ec71771cc7c759869191cae6084782ee615fe2
Author: Tao Jiuming <95...@users.noreply.github.com>
AuthorDate: Mon Aug 8 17:10:46 2022 +0800

    [doc][broker][monitoring] Add doc for per-subscription EntryFilter metrics (#16976)
---
 site2/docs/admin-api-topics.md  | 14 +++++++++++++-
 site2/docs/reference-metrics.md |  4 ++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/site2/docs/admin-api-topics.md b/site2/docs/admin-api-topics.md
index 883160103ca..78574400e04 100644
--- a/site2/docs/admin-api-topics.md
+++ b/site2/docs/admin-api-topics.md
@@ -413,7 +413,15 @@ You can check the following statistics of a given non-partitioned topic.
 
           -   **nonContiguousDeletedMessagesRanges**: The number of non-contiguous deleted messages ranges.
 
-          -   **nonContiguousDeletedMessagesRangesSerializedSize**: The serialized size of non-contiguous deleted messages ranges. 
+          -   **nonContiguousDeletedMessagesRangesSerializedSize**: The serialized size of non-contiguous deleted messages ranges.
+              
+          -   **throughEntryFilterMsgs**: The number of messages passes through `EntryFilter`.
+              
+          -   **entryFilterAccepted**: The number of messages accepted by `EntryFilter`.
+              
+          -   **entryFilterRejected**: The number of messages rejected by `EntryFilter`.
+              
+          -   **entryFilterRescheduled**: The number of messages rescheduled by `EntryFilter`.
 
           -   **consumers**: The list of connected consumers for this subscription.
 
@@ -538,6 +546,10 @@ The following is an example of a topic status.
       "lastConsumedTimestamp" : 1623230583946,
       "lastAckedTimestamp" : 1623230584033,
       "lastMarkDeleteAdvancedTimestamp" : 1623230584033,
+      "throughEntryFilterMsgs": 100,
+      "entryFilterAccepted": 100,
+      "entryFilterRejected": 0,
+      "entryFilterRescheduled": 0,
       "consumers" : [ {
         "msgRateOut" : 0.0,
         "msgThroughputOut" : 0.0,
diff --git a/site2/docs/reference-metrics.md b/site2/docs/reference-metrics.md
index d9f82f2690b..91df1b88f3a 100644
--- a/site2/docs/reference-metrics.md
+++ b/site2/docs/reference-metrics.md
@@ -444,6 +444,10 @@ All the subscription metrics are labelled with the following labels:
 | 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. |
+| pulsar_subscription_through_filter_msg_count | Counter | The number of messages passes through `EntryFilter`. |
+| pulsar_subscription_filter_accepted_msg_count | Counter | The number of messages accepted by `EntryFilter`. |
+| pulsar_subscription_filter_rejected_msg_count | Counter | The number of messages rejected by `EntryFilter`. |
+| pulsar_subscription_filter_rescheduled_msg_count | Counter | The number of messages rescheduled by `EntryFilter`. |
 
 ### Consumer metrics