-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-17893. Improve PrometheusSink for Namenode TopMetrics #3426
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. |
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.
@Neilxzn
Thank you for your patch. I built with the patch and the top metrics look good. There are some comments:
...oject/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/PrometheusMetricsSink.java
Outdated
Show resolved
Hide resolved
...oject/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/PrometheusMetricsSink.java
Outdated
Show resolved
Hide resolved
...t/hadoop-common/src/test/java/org/apache/hadoop/metrics2/sink/TestPrometheusMetricsSink.java
Outdated
Show resolved
Hide resolved
2. use AssertJ for unit test
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
The fail tests seem unrelated. Plz trigger test in jenkins again. Thank you. |
🎊 +1 overall
This message was automatically generated. |
+1, Merged. Thank you @Neilxzn |
Signed-off-by: Akira Ajisaka <aajisaka@apache.org> (cherry picked from commit ae2c5cc)
Description of PR
https://issues.apache.org/jira/browse/HADOOP-17893
How was this patch tested?
add test testTopMetricsPublish
For code changes:
Parse TopMetrics in PrometheusMetricsSink