Repository navigation
Conversation
hangc0276
requested review from
codelipenghui,
mattisonchao,
poorbarcode and
zymap
August 16, 2023 14:43
poorbarcode
approved these changes
Aug 16, 2023
Contributor
Author
|
@asafm Please help take a look this at this PR and it is related to metrics, thanks. |
lifepuzzlefun
approved these changes
Aug 19, 2023
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #21006 +/- ##
=============================================
+ Coverage 36.84% 67.28% +30.43%
- Complexity 12195 35854 +23659
=============================================
Files 1698 1921 +223
Lines 129852 175600 +45748
Branches 14161 23035 +8874
=============================================
+ Hits 47843 118148 +70305
+ Misses 75680 47827 -27853
- Partials 6329 9625 +3296
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Contributor
|
@hangc0276 It looks ok, aside from the fact that you don't have any test to validate it and protect from even being ruined :) |
|
The pr had no activity for 30 days, mark with Stale label. |
Preserve asynchronous metrics buffering and compression while reading dynamic export settings for each generation. Retain existing constructors and verify runtime updates through the metrics endpoint. Assisted-by: Codex
3 tasks done
lhotari
added a commit
that referenced
this pull request
Sep 14, 2026
Co-authored-by: Lari Hotari <[email protected]> (cherry picked from commit 91f690f)
lhotari
added a commit
that referenced
this pull request
Sep 14, 2026
Co-authored-by: Lari Hotari <[email protected]> (cherry picked from commit 91f690f)
lhotari
added a commit
that referenced
this pull request
Sep 14, 2026
…configuration test Fix the test introduced by 6224c44 ([improve][broker] Make exposing topic level metric dynamic, #21006), cherry-picked from 91f690f via branch-4.2 commit 3eb8ae0. Upstream and branch-4.2 create "my-property/my-ns" in BrokerTestBase.baseSetupCommon() following the V1 topic-name removal (#25304; branch-4.2 commit 735b429). Branch-4.0 retains the older setup, which creates "prop/ns-abc" but not "my-property/my-ns". The backported test used the newer setup's namespace and failed with Namespace not found. Use "prop/ns-abc" for its topic. Validation: testDynamicMetricsConfiguration passes.
Radiancebobo
pushed a commit
to Radiancebobo/pulsar
that referenced
this pull request
Oct 8, 2026
) Co-authored-by: Lari Hotari <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #xyz
Main Issue: #xyz
PIP: #xyz
Motivation
Exposing topic-level metrics costs a lot of CPU and memory for brokers and put heavy traffic pressure on Prometheus to pull metrics, especially when the Pulsar cluster has thousands of topics. To address this issue, we can disable the topic-level metrics by default and enable it when some topics encountered any issues.
However, the
exposeTopicLevelMetricsInPrometheusflag is not dynamic and we need to change the broker configuration and restart all the brokers to enable or disable the flag.We can make the
exposeTopicLevelMetricsInPrometheusflag dynamic to avoid restarting all the brokers when enabling or disabling the flagModifications
Make the following flags dynamic
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: