GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [fix][broker] Add missing bundle Prometheus metrics for extensible load manager by Dream95 · Pull Request #26192 · apache/pulsar

Conversation

@Dream95

@Dream95 Dream95 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Fixes #23923

Main Issue: #xyz

PIP: #xyz

Motivation

exposeBundlesMetricsInPrometheus=true has no effect under ExtensibleLoadManagerImpl. Bundle metrics such as pulsar_bundle_topics_count are missing from the scrape output.
ModularLoadManagerImpl already publishes them.

Modifications

If exposeBundlesMetricsInPrometheus is enabled, ExtensibleLoadManagerImpl.getMetrics() now pulls
BrokerService#getBundleStats() and publishes the same brk_bundle_* metrics and labels that ModularLoadManagerImpl uses.

Verifying this change

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Dream95
[fix][broker] Add missing bundle Prometheus metrics for extensible lo…
b056d44
…ad manager

Signed-off-by: Dream95 <[email protected]>
@Technoboy-

Technoboy- commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

@Dream95 could you add a test?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Technoboy- Technoboy- assigned Dream95 Jul 15, 2026
@Technoboy- Technoboy- added release/4.0.9 release/4.2.4 labels Jul 15, 2026
@Dream95
[fix][test] Add test for extensible load manager bundle Prometheus me…
b747dbc
…trics

Signed-off-by: Dream95 <[email protected]>
@lhotari lhotari added release/4.2.5 and removed release/4.2.4 labels Jul 27, 2026
@Dream95

Dream95 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

@Technoboy- The test has been added already.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Technoboy-
Technoboy- approved these changes Aug 31, 2026
View reviewed changes
@Technoboy- Technoboy- closed this Aug 31, 2026
@Technoboy- Technoboy- reopened this Aug 31, 2026
@Technoboy- Technoboy- added this to the 5.0.0-M2 milestone Aug 31, 2026
@Technoboy-
Technoboy- merged commit 41255fb into apache:master Sep 1, 2026
44 checks passed

Uh oh!

There was an error while loading. Please reload this page.

lhotari pushed a commit that referenced this pull request Sep 2, 2026
@Dream95 @lhotari
[fix][broker] Add missing bundle Prometheus metrics for extensible lo…
9ef5d9d
…ad manager (#26192)

(cherry picked from commit 41255fb)
@lhotari lhotari added the cherry-picked/branch-4.2 label Sep 2, 2026
lhotari pushed a commit that referenced this pull request Sep 2, 2026
@Dream95 @lhotari
[fix][broker] Add missing bundle Prometheus metrics for extensible lo…
9e5e368
…ad manager (#26192)

(cherry picked from commit 41255fb)
@lhotari lhotari added the cherry-picked/branch-4.0 label Sep 2, 2026
lhotari added a commit that referenced this pull request Sep 12, 2026
@lhotari
[fix][test][branch-4.0] Use initialized namespace in extensible load …
79870c7
…manager metrics test

Fix the test introduced by 9e5e368
([fix][broker] Add missing bundle Prometheus metrics for extensible load
manager, #26192), cherry-picked from
41255fb.

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 metrics test used the newer setup's namespace and failed
with Namespace not found. Use "prop/ns-abc" for its producer and consumer.

Validation: testBundlesMetricsWithExtensibleLoadManager passes;
Checkstyle passes.
Radiancebobo pushed a commit to Radiancebobo/pulsar that referenced this pull request Oct 8, 2026
@Dream95 hechengbo
[fix][broker] Add missing bundle Prometheus metrics for extensible lo…
a11e6b2
…ad manager (apache#26192)
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Nov 6, 2026
@Dream95 @nodece
[fix][broker] Add missing bundle Prometheus metrics for extensible lo…
a28dcdb
…ad manager (apache#26192)

(cherry picked from commit 41255fb)
nodece added a commit to ascentstream/pulsar that referenced this pull request Nov 6, 2026
@nodece
fix: create tenant/namespace in apache#26192 bundles-metrics test (fo…
d7cc496
…rk test base does not pre-provision them)
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Nov 16, 2026
@Dream95 @nodece
[fix][broker] Add missing bundle Prometheus metrics for extensible lo…
147c71e
…ad manager (apache#26192)

(cherry picked from commit 41255fb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Technoboy- Technoboy- Technoboy- approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@Dream95 Dream95

Labels

cherry-picked/branch-4.0 cherry-picked/branch-4.2 release/4.0.9 release/4.2.5

Projects

None yet

Milestone

5.0.0-M2

Development

Successfully merging this pull request may close these issues.

[Bug] Bundle metrics gone under ExtensibleLoadManager

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Dream95 @Technoboy- @lhotari
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.