HBASE-8425 Per-region memstore size is missing in the new RS web UI
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1477330 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
741bbb5839
commit
9f86b77906
|
@ -42,7 +42,8 @@
|
||||||
<li class="active"><a href="#tab_regionBaseInfo" data-toggle="tab">Base Info</a> </li>
|
<li class="active"><a href="#tab_regionBaseInfo" data-toggle="tab">Base Info</a> </li>
|
||||||
<li><a href="#tab_regionRequestStats" data-toggle="tab">Request metrics</a></li>
|
<li><a href="#tab_regionRequestStats" data-toggle="tab">Request metrics</a></li>
|
||||||
<li class=""><a href="#tab_regionStoreStats" data-toggle="tab">Storefile Metrics</a></li>
|
<li class=""><a href="#tab_regionStoreStats" data-toggle="tab">Storefile Metrics</a></li>
|
||||||
<li class=""><a href="#tab_regionCompactStas" data-toggle="tab">Compaction Metrics</a></li>
|
<li class=""><a href="#tab_regionMemstoreStats" data-toggle="tab">Memstore Metrics</a></li>
|
||||||
|
<li class=""><a href="#tab_regionCompactStats" data-toggle="tab">Compaction Metrics</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content" style="padding-bottom: 9px; border-bottom: 1px solid #ddd;">
|
<div class="tab-content" style="padding-bottom: 9px; border-bottom: 1px solid #ddd;">
|
||||||
<div class="tab-pane active" id="tab_regionBaseInfo">
|
<div class="tab-pane active" id="tab_regionBaseInfo">
|
||||||
|
@ -54,7 +55,10 @@
|
||||||
<div class="tab-pane" id="tab_regionStoreStats">
|
<div class="tab-pane" id="tab_regionStoreStats">
|
||||||
<& storeStats; onlineRegions = onlineRegions; &>
|
<& storeStats; onlineRegions = onlineRegions; &>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="tab_regionCompactStas">
|
<div class="tab-pane" id="tab_regionMemstoreStats">
|
||||||
|
<& memstoreStats; onlineRegions = onlineRegions; &>
|
||||||
|
</div>
|
||||||
|
<div class="tab-pane" id="tab_regionCompactStats">
|
||||||
<& compactStats; onlineRegions = onlineRegions; &>
|
<& compactStats; onlineRegions = onlineRegions; &>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -192,3 +196,28 @@
|
||||||
</%for>
|
</%for>
|
||||||
</table>
|
</table>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
|
<%def memstoreStats>
|
||||||
|
<%args>
|
||||||
|
List<HRegionInfo> onlineRegions;
|
||||||
|
</%args>
|
||||||
|
<table class="table table-striped">
|
||||||
|
<tr>
|
||||||
|
<th>Region Name</th>
|
||||||
|
<th>Memstore Size</th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<%for HRegionInfo r: onlineRegions %>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<%java>
|
||||||
|
RegionLoad load = regionServer.createRegionLoad(r.getEncodedName());
|
||||||
|
</%java>
|
||||||
|
<td><% r.getRegionNameAsString() %></td>
|
||||||
|
<%if load != null %>
|
||||||
|
<td><% load.getMemstoreSizeMB() %>MB</td>
|
||||||
|
</%if>
|
||||||
|
</tr>
|
||||||
|
</%for>
|
||||||
|
</table>
|
||||||
|
</%def>
|
||||||
|
|
Loading…
Reference in New Issue