rpc-metrics.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <h1>RPC Metrics (port: {{$ctrl.jmxdata['tag.port']}})</h1>
  16. <div ng-hide="$ctrl.metrics.percentiles.length" class="alert alert-info">
  17. Please set <b>rpc.metrics.quantile.enable</b> to <b>true</b> and define the
  18. intervals in seconds with setting <b>rpc.metrics.percentiles.intervals</b>
  19. (eg. set to <b>60,300</b>) in your hdfs-site.xml
  20. to display Hadoop RPC related graphs.
  21. </div>
  22. <div ng-repeat="(metric,percentiles) in $ctrl.metrics.percentiles">
  23. <h2>{{metric}}</h2>
  24. <div class="container">
  25. <div class="col-md-6" ng-repeat="(window,windowed) in percentiles">
  26. <h3>{{window}} window ({{windowed.numOps}} request)</h3>
  27. <nvd3 options="$ctrl.percentileGraphOptions"
  28. data="windowed.graphdata"></nvd3>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="row">
  33. <div ng-show="$ctrl.metrics.numavgs" class="col-md-6">
  34. <h2>Number of ops / Averages</h2>
  35. <table class="table table-bordered table-striped">
  36. <thead>
  37. <tr>
  38. <th>Metric name</th>
  39. <th>Number of ops</th>
  40. <th>Average time</th>
  41. </tr>
  42. </thead>
  43. <tr ng-repeat="(key,metric) in $ctrl.metrics.numavgs">
  44. <td>{{key}}</td>
  45. <td>{{metric.numOps}}</td>
  46. <td>{{metric.avgTime}}</td>
  47. </tr>
  48. </table>
  49. </div>
  50. <div ng-show="$ctrl.metrics.successfailures" class="col-md-6">
  51. <h2>Success / Failures</h2>
  52. <table class="table table-bordered table-striped">
  53. <thead>
  54. <tr>
  55. <th>Metric name</th>
  56. <th>Success</th>
  57. <th>Failures</th>
  58. </tr>
  59. </thead>
  60. <tr ng-repeat="(key,metric) in $ctrl.metrics.successfailures">
  61. <td>{{key}}</td>
  62. <td>{{metric.success}}</td>
  63. <td>{{metric.failures}}</td>
  64. </tr>
  65. </table>
  66. </div>
  67. </div>
  68. <div ng-show="$ctrl.metrics.others">
  69. <h2>Other JMX Metrics</h2>
  70. <table class="table">
  71. <tr ng-repeat="metric in $ctrl.metrics.others">
  72. <td>{{metric.key}}</td>
  73. <td>{{metric.value}}</td>
  74. </tr>
  75. </table>
  76. </div>