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

Provide raw counters metrics (#5735) #5802

Merged
merged 1 commit into from
Dec 17, 2019
Merged

Conversation

PierreZ
Copy link
Contributor

@PierreZ PierreZ commented Dec 5, 2019

(If this PR fixes a github issue, please add Fixes #<xyz>.)

Fixes #5735

Motivation

Add counter based metrics for topics.

Modifications

Added counter on AbstractTopics and propagate the result to the PrometheusHandler.

Verifying this change

Added a test

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

If yes was chosen, please highlight the changes

  • The rest endpoints

Documentation

  • Does this pull request introduce a new feature? (yes)
  • If yes, how is the feature documented? (yes)

category = CATEGORY_METRICS,
doc = "If true, export raw counter topic level metrics"
)
private boolean exposeCounterTopicMetricsInPrometheus = false;
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need this flag.

if exposeTopicLevelMetricsInPrometheus is true, we can expose this counter. there should be no penalty to do so.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree with your point of view

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, doing the modifications

@codelipenghui
Copy link
Contributor

run java8 tests
run integration tests

@codelipenghui
Copy link
Contributor

run cpp tests
run integration tests

@codelipenghui codelipenghui merged commit 9b55324 into apache:master Dec 17, 2019
@PierreZ
Copy link
Contributor Author

PierreZ commented Dec 18, 2019

Thanks!

sijie pushed a commit that referenced this pull request May 8, 2020
…pace/subscription/consumer. (#6918)

Fixes #6891
Rated to #5802
### Motivation

Add pulsar_out_bytes_total and pulsar_out_messages_total for namespace/subscription/consumer.

### Verifying this change

New unit test added.
jiazhai pushed a commit that referenced this pull request May 12, 2020
…pace/subscription/consumer. (#6918)

Fixes #6891
Rated to #5802

Add pulsar_out_bytes_total and pulsar_out_messages_total for namespace/subscription/consumer.

New unit test added.
(cherry picked from commit 204f327)
cdbartholomew pushed a commit to kafkaesque-io/pulsar that referenced this pull request May 23, 2020
…pace/subscription/consumer. (apache#6918)

Fixes apache#6891
Rated to apache#5802

Add pulsar_out_bytes_total and pulsar_out_messages_total for namespace/subscription/consumer.

New unit test added.
Huanli-Meng pushed a commit to Huanli-Meng/pulsar that referenced this pull request May 27, 2020
…pace/subscription/consumer. (apache#6918)

Fixes apache#6891
Rated to apache#5802
### Motivation

Add pulsar_out_bytes_total and pulsar_out_messages_total for namespace/subscription/consumer.

### Verifying this change

New unit test added.
addisonj pushed a commit to instructure/pulsar that referenced this pull request Jun 12, 2020
…pace/subscription/consumer. (apache#6918)

Fixes apache#6891
Rated to apache#5802

Add pulsar_out_bytes_total and pulsar_out_messages_total for namespace/subscription/consumer.

New unit test added.
(cherry picked from commit 204f327)
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
…pace/subscription/consumer. (apache#6918)

Fixes apache#6891
Rated to apache#5802
### Motivation

Add pulsar_out_bytes_total and pulsar_out_messages_total for namespace/subscription/consumer.

### Verifying this change

New unit test added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide raw counters metrics
3 participants