-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Conversation
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.
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.
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
## 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 |
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.
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) |
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.
We internally use the median value (50th percentile), so we decided to exclude mean values. But anyway, this is just an example.
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.
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.
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
https://issues.apache.org/jira/browse/HBASE-29399