generate_mapreduce_hdp_json.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /*
  3. *
  4. * Licensed to the Apache Software Foundation (ASF) under one
  5. * or more contributor license agreements. See the NOTICE file
  6. * distributed with this work for additional information
  7. * regarding copyright ownership. The ASF licenses this file
  8. * to you under the Apache License, Version 2.0 (the
  9. * "License"); you may not use this file except in compliance
  10. * with the License. You may obtain a copy of the License at
  11. *
  12. * http://www.apache.org/licenses/LICENSE-2.0
  13. *
  14. * Unless required by applicable law or agreed to in writing,
  15. * software distributed under the License is distributed on an
  16. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  17. * KIND, either express or implied. See the License for the
  18. * specific language governing permissions and limitations
  19. * under the License.
  20. *
  21. */
  22. $data = array
  23. (
  24. 'Global' => array
  25. (
  26. array
  27. (
  28. 'url' =>
  29. 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%JobTrackerClusterName%&g=hdp_mon_jobtracker_map_slot_report',
  30. 'title' => 'Map Slot Utilization',
  31. 'description' => 'Utilized Map slots (occupied + reserved) vs. Total Map slots',
  32. 'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%JobTrackerClusterName%'
  33. ),
  34. array
  35. (
  36. 'url' =>
  37. 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%JobTrackerClusterName%&g=hdp_mon_jobtracker_reduce_slot_report',
  38. 'title' => 'Reduce Slot Utilization',
  39. 'description' => 'Utilized Reduce slots (occupied + reserved) vs. Total Reduce slots',
  40. 'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%JobTrackerClusterName%'
  41. ),
  42. array
  43. (
  44. 'url' =>
  45. 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%JobTrackerClusterName%&g=hdp_mon_jobtracker_mapreduce_report',
  46. 'title' => 'MapReduce Backlog',
  47. 'description' => 'Waiting Maps and Reduces, to give a feel for a combined MapReduce backlog',
  48. 'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%JobTrackerClusterName%'
  49. ),
  50. array
  51. (
  52. 'url' =>
  53. 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%JobTrackerClusterName%&g=hdp_mon_jvm_gc_report',
  54. 'title' => 'JobTracker: JVM Garbage Collection',
  55. 'description' => 'Key Garbage Collection stats for the JobTracker\'s JVM',
  56. 'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%JobTrackerClusterName%'
  57. ),
  58. array
  59. (
  60. 'url' =>
  61. 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%JobTrackerClusterName%&g=hdp_mon_rpc_latency_report',
  62. 'title' => 'JobTracker: RPC Average Latencies',
  63. 'description' => 'Average latencies for processing and queue times on the JobTracker, to give a feel for potential performance bottlenecks',
  64. 'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%JobTrackerClusterName%'
  65. )
  66. )
  67. );
  68. echo json_encode($data);
  69. ?>