-
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
[monitor][txn] Add metrics for transaction #15140
Conversation
…tx_metrics � Conflicts: � pulsar-broker/src/main/java/org/apache/pulsar/broker/transaction/buffer/impl/TransactionBufferClientImpl.java � pulsar-broker/src/test/java/org/apache/pulsar/broker/transaction/buffer/TransactionBufferClientTest.java
Tests to be completed |
@tjiuming:Thanks for your contribution. For this PR, do we need to update docs? |
@tjiuming:Thanks for providing doc info! |
@momo-jun a soft reminder: here is a PR w/ doc-required label, could u pls follow up? Thanks |
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.
Good work! as the seem as tb, we should add tp stats
pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/TopicStats.java
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/TopicStats.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/TopicStats.java
Outdated
Show resolved
Hide resolved
I know TC means |
Does it mean |
1 similar comment
Does it mean |
Hi @tjiuming will you submit a doc PR as soon as this PR is approved and merged? Ping me if you need any review or other assistance. |
I‘ll create another PR to add doc after this PR finished |
@tjiuming yes PendingAck is TP |
@codelipenghui @gaoran10 Could you please help review? |
…tx_metrics � Conflicts: � pulsar-broker/src/main/java/org/apache/pulsar/broker/transaction/pendingack/impl/PendingAckHandleImpl.java � pulsar-broker/src/test/java/org/apache/pulsar/broker/transaction/TransactionTest.java
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
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.
new metrics should ends with "_total"
See https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md
Also see
it makes sense, I'll add _total suffix for non-prometheus managed metrics. |
@shoothzj PTAL |
.../src/test/java/org/apache/pulsar/broker/transaction/pendingack/PendingAckPersistentTest.java
Outdated
Show resolved
Hide resolved
# Conflicts: # pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/NamespaceStatsAggregator.java # pulsar-common/src/main/java/org/apache/pulsar/common/policies/data/stats/TopicStatsImpl.java
/pulsarbot run-failure-checks |
Motivation
add metrics for transaction
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation
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
(Please explain why)
doc
(If this PR contains doc changes)
doc-complete