yarn-apps.hbs 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. {{breadcrumb-bar breadcrumbs=breadcrumbs}}
  19. <div class="col-md-12 container-fluid">
  20. <div class="row">
  21. <div class="col-md-2 container-fluid">
  22. <div class="panel panel-default">
  23. <div class="panel-heading">
  24. <h4>Applications</h4>
  25. </div>
  26. <div class="panel-body">
  27. <ul class="nav nav-pills nav-stacked" id="stacked-menu">
  28. <ul class="nav nav-pills nav-stacked collapse in">
  29. {{#link-to 'yarn-apps.apps' tagName="li"}}
  30. {{#link-to 'yarn-apps.apps'}}All Applications
  31. {{/link-to}}
  32. {{/link-to}}
  33. </ul>
  34. </ul>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="col-md-10 container-fluid">
  39. {{#if model.clusterMetrics}}
  40. <div class="row">
  41. <div class="col-lg-4 container-fluid">
  42. <div class="panel panel-default">
  43. <div class="panel-heading">
  44. Finished Apps
  45. </div>
  46. <div class="container-fluid" id="finishedapps-donut-chart">
  47. {{donut-chart data=model.clusterMetrics.firstObject.getFinishedAppsDataForDonutChart
  48. showLabels=true
  49. parentId="finishedapps-donut-chart"
  50. ratio=0.6
  51. maxHeight=350
  52. colorTargets="good warn error"
  53. }}
  54. </div>
  55. </div>
  56. </div>
  57. <div class="col-lg-4 container-fluid">
  58. <div class="panel panel-default">
  59. <div class="panel-heading">
  60. Running Apps
  61. </div>
  62. <div class="container-fluid" id="runningapps-donut-chart">
  63. {{donut-chart data=model.clusterMetrics.firstObject.getRunningAppsDataForDonutChart
  64. showLabels=true
  65. parentId="runningapps-donut-chart"
  66. ratio=0.6
  67. maxHeight=350
  68. colorTargets="warn good"
  69. }}
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. {{/if}}
  75. <div class="row">
  76. {{outlet}}
  77. </div>
  78. </div>
  79. </div>
  80. </div>