Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pulsar_subscription_consumers_count metric #15042

Merged
merged 2 commits into from
Apr 19, 2022

Conversation

cbornet
Copy link
Contributor

@cbornet cbornet commented Apr 6, 2022

Fixes #15032

Modifications

Added metric pulsar_subscription_consumers_count

Verifying this change

  • Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:

Run PrometheusMetricsTest::testNonPersistentSubMetrics

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

no

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API: (yes / no)
  • The schema: (yes / no / don't know)
  • The default values of configurations: (yes / no)
  • The wire protocol: (yes / no)
  • The rest endpoints: (yes / no)
  • The admin cli options: (yes / no)
  • Anything that affects deployment: (yes / no / don't know)

Documentation

Check the box below or label this PR directly (if you have committer privilege).

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

There are other undocumented subscription metrics. Should document all of them in another PR ?

  • doc

    (If this PR contains doc changes)

@cbornet
Copy link
Contributor Author

cbornet commented Apr 6, 2022

Alternative PR to #15041 for discussion.

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Apr 6, 2022
Copy link
Contributor

@nicoloboschi nicoloboschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@cbornet
Copy link
Contributor Author

cbornet commented Apr 6, 2022

Had to do a fix for when consumer metrics are not enabled. Can you review again ?

Copy link
Contributor

@HQebupt HQebupt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codelipenghui codelipenghui merged commit 789fa50 into apache:master Apr 19, 2022
@codelipenghui codelipenghui modified the milestones: 2.10.0, 2.11.0 Apr 19, 2022
Nicklee007 pushed a commit to Nicklee007/pulsar that referenced this pull request Apr 20, 2022
Fixes apache#15032

### Modifications

Added metric `pulsar_subscription_consumers_count`
@cbornet cbornet deleted the metrics-subs-consumers branch April 20, 2022 08:14
@Anonymitaet Anonymitaet added doc-required Your PR changes impact docs and you will update later. and removed doc-not-needed Your PR changes do not impact docs labels Apr 25, 2022
@Anonymitaet
Copy link
Member

ping @momo-jun for providing help on docs

@momo-jun
Copy link
Contributor

Hi @cbornet, will you like to submit a follow-up PR to add docs? Let us know your plan or any other assistance you need.

nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Apr 28, 2022
Fixes apache#15032

### Modifications

Added metric `pulsar_subscription_consumers_count`

(cherry picked from commit 789fa50)
@momo-jun
Copy link
Contributor

Doc status update

@cbornet will submit a PR to add docs soon.

@Anonymitaet Anonymitaet added doc-complete Your PR changes impact docs and the related docs have been already added. and removed doc-required Your PR changes impact docs and you will update later. labels Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-complete Your PR changes impact docs and the related docs have been already added.
Projects
None yet
8 participants