You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Bryan Beaudreault (Jira)" <ji...@apache.org> on 2023/03/08 15:23:00 UTC
[jira] [Resolved] (HBASE-27681) Refactor Table Latency Metrics
[ https://issues.apache.org/jira/browse/HBASE-27681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Beaudreault resolved HBASE-27681.
---------------------------------------
Fix Version/s: 2.6.0
3.0.0-alpha-4
Release Note:
Table request metrics (table latency histograms and TableReadQueryMeter/TableWriteQueryMeter) have been reorganized into a new metric bean TableRequests. The new TableRequests bean is published separately for each table on the regionserver, with the bean name including the table name and metric names within the bean simplified. Beans will be cleaned up after tables leave the regionserver.
Users who collect TableLatencies or table query meters will have to update metric collection to work with the new structure. For example:
Old:
{
"name": "Hadoop:service=HBase,name=RegionServer,sub=TableLatencies",
"modelerType": "RegionServer,sub=TableLatencies",
"tag.Context": "regionserver",
"tag.Hostname": "hostname",
"Namespace_hbase_table_rsgroup_metric_deleteTime_num_ops": 0,
"Namespace_hbase_table_rsgroup_metric_deleteTime_min": 0,
"Namespace_hbase_table_rsgroup_metric_deleteTime_max": 0,
"Namespace_hbase_table_rsgroup_metric_deleteTime_mean": 0,
...
}
New:
{
"name": "Hadoop:service=HBase,name=RegionServer,sub=TableRequests_Namespace_default_table_usertable",
"modelerType": "RegionServer,sub=TableRequests_Namespace_default_table_usertable",
"tag.Context": "regionserver",
"tag.Hostname": "hostname",
"DeleteTime_num_ops": 0,
"DeleteTime_min": 0,
"DeleteTime_max": 0,
"DeleteTime_mean": 0,
...
}
was:
The name and structure of TableLantencies Metrics in JMX will change.
Old:
{
"name": "Hadoop:service=HBase,name=RegionServer,sub=TableLatencies",
"modelerType": "RegionServer,sub=TableLatencies",
"tag.Context": "regionserver",
"tag.Hostname": "hostname",
"Namespace_hbase_table_rsgroup_metric_deleteTime_num_ops": 0,
"Namespace_hbase_table_rsgroup_metric_deleteTime_min": 0,
"Namespace_hbase_table_rsgroup_metric_deleteTime_max": 0,
"Namespace_hbase_table_rsgroup_metric_deleteTime_mean": 0,
...
}
New:
{
"name": "Hadoop:service=HBase,name=RegionServer,sub=TableRequests_Namespace_default_table_usertable",
"modelerType": "RegionServer,sub=TableRequests_Namespace_default_table_usertable",
"tag.Context": "regionserver",
"tag.Hostname": "hostname",
"DeleteTime_num_ops": 0,
"DeleteTime_min": 0,
"DeleteTime_max": 0,
"DeleteTime_mean": 0,
...
}
Resolution: Fixed
> Refactor Table Latency Metrics
> ------------------------------
>
> Key: HBASE-27681
> URL: https://issues.apache.org/jira/browse/HBASE-27681
> Project: HBase
> Issue Type: Improvement
> Reporter: tianhang tang
> Assignee: tianhang tang
> Priority: Major
> Fix For: 2.6.0, 3.0.0-alpha-4
>
> Attachments: image-2023-03-01-23-55-14-095.png, image-2023-03-01-23-56-16-819.png
>
>
> Benefit:
> # Table Latency Metrics could removed after table has been moved away. Fix HBASE-27617
> # Could remove the hash lookup caused by metrics map from the hot request path.
> # Reduce the output in jmx. As if we use jmx_exporter to collect metrics to Prometheus, the operation overhead of performing regular matching in metric is relatively high(especially region metrics, which might be next step).
> # I think that could be the first step after hbase-metrics released. It seems that the roadmap indicates that we should replace directly use hadoop-metrics2 with hbase-metrics.
> Influence:
> # The metrics structure in jmx will change.
> Old:
> !image-2023-03-01-23-55-14-095.png|width=450,height=407!
> New:
> !image-2023-03-01-23-56-16-819.png|width=615,height=479!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)