Skip to content

Provide raw counters metrics (#5735) - #5802

Merged
codelipenghui merged 1 commit into
apache:masterfrom
PierreZ:dev/5735
Dec 17, 2019
Merged

Provide raw counters metrics (#5735)#5802
codelipenghui merged 1 commit into
apache:masterfrom
PierreZ:dev/5735

Conversation

@PierreZ

@PierreZ PierreZ commented Dec 5, 2019

Copy link
Copy Markdown
Contributor

(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)

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

run java8 tests
run integration tests

@codelipenghui

Copy link
Copy Markdown
Contributor

run cpp tests
run integration tests

@codelipenghui
codelipenghui merged commit 9b55324 into apache:master Dec 17, 2019
@PierreZ

PierreZ commented Dec 18, 2019

Copy link
Copy Markdown
Contributor Author

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