summary.hbs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. <div class="box">
  21. <div class="box-header">
  22. <h4>{{controller.content.label}} {{t services.service.info.menu.summary}}</h4>
  23. </div>
  24. <div class="service-content">
  25. <table id="summary-info" class="table no-borders table-condensed">
  26. <tbody>
  27. {{#if view.noTemplateService}}
  28. {{view view.sumMasterComponentView}}
  29. {{/if}}
  30. {{#if view.serviceStatus.hdfs}}
  31. {{view App.MainDashboardServiceHdfsView showOnlyRows=true serviceBinding="view.service"}}
  32. {{/if}}
  33. {{#if view.serviceStatus.mapreduce}}
  34. {{view App.MainDashboardServiceMapreduceView showOnlyRows=true serviceBinding="view.service"}}
  35. {{/if}}
  36. {{#if view.serviceStatus.yarn}}
  37. {{view App.MainDashboardServiceYARNView showOnlyRows=true serviceBinding="view.service"}}
  38. {{/if}}
  39. {{#if view.serviceStatus.mapreduce2}}
  40. {{template "templates/main/service/info/summary/mapreduce2"}}
  41. {{/if}}
  42. {{#if view.serviceStatus.hbase}}
  43. {{view App.MainDashboardServiceHbaseView showOnlyRows=true serviceBinding="view.service"}}
  44. {{/if}}
  45. {{#if view.serviceStatus.zookeeper}}
  46. {{template "templates/main/service/info/summary/zookeeper"}}
  47. {{/if}}
  48. {{#if view.serviceStatus.oozie}}
  49. {{template "templates/main/service/info/summary/oozie"}}
  50. {{/if}}
  51. {{#if view.serviceStatus.ganglia}}
  52. {{template "templates/main/service/info/summary/ganglia"}}
  53. {{/if}}
  54. {{#if view.serviceStatus.hive}}
  55. {{template "templates/main/service/info/summary/hive"}}
  56. {{/if}}
  57. {{#if view.serviceStatus.hue}}
  58. {{template "templates/main/service/info/summary/hue"}}
  59. {{/if}}
  60. {{#if view.serviceStatus.flume}}
  61. {{view App.MainDashboardServiceFlumeView showOnlyRows=true serviceBinding="view.service"}}
  62. {{/if}}
  63. {{#if view.serviceStatus.falcon}}
  64. {{template "templates/main/service/info/summary/falcon"}}
  65. {{/if}}
  66. {{#if view.serviceStatus.storm}}
  67. {{view App.MainDashboardServiceStormView showOnlyRows=true serviceBinding="view.service"}}
  68. {{/if}}
  69. </tbody>
  70. </table>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="span6">
  75. <div class="box">
  76. <div class="box-header">
  77. <h4>{{t services.alerts.headingOfList}}</h4>
  78. {{#if controller.isNagiosInstalled}}
  79. <div class="btn-group">
  80. <a class="btn" target="_blank" rel="tooltip" title="Go to Nagios" {{bindAttr href="controller.nagiosUrl"}}><i class="icon-link"></i></a>
  81. </div>
  82. {{/if}}
  83. </div>
  84. <ul id='summary-alerts-list' class="alerts">
  85. {{#if view.alertsController.isLoaded}}
  86. {{#if view.alerts.length}}
  87. {{#each view.alerts}}
  88. {{view App.AlertItemView contentBinding="this"}}
  89. {{/each}}
  90. {{else}}
  91. {{#if controller.isNagiosInstalled}}
  92. <div class="alert alert-info">
  93. {{t services.service.info.summary.nagios.noAlerts}}
  94. </div>
  95. {{else}}
  96. <div class="alert">
  97. {{t services.service.info.summary.nagios.alerts}}
  98. </div>
  99. {{/if}}
  100. {{/if}}
  101. {{else}}
  102. <div class="spinner"></div>
  103. {{/if}}
  104. </ul>
  105. </div>
  106. </div>
  107. </div>
  108. {{#if view.serviceMetricGraphs.length}}
  109. <div class="row-fluid">
  110. <div class="span12">
  111. <div class="box">
  112. <div class="box-header">
  113. <h4>{{controller.content.label}} {{t common.metrics}}</h4>
  114. {{#if controller.isGangliaInstalled}}
  115. <div class="btn-group">
  116. <a class="btn" target="_blank" rel="tooltip" title="Go to Ganglia" {{bindAttr href="view.gangliaUrl"}}><i class="icon-link"></i></a>
  117. </div>
  118. {{/if}}
  119. </div>
  120. <div class="">
  121. <table class="graphs">
  122. {{#each graphs in view.serviceMetricGraphs}}
  123. <tr>
  124. {{#each graph in graphs}}
  125. <td>
  126. <div class="">
  127. {{view graph}}
  128. </div>
  129. </td>
  130. {{/each}}
  131. </tr>
  132. {{/each}}
  133. </table>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. {{/if}}