-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-16242. JournalMetrics should add JournalId MetricTag. #3494
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
Conversation
🎊 +1 overall
This message was automatically generated. |
cc @aajisaka @adamantal . Would you take some time to review this patch? Thank you. |
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.
The implementation looks good. Two whitespace errors
...project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/server/JournalMetrics.java
Outdated
Show resolved
Hide resolved
...roject/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/server/TestJournalNode.java
Outdated
Show resolved
Hide resolved
1. remove empty space
Thank you for your review. @adamantal I commit it again to fix checkstyle error. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
The fail tests is due to java.lang.OutOfMemoryError. It is unrelated.
|
...roject/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/server/TestJournalNode.java
Outdated
Show resolved
Hide resolved
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.
+1. Thanks! Will commit this if no objections.
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
Merged to trunk, thanks for the contribution @Neilxzn |
Contributed by Max Xie
Description of PR
https://issues.apache.org/jira/browse/HDFS-16242
JournalMetrics should add JournalId MetricTag to distinguish different nameservice journal metrics when JournalNode use ganglia sink or prometheus sink.
JMX
Before this patch, journal' jmx :
After this patch, journal' jmx :
PrometheusSink
Before this patch, journal' prometheus export :
After this patch, journal' prometheus export :
How was this patch tested?
add test testJournalMetricTags
For code changes:
add JournalMetrics$getJournalId