Repository navigation
[broker][monitoring] add per-subscription EntryFilter metrics - #16932
Conversation
michaeljmarshall
left a comment
There was a problem hiding this comment.
Looks good. I think there might need to be some minor clean up before we can merge it though.
Thank you @tjiuming for working on this!
michaeljmarshall
left a comment
There was a problem hiding this comment.
@tjiuming - all of the logic looks correct to me. I have some minor comments about method and variable names that I think we should update or discuss before merging this. Let me know what you think. Thanks!
michaeljmarshall
left a comment
There was a problem hiding this comment.
@tjiuming - I have one last request for changes before we merge this. I want to make sure the stat names exposed via the admin api match the prometheus metric names as closely as possible. Thanks again for working on this!
|
@michaeljmarshall many thanks for you review! I've resolved all the suggestions, PTAL |
|
@tjiuming - thanks! Do you feel strongly about keeping |
it makes sense, and I've resolved them |
|
Thanks @tjiuming! Great work! |
* add Subscription level EntryFilter stats * Fix Checkstyle * add entryfilter stats admin-api test * review fix * review fix * review fix * review fix * review fix Fixes #16596 ### Motivation add per-subscription `EntryFilter` metrics for PersistentTopic and NonPersistentTopic. ### Modifications Add the following metrics to Prometheus: 1. pulsar_subscription_filter_processed_msg_count 2. pulsar_subscription_filter_accepted_msg_count 3. pulsar_subscription_filter_rejected_msg_count 4. pulsar_subscription_filter_rescheduled_msg_count Add the following metrics to admin-api: 1. filterProcessedMsgCount 2. filterAcceptedMsgCount 3. filterRejectedMsgCount 4. filterRescheduledMsgCount ### Documentation Check the box below or label this PR directly. Need to update docs? - [x] `doc-required` (Your PR needs to update docs and you will update later) - [ ] `doc-not-needed` (Please explain why) - [ ] `doc` (Your PR contains doc changes) - [ ] `doc-complete` (Docs have been already added)
…#16932) * add Subscription level EntryFilter stats * Fix Checkstyle * add entryfilter stats admin-api test * review fix * review fix * review fix * review fix * review fix Fixes apache#16596 ### Motivation add per-subscription `EntryFilter` metrics for PersistentTopic and NonPersistentTopic. ### Modifications Add the following metrics to Prometheus: 1. pulsar_subscription_filter_processed_msg_count 2. pulsar_subscription_filter_accepted_msg_count 3. pulsar_subscription_filter_rejected_msg_count 4. pulsar_subscription_filter_rescheduled_msg_count Add the following metrics to admin-api: 1. filterProcessedMsgCount 2. filterAcceptedMsgCount 3. filterRejectedMsgCount 4. filterRescheduledMsgCount ### Documentation Check the box below or label this PR directly. Need to update docs? - [x] `doc-required` (Your PR needs to update docs and you will update later) - [ ] `doc-not-needed` (Please explain why) - [ ] `doc` (Your PR contains doc changes) - [ ] `doc-complete` (Docs have been already added)
…#16932) * add Subscription level EntryFilter stats * Fix Checkstyle * add entryfilter stats admin-api test * review fix * review fix * review fix * review fix * review fix Fixes apache#16596 add per-subscription `EntryFilter` metrics for PersistentTopic and NonPersistentTopic. Add the following metrics to Prometheus: 1. pulsar_subscription_filter_processed_msg_count 2. pulsar_subscription_filter_accepted_msg_count 3. pulsar_subscription_filter_rejected_msg_count 4. pulsar_subscription_filter_rescheduled_msg_count Add the following metrics to admin-api: 1. filterProcessedMsgCount 2. filterAcceptedMsgCount 3. filterRejectedMsgCount 4. filterRescheduledMsgCount Check the box below or label this PR directly. Need to update docs? - [x] `doc-required` (Your PR needs to update docs and you will update later) - [ ] `doc-not-needed` (Please explain why) - [ ] `doc` (Your PR contains doc changes) - [ ] `doc-complete` (Docs have been already added) (cherry picked from commit c1c3c86)
* update doc. * update doc. ### Motivation fix doc of #16932. ### Documentation Check the box below or label this PR directly. Need to update docs? - [ ] `doc-required` (Your PR needs to update docs and you will update later) - [ ] `doc-not-needed` (Please explain why) - [x] `doc` (Your PR contains doc changes) - [ ] `doc-complete` (Docs have been already added)
Fixes #16596
Motivation
add per-subscription
EntryFiltermetrics for PersistentTopic and NonPersistentTopic.Modifications
Add the following metrics to Prometheus:
Add the following metrics to admin-api:
Documentation
Check the box below or label this PR directly.
Need to update docs?
doc-required(Your PR needs to update docs and you will update later)
doc-not-needed(Please explain why)
doc(Your PR contains doc changes)
doc-complete(Docs have been already added)