-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Metrics] Add support for splitting topic and partition label in Prometheus #12225
Merged
merlimat
merged 2 commits into
apache:master
from
codelipenghui:penghui/split-topic-partition-label
Sep 30, 2021
Merged
[Metrics] Add support for splitting topic and partition label in Prometheus #12225
merlimat
merged 2 commits into
apache:master
from
codelipenghui:penghui/split-topic-partition-label
Sep 30, 2021
Conversation
This file contains 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
…etheus Fix: apache#11432 Currently, we are only expose the partition name for the topic label in Prometheus metrics, which is difficult to have an aggregated metrics for a partitioned topic. Before this change, we can only get (topic=xxx-partition-0) in the metrics. After this change, we can get 2 labels (topic=xxx, partition=0). By default, the broker expose the single tag for topic. It need to change `splitTopicAndPartitionLabelInPrometheus=true` in the broker.conf New tests added.
codelipenghui
added
type/enhancement
The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
release/2.8.2
labels
Sep 28, 2021
codelipenghui
requested review from
hangc0276,
sijie,
315157973,
merlimat and
eolivelli
September 28, 2021 11:26
Technoboy-
approved these changes
Sep 28, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
hangc0276
approved these changes
Sep 29, 2021
merlimat
approved these changes
Sep 30, 2021
codelipenghui
added a commit
that referenced
this pull request
Oct 6, 2021
…etheus (#12225) * [Metrics] Add support for splitting topic and partition label in Prometheus Fix: #11432 Currently, we are only expose the partition name for the topic label in Prometheus metrics, which is difficult to have an aggregated metrics for a partitioned topic. Before this change, we can only get (topic=xxx-partition-0) in the metrics. After this change, we can get 2 labels (topic=xxx, partition=0). By default, the broker expose the single tag for topic. It need to change `splitTopicAndPartitionLabelInPrometheus=true` in the broker.conf New tests added. * Fix checkstyle. (cherry picked from commit 039079e)
nicoloboschi
pushed a commit
to datastax/pulsar
that referenced
this pull request
Jan 25, 2022
…etheus (apache#12225) * [Metrics] Add support for splitting topic and partition label in Prometheus Fix: apache#11432 Currently, we are only expose the partition name for the topic label in Prometheus metrics, which is difficult to have an aggregated metrics for a partitioned topic. Before this change, we can only get (topic=xxx-partition-0) in the metrics. After this change, we can get 2 labels (topic=xxx, partition=0). By default, the broker expose the single tag for topic. It need to change `splitTopicAndPartitionLabelInPrometheus=true` in the broker.conf New tests added. * Fix checkstyle. (cherry picked from commit 039079e) (cherry picked from commit 5fad80c)
bharanic-dev
pushed a commit
to bharanic-dev/pulsar
that referenced
this pull request
Mar 18, 2022
…etheus (apache#12225) * [Metrics] Add support for splitting topic and partition label in Prometheus Fix: apache#11432 Currently, we are only expose the partition name for the topic label in Prometheus metrics, which is difficult to have an aggregated metrics for a partitioned topic. Before this change, we can only get (topic=xxx-partition-0) in the metrics. After this change, we can get 2 labels (topic=xxx, partition=0). By default, the broker expose the single tag for topic. It need to change `splitTopicAndPartitionLabelInPrometheus=true` in the broker.conf New tests added. * Fix checkstyle.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cherry-picked/branch-2.8
Archived: 2.8 is end of life
release/2.8.2
release/2.9.0
type/enhancement
The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
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.
Fix: #11432
Currently, we are only exposing the partition name for the topic label in Prometheus metrics, which is difficult to
have an aggregated metrics for a partitioned topic.
Before this change, we can only get (topic=xxx-partition-0) in the metrics. After this change, we can get 2 labels (topic=xxx, partition=0).
By default, the broker exposes the single tag for the topic. It need to change
splitTopicAndPartitionLabelInPrometheus=true
in the broker.confNew tests added.