dashboards.js 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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. group : ['default','counter','histogram']
  13. }
  14. ]
  15. },
  16. {
  17. title: "Status",
  18. collapse: false,
  19. height: "100px",
  20. panels: [
  21. {
  22. type : "timepicker",
  23. span : 4,
  24. mode : 'relative',
  25. index : "\"shakespeare\"",
  26. refresh : {
  27. enable : false,
  28. interval: 30,
  29. min : 10
  30. },
  31. timespan : '1h',
  32. timefield: '@timestamp',
  33. group: ['default','pies'],
  34. },
  35. {
  36. type : "sort",
  37. span : 3,
  38. },
  39. {
  40. title : "Histogram Timer",
  41. type : "timepicker",
  42. span : 0,
  43. mode : 'relative',
  44. timespan : '5m',
  45. index : "\"shakespeare\"",
  46. refresh : {
  47. enable : true,
  48. interval: 3,
  49. min : 10
  50. },
  51. timefield: '@timestamp',
  52. group: 'histogram',
  53. },
  54. {
  55. type : "histogram",
  56. span : 3,
  57. show : ['lines'],
  58. fill : 0.3,
  59. group : "histogram",
  60. query : [
  61. { label : "Event Rate", query : "*", color: '#FF7400' }
  62. ],
  63. },
  64. {
  65. title : "Counter Timer",
  66. type : "timepicker",
  67. span : 0,
  68. mode : 'relative',
  69. timespan : '30d',
  70. index : "\"shakespeare\"",
  71. refresh : {
  72. enable : true,
  73. interval: 3,
  74. min : 10
  75. },
  76. timefield: '@timestamp',
  77. group: 'counter',
  78. },
  79. {
  80. type : "hits",
  81. title : "Lines Completed",
  82. span : 2,
  83. group : 'counter',
  84. },
  85. {
  86. type : "text",
  87. style : {"font-size":"85%"},
  88. span: 0,
  89. content : "Rows are collapsable, and input panels can send event to" +
  90. " multiple groups. The Search panel is part of one group, while" +
  91. " the time panel is part of two"
  92. },
  93. ]
  94. },
  95. {
  96. title: "Top 3 Characters",
  97. collapse: true,
  98. height: "150px",
  99. panels: [
  100. {
  101. type : "text",
  102. title : "About",
  103. style : {"font-size":"85%"},
  104. span: 2,
  105. content : "These donut charts demonstrate configurable binding." +
  106. " They exist in a different group from the other panels and are" +
  107. " bound only to the time selector, not to the query input. Thus" +
  108. " they will change when you select a new time range, but not if" +
  109. " you enter a search.",
  110. },
  111. {
  112. title : "Hamlet",
  113. type : "pie",
  114. span : 2,
  115. size : 3,
  116. legend : false,
  117. labels : false,
  118. donut : true,
  119. colors : ['#20805E','#26527C','#BF8530','#A60000','#006363','#679B00'],
  120. field : 'country',
  121. //query : { query: "*", field: "country"}
  122. query : { field : "speaker", query : "play_name:Hamlet" },
  123. group : "pies"
  124. },
  125. {
  126. title : "Othello",
  127. type : "pie",
  128. span : 2,
  129. size : 3,
  130. legend : false,
  131. labels : false,
  132. donut : true,
  133. colors : ['#35D59D','#FFB140','#F43D6B','#A60000','#006363','#679B00'],
  134. field : 'country',
  135. //query : { query: "*", field: "country"}
  136. query : { field : "speaker", query : "play_name:Othello" },
  137. group : "pies"
  138. },
  139. {
  140. title : "A Winters Tale",
  141. type : "pie",
  142. span : 2,
  143. size : 3,
  144. legend : false,
  145. labels : false,
  146. donut : true,
  147. colors : ['#78AF2C','#BF4630','#6A237E','#A60000','#006363','#679B00'],
  148. field : 'country',
  149. //query : { query: "*", field: "country"}
  150. query : { field : "speaker", query : 'play_name:"A Winters Tale"' },
  151. group : "pies"
  152. },
  153. {
  154. title : "The Tempest",
  155. type : "pie",
  156. span : 2,
  157. size : 3,
  158. legend : false,
  159. labels : false,
  160. donut : true,
  161. colors : ['#2A4480','#BFA730','#BF7130','#A60000','#006363','#679B00'],
  162. field : 'country',
  163. //query : { query: "*", field: "country"}
  164. query : { field : "speaker", query : 'play_name:"The Tempest"' },
  165. group : "pies"
  166. },
  167. {
  168. title : "King Lear",
  169. type : "pie",
  170. span : 2,
  171. size : 3,
  172. legend : false,
  173. labels : false,
  174. donut : true,
  175. colors : ['#01939A','#FFAB00','#FF0700','#A60000','#006363','#679B00'],
  176. field : 'country',
  177. //query : { query: "*", field: "country"}
  178. query : { field : "speaker", query : 'play_name:"King Lear"' },
  179. group : "pies"
  180. },
  181. ]
  182. },
  183. {
  184. title: "Lines of Plays",
  185. height: "210px",
  186. collapse: false,
  187. panels: [
  188. {
  189. title : "Plays",
  190. type : "pie",
  191. span : 4,
  192. size : 8,
  193. labels : false,
  194. colors : ['#BF3030','#1D7373','#86B32D','#A60000','#006363','#679B00'],
  195. field : 'country',
  196. mode : "terms",
  197. query : { query:"*", field:"play_name" }
  198. },
  199. {
  200. type : "text",
  201. title : "About",
  202. style : {"font-size":"85%"},
  203. span: 0,
  204. content : "The table panel can be sorted via a sort panel, or by" +
  205. " clicking the table header. Unlike the donut charts above, this" +
  206. " pie is bound to the query input. Try searching for a speaker" +
  207. " (eg, FALSTAFF) to see a break down of the plays they appear in.",
  208. },
  209. {
  210. title : "Newest Lines",
  211. editable: true,
  212. type : "table",
  213. span : 6,
  214. query : "*",
  215. style : {"font-size":"85%"},
  216. fields : ['@timestamp','play_name','speaker','text_entry'],
  217. },
  218. {
  219. type : "fields",
  220. title : "Fields",
  221. span : 2,
  222. },
  223. ]
  224. },
  225. {
  226. title: "Monkey Monitoring",
  227. collapse: false,
  228. height: "225px",
  229. panels: [
  230. {
  231. title : "Monkey Shakespeare Lines",
  232. type : "histogram",
  233. span : 5,
  234. show : ['bars','stack'],
  235. fill : 1,
  236. query : [
  237. { label : "Query Hits", query : "*", color: '#86B32D' },
  238. { label : "Hamlet", query : "play_name:Hamlet" },
  239. { label : "Macbeth", query : "play_name:macbeth" },
  240. ],
  241. },
  242. {
  243. title : "Monkey Typists Worldwide",
  244. type : "map",
  245. map : 'world',
  246. field : "country",
  247. span : 5,
  248. size : 500,
  249. query : "*",
  250. },
  251. {
  252. type : "text",
  253. title : "About",
  254. style : {"font-size":"85%"},
  255. span: 2,
  256. content : "Histograms can show multiple queries. In the case that a" +
  257. " multi-query histogram is bound to a query input, only the first" +
  258. " data series will be altered. All panels exist in the 'default'" +
  259. " group by default. The map panel can be used to visualize events" +
  260. " with attached geo data.",
  261. },
  262. ]
  263. }
  264. ]
  265. };