hbase.hbs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!--
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. -->
  18. <div class="clearfix">
  19. <div class="name span2">
  20. {{view App.MainDashboardServiceHealthView parentBinding="view"}}
  21. <a {{action selectService view.service href=true}}>{{view.service.label}}</a>
  22. {{#if view.criticalAlertsCount}}
  23. <span class="label label-important alerts-count">{{view.criticalAlertsCount}}</span>
  24. {{/if}}
  25. </div>
  26. <div class="summary span">
  27. {{view.summaryHeader}}
  28. </div>
  29. </div>
  30. <table class="table no-borders">
  31. <tbody>
  32. <!-- Master Server Heap -->
  33. <tr>
  34. <td>{{t dashboard.services.hbase.masterServerHeap}}</td>
  35. <td>?</td>
  36. </tr>
  37. <!-- Average load -->
  38. <tr>
  39. <td>{{t dashboard.services.hbase.averageLoad}}</td>
  40. <td>?</td>
  41. </tr>
  42. <!-- Region Servers -->
  43. <tr>
  44. <td>{{t dashboard.services.hbase.regionServers}}</td>
  45. <td>{{view.regionServers}}</td>
  46. </tr>
  47. <!-- Master Server Uptime -->
  48. <tr>
  49. <td>{{t dashboard.services.hbase.masterServerUptime}}</td>
  50. <td>{{view.masterServerUptime}}</td>
  51. </tr>
  52. <!-- Hosts -->
  53. <tr>
  54. <td>{{t dashboard.services.hosts}}</td>
  55. <td>
  56. {{#each component in view.service.components}}
  57. {{#if component.type}}
  58. <a href="#" {{action selectHost component.host}}>{{component.componentName}}</a>,
  59. {{else}}
  60. <a href="#" {{action filterHosts component}}>{{component.componentName}}</a>
  61. {{/if}}
  62. {{/each}}
  63. </td>
  64. </tr>
  65. </tbody>
  66. </table>
  67. <div class="chart">
  68. {{view view.Chart}}
  69. <div class="chartLabel">{{t dashboard.services.hbase.chart.label}}</div>
  70. {{#if view.service.quickLinks.length}}
  71. <div class="btn-group">
  72. <a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">
  73. Quick Links
  74. <span class="caret"></span>
  75. </a>
  76. <ul class="dropdown-menu">
  77. {{#each view.service.quickLinks}}
  78. <li><a href="javascript:void(null)">{{label}}</a></li>
  79. {{/each}}
  80. </ul>
  81. </div>
  82. {{/if}}
  83. </div>