all_mine_widgets.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. {
  2. "href": "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/widgets?Widgets/author={{loginName}}&fields=*",
  3. "items": [
  4. {
  5. "Widgets": {
  6. "id": 1,
  7. "scope": "USER",
  8. "widget_name": "MINE_RS_READS_WRITES",
  9. "display_name": "Mine widget 1",
  10. "description": "This widget shows all the read requests and write requests on all regions for a RegionServer",
  11. "widget_type": "GRAPH",
  12. "author": "xi",
  13. "metrics": [
  14. {
  15. "service_name": "HBASE"
  16. },
  17. {
  18. "service_name": "HBASE"
  19. }
  20. ]
  21. }
  22. },
  23. {
  24. "Widgets": {
  25. "id": 2,
  26. "scope": "USER",
  27. "widget_name": "MINE_ACTIVE_HANDLER",
  28. "display_name": "Mine Active Handlers/Calls",
  29. "widget_type": "GAUGE",
  30. "author": "xi",
  31. "metrics": [
  32. {
  33. "name": "ipc.IPC.numOpenConnections",
  34. "widget_id": "metrics/hbase/ipc/IPC/numOpenConnections",
  35. "category": "",
  36. "service_name": "HBASE",
  37. "component_name": "HBASE_REGIONSERVER"
  38. },
  39. {
  40. "name": "ipc.IPC.numCallsInGeneralQueue",
  41. "widget_id": "metrics/hbase/ipc/IPC/numOpenConnections",
  42. "category": "",
  43. "service_name": "HBASE",
  44. "component_name": "HBASE_REGIONSERVER"
  45. }
  46. ]
  47. }
  48. },
  49. {
  50. "Widgets": {
  51. "id": 3,
  52. "scope": "USER",
  53. "widget_name": "MINE_OPEN_CONNECTIONS",
  54. "display_name": "Mine Open Connections",
  55. "description": "This widget shows number of current open connections",
  56. "widget_type": "GRAPH",
  57. "author": "xi",
  58. "metrics": [
  59. {
  60. "service_name": "HDFS"
  61. }
  62. ]
  63. }
  64. },
  65. {
  66. "Widgets": {
  67. "id": 4,
  68. "scope": "USER",
  69. "widget_name": "MINE_FILES_LOCAL",
  70. "display_name": "Mine Files Local",
  71. "description": "This widget shows percentage of files local.",
  72. "widget_type": "NUMBER",
  73. "author": "xi",
  74. "metrics": [
  75. {
  76. "name": "regionserver.Server.percentFilesLocal",
  77. "widget_id": "metrics/hbase/regionserver/percentFilesLocal",
  78. "category": "",
  79. "service_name": "HBASE",
  80. "component_name": "HBASE_REGIONSERVER"
  81. }
  82. ],
  83. "values": [
  84. {
  85. "name": "Files Local",
  86. "value": "${regionserver.Server.percentFilesLocal}"
  87. }
  88. ],
  89. "properties": {
  90. "display_unit": "%"
  91. }
  92. }
  93. },
  94. {
  95. "Widgets": {
  96. "id": 5,
  97. "scope": "USER",
  98. "widget_name": "MINE UPDATED_BLOCKED_TIME",
  99. "display_name": "Mine Updated Blocked Time",
  100. "description": "",
  101. "widget_type": "GRAPH",
  102. "author": "xi",
  103. "metrics": [
  104. {
  105. "service_name": "YARN"
  106. }
  107. ]
  108. }
  109. },
  110. {
  111. "Widgets": {
  112. "id": 6,
  113. "scope": "USER",
  114. "widget_name": "MINE WIDGET NAME",
  115. "display_name": "MINE WIDGET 1",
  116. "description": "this is to show .....this is a long description..very long ..very long..very long..very long..very long..very long..very long..very long..very long..very long..very long..very long..very long..very long..very long",
  117. "widget_type": "GAUGE",
  118. "author": "xi",
  119. "metrics": [
  120. {
  121. "service_name": "HBASE"
  122. },
  123. {
  124. "service_name": "HDFS"
  125. }
  126. ]
  127. }
  128. },
  129. {
  130. "Widgets": {
  131. "id": 7,
  132. "scope": "USER",
  133. "widget_name": "MINE WIDGET NAME2",
  134. "display_name": "MINE WIDGET 2",
  135. "description": "this is to show .....",
  136. "widget_type": "NUMBER",
  137. "author": "xi",
  138. "metrics": [
  139. {
  140. "service_name": "YARN"
  141. },
  142. {
  143. "service_name": "HDFS"
  144. },
  145. {
  146. "service_name": "HBASE"
  147. }
  148. ]
  149. }
  150. }
  151. ]
  152. }