dashboard.hbs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 servicesBinding="controller.services"}}
  28. {{view App.MainDashboardServiceMapreduceView servicesBinding="controller.services"}}
  29. {{view App.MainDashboardServiceHbaseView servicesBinding="controller.services"}}
  30. {{view App.MainDashboardServiceHiveView servicesBinding="controller.services"}}
  31. {{view App.MainDashboardServiceZookeperView servicesBinding="controller.services"}}
  32. {{view App.MainDashboardServiceOozieView servicesBinding="controller.services"}}
  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.alerts}}
  54. <li class="status-{{unbound status}}">
  55. <p><span class="title">{{title}}</span> <a {{action selectService service href=true}}>{{service.label}}</a><span class="date-time">{{date}}</span></p>
  56. <p><span>{{status}}:</span> <span>{{message}}</span></p>
  57. </li>
  58. {{/each}}
  59. </ul>
  60. <div class="box-footer">
  61. <hr />
  62. <a class="go-to" href="javascript:void(null)">Go to Nagios</a>
  63. </div>
  64. </div>
  65. </div>
  66. </div>