| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <div class="box box-primary"> |
| <div class="box-header with-border"> |
| <span class="fa fa-television"></span> |
| <h3 class="box-title"> |
| Service Summary Information |
| </h3> |
| </div> |
| <div class="box-body"> |
| |
| <table class="table table-striped"> |
| <tbody> |
| <tr ng-if="regiontotal > 0"> |
| <th>RegionServer Status</th> |
| <td class="text-break"> |
| <a ui-sref="regionList({siteId: site})" target="_blank">{{regiontotal}} RegionServers</a> |
| <span class="label label-success">{{regionhealtynum}} Healthy</span> |
| <span class="label label-danger">{{regiontotal - regionhealtynum}} UnHealthy</span> |
| </td> |
| </tr> |
| <tr ng-if="hmasteractive"> |
| <th>Active Hmaster Status</th> |
| <td class="text-break"> |
| <span ng-if="defaultHostname !== hmasteractive.tags.hostname" class="label label-success">(<a class="hadoopMetric-summary-a" ui-sref="masterDetail({siteId: site, hostname: hmasteractive.tags.hostname})">{{hmasteractive.tags.hostname}}</a>) Healthy</span> |
| <span ng-if="defaultHostname === hmasteractive.tags.hostname" class="label label-success">({{hmasteractive.tags.hostname}}) Healthy</span> |
| </td> |
| </tr> |
| <tr ng-if="hmasterstandby"> |
| <th>Standby Hmaster Status</th> |
| <td class="text-break"> |
| <span ng-if="defaultHostname !== hmasterstandby.tags.hostname" class="label label-success">(<a class="hadoopMetric-summary-a" ui-sref="masterDetail({siteId: site, hostname: hmasterstandby.tags.hostname})">{{hmasterstandby.tags.hostname}}</a>) Healthy</span> |
| <span ng-if="defaultHostname === hmasterstandby.tags.hostname" class="label label-success">({{hmasterstandby.tags.hostname}}) Healthy</span> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| </div> |
| |
| <div class="box box-primary"> |
| <div class="box-header with-border"> |
| <span class="fa fa-line-chart"></span> |
| <h3 class="box-title"> |
| Metrics |
| <span>({{defaultHostname}})</span> |
| </h3> |
| </div> |
| <div class="box-body no-padding"> |
| <div class="row border-split"> |
| <div class="col-sm-6 col-md-4 col-lg-3" ng-repeat="metric in metricList track by $index"> |
| <div class="hadoopMetric-chart"> |
| <h3>{{metric.title}}</h3> |
| <div chart class="hadoopMetric-chart-container" series="metric.series" |
| option="metric.option"></div> |
| </div> |
| </div> |
| </div> |
| </div> |
| </div> |
| </div> |