summary.hbs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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="row-fluid service-block">
  19. <div class="span6">
  20. {{#if view.service.quickLinks.length}}
  21. {{#view App.QuickViewLinks contentBinding="view.service"}}
  22. <ul class="nav nav-pills move">
  23. <li class="dropdown">
  24. <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{t common.quickLinks}}<b class="caret"></b></a>
  25. <ul class="dropdown-menu">
  26. {{#each view.quickLinks}}
  27. <a {{bindAttr href="url"}} {{bindAttr target="view.linkTarget"}}>{{label}}</a>
  28. {{/each}}
  29. </ul>
  30. </li>
  31. </ul>
  32. {{/view}}
  33. {{/if}}
  34. <div class="box">
  35. <div class="box-header">
  36. <h4>{{controller.content.label}} {{t services.service.info.menu.summary}}</h4>
  37. </div>
  38. <div class="service-content">
  39. <table id="summary-info" class="table no-borders table-condensed">
  40. <tbody>
  41. {{#if view.noTemplateService}}
  42. {{#each component in view.components}}
  43. {{#if component.isMaster}}
  44. {{view view.sumMasterComponentView}}
  45. {{else}}
  46. <tr>
  47. <td class="summary-label">{{component.displayName}}{{#if view.hasManyClients}}s{{/if}}</td>
  48. <td>
  49. <span class="green-live">{{view.clients.length}}</span>
  50. {{component.displayName}} {{#if view.hasManyClients}}s{{/if}} {{t common.installed}}
  51. <div class="summary-view-host">
  52. <a {{action filterHosts component}} href="javascript:void(null)>{{view.clientsHostText}}</a>
  53. </div>
  54. </td>
  55. </tr>
  56. {{/if}}
  57. {{/each}}
  58. {{/if}}
  59. {{#if view.serviceStatus.hdfs}}
  60. {{view App.MainDashboardServiceHdfsView showOnlyRows=true serviceBinding="view.service"}}
  61. {{/if}}
  62. {{#if view.serviceStatus.mapreduce}}
  63. {{view App.MainDashboardServiceMapreduceView showOnlyRows=true serviceBinding="view.service"}}
  64. {{/if}}
  65. {{#if view.serviceStatus.yarn}}
  66. {{view App.MainDashboardServiceYARNView showOnlyRows=true serviceBinding="view.service"}}
  67. {{/if}}
  68. {{#if view.serviceStatus.mapreduce2}}
  69. {{template "templates/main/service/info/summary/mapreduce2"}}
  70. {{/if}}
  71. {{#if view.serviceStatus.hbase}}
  72. {{view App.MainDashboardServiceHbaseView showOnlyRows=true serviceBinding="view.service"}}
  73. {{/if}}
  74. {{#if view.serviceStatus.zookeeper}}
  75. {{template "templates/main/service/info/summary/zookeeper"}}
  76. {{/if}}
  77. {{#if view.serviceStatus.oozie}}
  78. {{template "templates/main/service/info/summary/oozie"}}
  79. {{/if}}
  80. {{#if view.serviceStatus.ganglia}}
  81. {{template "templates/main/service/info/summary/ganglia"}}
  82. {{/if}}
  83. {{#if view.serviceStatus.hive}}
  84. {{template "templates/main/service/info/summary/hive"}}
  85. {{/if}}
  86. {{#if view.serviceStatus.hue}}
  87. {{template "templates/main/service/info/summary/hue"}}
  88. {{/if}}
  89. {{#if view.serviceStatus.flume}}
  90. {{view App.MainDashboardServiceFlumeView showOnlyRows=true serviceBinding="view.service"}}
  91. {{/if}}
  92. </tbody>
  93. </table>
  94. </div>
  95. </div>
  96. </div>
  97. <div class="span6">
  98. <div class="box">
  99. <div class="box-header">
  100. <h4>{{t services.alerts.headingOfList}}</h4>
  101. <div class="btn-group">
  102. <a class="btn" target="_blank" rel="tooltip" title="Go to Nagios" {{bindAttr href="controller.nagiosUrl"}}><i class="icon-link"></i></a>
  103. </div>
  104. </div>
  105. <ul id='summary-alerts-list' class="alerts">
  106. {{#if controller.alerts.length}}
  107. {{#each controller.alerts}}
  108. {{view App.AlertItemView contentBinding="this"}}
  109. {{/each}}
  110. {{else}}
  111. {{#if controller.isNagiosInstalled}}
  112. <div class="alert alert-info">
  113. {{t services.service.info.summary.nagios.noAlerts}}
  114. </div>
  115. {{else}}
  116. <div class="alert">
  117. {{t services.service.info.summary.nagios.alerts}}
  118. </div>
  119. {{/if}}
  120. {{/if}}
  121. </ul>
  122. </div>
  123. </div>
  124. </div>
  125. {{#if view.serviceMetricGraphs.length}}
  126. <div class="row-fluid">
  127. <div class="span12">
  128. <div class="box">
  129. <div class="box-header">
  130. <h4>{{controller.content.label}} {{t common.metrics}}</h4>
  131. <div class="btn-group">
  132. <a class="btn" target="_blank" rel="tooltip" title="Go to Ganglia" {{bindAttr href="view.gangliaUrl"}}><i class="icon-link"></i></a>
  133. </div>
  134. </div>
  135. <div class="">
  136. <table class="graphs">
  137. {{#each graphs in view.serviceMetricGraphs}}
  138. <tr>
  139. {{#each graph in graphs}}
  140. <td>
  141. <div class="">
  142. {{view graph}}
  143. </div>
  144. </td>
  145. {{/each}}
  146. </tr>
  147. {{/each}}
  148. </table>
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. {{/if}}