dashboards.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. var dashboards =
  2. {
  3. title: "Infinite Monkey Dashboard",
  4. rows: [
  5. {
  6. title: "Query Control",
  7. height: "30px",
  8. panels: [
  9. {
  10. type : "stringquery",
  11. span : 12,
  12. }
  13. ]
  14. },
  15. {
  16. title: "Options",
  17. collapse: true,
  18. height: "30px",
  19. panels: [
  20. {
  21. type : "timepicker",
  22. span : 5,
  23. mode : 'relative',
  24. index : "\"shakespeare\"",
  25. refresh : {
  26. enable : false,
  27. interval: 30,
  28. min : 10
  29. },
  30. timespan : '1h',
  31. timefield: '@timestamp',
  32. group: ['default','pies'],
  33. },
  34. {
  35. type : "sort",
  36. span : 4,
  37. },
  38. {
  39. type : "text",
  40. fontsize : "85%",
  41. span: 3,
  42. content : "Panels can send events to other panels. In the case of" +
  43. " the sort panel, it also receives a field event that it uses" +
  44. " to populate its list of fields from the table panel"
  45. },
  46. ]
  47. },
  48. {
  49. title: "Top 3 Characters",
  50. collapse: false,
  51. height: "160px",
  52. panels: [
  53. {
  54. type : "text",
  55. title : "About",
  56. fontsize : "85%",
  57. span: 2,
  58. content : "These pies demonstrate configurable binding. They are" +
  59. " bound only to the time selector, not to the query input. Thus" +
  60. " they will change when you select a new time range, but not if" +
  61. " you enter a search. Try hovering over a pie slice.",
  62. },
  63. {
  64. title : "Hamlet",
  65. type : "pie",
  66. span : 2,
  67. size : 3,
  68. legend : false,
  69. labels : false,
  70. donut : true,
  71. colors : ['#20805E','#26527C','#BF8530','#A60000','#006363','#679B00'],
  72. field : 'country',
  73. //query : { query: "*", field: "country"}
  74. query : { field : "speaker", query : "play_name:Hamlet" },
  75. group : "pies"
  76. },
  77. {
  78. title : "Othello",
  79. type : "pie",
  80. span : 2,
  81. size : 3,
  82. legend : false,
  83. labels : false,
  84. donut : true,
  85. colors : ['#35D59D','#FFB140','#F43D6B','#A60000','#006363','#679B00'],
  86. field : 'country',
  87. //query : { query: "*", field: "country"}
  88. query : { field : "speaker", query : "play_name:Othello" },
  89. group : "pies"
  90. },
  91. {
  92. title : "A Winters Tale",
  93. type : "pie",
  94. span : 2,
  95. size : 3,
  96. legend : false,
  97. labels : false,
  98. donut : true,
  99. colors : ['#78AF2C','#BF4630','#6A237E','#A60000','#006363','#679B00'],
  100. field : 'country',
  101. //query : { query: "*", field: "country"}
  102. query : { field : "speaker", query : 'play_name:"A Winters Tale"' },
  103. group : "pies"
  104. },
  105. {
  106. title : "The Tempest",
  107. type : "pie",
  108. span : 2,
  109. size : 3,
  110. legend : false,
  111. labels : false,
  112. donut : true,
  113. colors : ['#2A4480','#BFA730','#BF7130','#A60000','#006363','#679B00'],
  114. field : 'country',
  115. //query : { query: "*", field: "country"}
  116. query : { field : "speaker", query : 'play_name:"The Tempest"' },
  117. group : "pies"
  118. },
  119. {
  120. title : "King Lear",
  121. type : "pie",
  122. span : 2,
  123. size : 3,
  124. legend : false,
  125. labels : false,
  126. donut : true,
  127. colors : ['#01939A','#FFAB00','#FF0700','#A60000','#006363','#679B00'],
  128. field : 'country',
  129. //query : { query: "*", field: "country"}
  130. query : { field : "speaker", query : 'play_name:"King Lear"' },
  131. group : "pies"
  132. },
  133. ]
  134. },
  135. {
  136. title: "Lines of Plays",
  137. height: "250px",
  138. collapse: true,
  139. panels: [
  140. {
  141. title : "Plays",
  142. type : "pie",
  143. span : 4,
  144. size : 8,
  145. colors : ['#BF3030','#1D7373','#86B32D','#A60000','#006363','#679B00'],
  146. field : 'country',
  147. //query : { query: "*", field: "country"}
  148. query : { field : "play_name", query : "*" },
  149. },
  150. {
  151. type : "text",
  152. title : "About",
  153. fontsize : "85%",
  154. span: 2,
  155. content : "The table panel can be sorted via a sort panel, or by" +
  156. " clicking the table header. Unlike the pie charts above, this" +
  157. " pie is bound to the query input. Try searching for a speaker" +
  158. " (eg, FALSTAFF) to see a break down of the plays they appear in.",
  159. },
  160. {
  161. title : "Newest Lines",
  162. type : "table",
  163. span : 6,
  164. query : "*",
  165. fields : ['@timestamp','play_name','speaker','text_entry'],
  166. }
  167. ]
  168. },
  169. {
  170. title: "Monkey Monitoring",
  171. collapse: false,
  172. height: "275px",
  173. panels: [
  174. {
  175. title : "Monkey Shakespeare Lines",
  176. type : "histogram",
  177. span : 5,
  178. show : ['lines','stack'],
  179. fill : 0.3,
  180. query : [
  181. { label : "Query Hits", query : "*", color: '#86B32D' },
  182. { label : "Hamlet", query : "play_name:Hamlet" },
  183. { label : "Macbeth", query : "play_name:macbeth" },
  184. ],
  185. },
  186. {
  187. title : "Monkey Typists Worldwide",
  188. type : "map",
  189. map : 'world',
  190. field : "country",
  191. span : 5,
  192. size : 500,
  193. query : "*",
  194. },
  195. {
  196. type : "text",
  197. title : "About",
  198. fontsize : "85%",
  199. span: 2,
  200. content : "Histograms can show multiple queries. In the case that a" +
  201. " multi-query histogram is bound to a query input, only the first" +
  202. " data series will be altered. All panels exist in the 'default'" +
  203. " group by default. The map panel can be used to visualize events" +
  204. " with attached geo data.",
  205. },
  206. ]
  207. }
  208. ]
  209. };