Skip to content

HBASE-29399 Update hadoop-metrics2-hbase.properties template #7108

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

Merged
merged 1 commit into from
Jun 30, 2025

Conversation

junegunn
Copy link
Member

@junegunn junegunn requested a review from Copilot June 16, 2025 14:55
@junegunn junegunn self-assigned this Jun 16, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the hadoop-metrics2-hbase.properties template in support of HBASE-29399 by enhancing the configuration comments and renaming sink definitions for clarity and consistency.

  • Updated comment delimiters to "##" for better clarity.
  • Added configuration hints for regex-based metric filtering.
  • Renamed sink configuration keys to follow updated naming conventions.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 27s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
_ master Compile Tests _
+1 💚 spotless 0m 50s branch has no errors when running spotless:check.
_ Patch Compile Tests _
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 spotless 0m 39s patch has no errors when running spotless:check.
_ Other Tests _
+1 💚 asflicense 0m 10s The patch does not generate ASF License warnings.
3m 11s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7108/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #7108
Optional Tests dupname asflicense codespell detsecrets spotless
uname Linux 87dd6c759e8f 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 7342497
Max. process+thread count 48 (vs. ulimit of 30000)
modules C: . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7108/1/console
versions git=2.34.1 maven=3.9.8
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 26s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ master Compile Tests _
_ Patch Compile Tests _
_ Other Tests _
1m 12s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7108/1/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR #7108
Optional Tests
uname Linux fd30e946031d 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision master / 7342497
Max. process+thread count 35 (vs. ulimit of 30000)
modules C: . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7108/1/console
versions git=2.34.1 maven=3.9.8
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

Comment on lines +17 to +20
## syntax: [prefix].[source|sink].[instance].[options]
## See javadoc of package-info.java for org.apache.hadoop.metrics2 for details

*.sink.file*.class=org.apache.hadoop.metrics2.sink.FileSink
# default sampling period
## Default sampling period, in seconds
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used double # to distinguish actual comments from commented-out configuration lines.

## You can use regular expressions to exclude metrics you don't need.

# hbase.source.metric.filter.class=org.apache.hadoop.metrics2.filter.RegexFilter
# hbase.source.metric.filter.exclude=.*_((25|75|90|95|98)th_percentile|min|mean)
Copy link
Member Author

@junegunn junegunn Jun 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We internally use the median value (50th percentile), so we decided to exclude mean values. But anyway, this is just an example.

Copy link
Member Author

@junegunn junegunn Jun 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this configuration, the scraping time of jmx_exporter was significantly reduced on some of our regionservers. I believe others could also benefit from applying a similar configuration.

@junegunn junegunn merged commit fcc4202 into apache:master Jun 30, 2025
1 check passed
junegunn added a commit that referenced this pull request Jun 30, 2025
Signed-off-by: Duo Zhang <zhangduo@apache.org>
junegunn added a commit that referenced this pull request Jun 30, 2025
Signed-off-by: Duo Zhang <zhangduo@apache.org>
junegunn added a commit that referenced this pull request Jun 30, 2025
Signed-off-by: Duo Zhang <zhangduo@apache.org>
junegunn added a commit that referenced this pull request Jun 30, 2025
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants