-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-19571. Improve PrometheusMetricsSink#normalizeName performance #7692
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
This comment was marked as outdated.
This comment was marked as outdated.
|
💔 -1 overall
This message was automatically generated. |
|
@aajisaka Please kindly help take a look when you have time. |
aajisaka
left a comment
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
|
@ivandika3 Thanks for the contribution! if there are no other comments, I will merge this PR tomorrow. |
|
@ivandika3 Could we retrigger the build? It seems the current Yetus status is not accurate. |
|
@slfan1989 Thanks for checking this, pushed an empty commit to trigger build. |
|
💔 -1 overall
This message was automatically generated. |
|
@ivandika3 I noticed some errors in the build results, but they are not caused by this PR. Could we sync the latest changes from trunk using 'sync fork'? |
|
💔 -1 overall
This message was automatically generated. |
|
@ivandika3 Thanks for the contribution! Merged into the trunk. @aajisaka Thanks for the review! |
|
@aajisaka @slfan1989 Thanks for the reviews. |

Description of PR
JIRA: HADOOP-19571. Improve PrometheusMetricsSink#normalizeName performance
This patch is similar from HDDS-13014. We can add a name normalization cache between the Hadoop metrics name and the Prometheus metrics name to prevent expensive regex matchings during the metric normalization conversion.
How was this patch tested?
Simple microbenchmark (see https://issues.apache.org/jira/secure/attachment/13076557/TestPrometheusMetricsSinkPerformance.java)