dashboard.hbs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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">
  19. <div class="span6">
  20. <div class="row">
  21. <div class="span6">
  22. <div class="box">
  23. <div class="box-header">
  24. <h4>{{t dashboard.services}}</h4>
  25. </div>
  26. <dl class="dl-horizontal services">
  27. {{view App.MainDashboardServiceHdfsView controllerBinding="controller"}}
  28. {{view App.MainDashboardServiceMapreduceView controllerBinding="controller"}}
  29. {{view App.MainDashboardServiceHbaseView controllerBinding="controller"}}
  30. {{view App.MainDashboardServiceHiveView controllerBinding="controller"}}
  31. {{view App.MainDashboardServiceZookeperView controllerBinding="controller"}}
  32. {{view App.MainDashboardServiceOozieView controllerBinding="controller"}}
  33. </dl>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="span6">
  39. <div class="box">
  40. <div class="box-header">
  41. <h4>Alerts</h4>
  42. <div class="btn-group">
  43. <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">{{controller.alertsFilteredBy}} <span class="caret"></span></button>
  44. <ul class="dropdown-menu">
  45. <li><a {{action alertsFilter target="controller"}} href="javascript:void(null)">All</a></li>
  46. {{#each service in controller.services}}
  47. <li><a {{action alertsFilter service target="controller"}} href="javascript:void(null)">{{service.label}}</a></li>
  48. {{/each}}
  49. </ul>
  50. </div>
  51. </div>
  52. <ul class="alerts">
  53. {{#each controller.displayAlerts}}
  54. <li class="status-{{unbound status}}">
  55. <div class="container-fluid">
  56. <div class="row-fluid">
  57. <div class="span1 status-icon">
  58. {{#if isOk}}
  59. <i class="icon-ok icon-large"></i>
  60. {{else}}
  61. <i class="icon-remove icon-large"></i>
  62. {{/if}}
  63. </div>
  64. <div class="span11">
  65. <div class="row-fluid">
  66. <div class="span8 title">{{title}}
  67. {{#if serviceName}}
  68. <a class="serviceLink" href="{{unbound serviceLink}}">{{serviceName}}</a>
  69. {{/if}}
  70. </div>
  71. <div class="span4 date-time">{{dateDisplay}}</div>
  72. </div>
  73. <div class="row-fluid message">{{message}}</div>
  74. </div>
  75. </div>
  76. </div>
  77. </li>
  78. {{/each}}
  79. </ul>
  80. <div class="box-footer">
  81. <hr />
  82. <a class="go-to" href="http://nagiosserver/nagios" target="_blank">Go to Nagios</a>
  83. </div>
  84. </div>
  85. </div>
  86. </div>