dashboards.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. },
  33. {
  34. type : "sort",
  35. span : 4,
  36. }
  37. ]
  38. },
  39. {
  40. title: "Monkey Monitoring",
  41. collapse: false,
  42. height: "300px",
  43. panels: [
  44. {
  45. title : "Monkey Shakespeare Lines",
  46. type : "histogram",
  47. span : 6,
  48. show : ['lines'],
  49. fill : 0.3,
  50. query : [
  51. { label : "Query", query : "*", color: '#86B32D' },
  52. { label : "Hamlet", query : "play_name:Hamlet" },
  53. { label : "Macbeth", query : "play_name:macbeth" },
  54. ],
  55. },
  56. {
  57. title : "Monkey Typists Worldwide",
  58. type : "map",
  59. map : 'world',
  60. field : "country",
  61. span : 6,
  62. size : 500,
  63. query : "*",
  64. }
  65. ]
  66. },
  67. {
  68. title: "Lines of Plays",
  69. height: "250px",
  70. panels: [
  71. {
  72. title : "Plays",
  73. type : "pie",
  74. span : 4,
  75. size : 8,
  76. donut : true,
  77. colors : ['#BF3030','#1D7373','#86B32D','#A60000','#006363','#679B00'],
  78. field : 'country',
  79. //query : { query: "*", field: "country"}
  80. query : { field : "play_name", query : "*" },
  81. },
  82. {
  83. title : "Newest Lines",
  84. type : "table",
  85. span : 8,
  86. query : "*",
  87. fields : ['@timestamp','play_name','speaker','text_entry'],
  88. }
  89. ]
  90. }
  91. ]
  92. };