histogram.asciidoc 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. == Histogram
  2. Status: *Stable*
  3. The histogram panel allow for the display of time charts. It includes several modes and tranformations
  4. to display event counts, mean, min, max and total of numeric fields, and derivatives of counter
  5. fields.
  6. // src/app/panels/histogram/module.js:5
  7. === Parameters
  8. ==== Axis options
  9. mode:: Value to use for the y-axis. For all modes other than count, +value_field+ must be
  10. defined. Possible values: count, mean, max, min, total.
  11. // src/app/panels/histogram/module.js:65
  12. time_field:: x-axis field. This must be defined as a date type in Elasticsearch.
  13. // src/app/panels/histogram/module.js:72
  14. value_field:: y-axis field if +mode+ is set to mean, max, min or total. Must be numeric.
  15. // src/app/panels/histogram/module.js:76
  16. x-axis:: Show the x-axis
  17. // src/app/panels/histogram/module.js:80
  18. y-axis:: Show the y-axis
  19. // src/app/panels/histogram/module.js:84
  20. scale:: Scale the y-axis by this factor
  21. // src/app/panels/histogram/module.js:88
  22. y_as_bytes:: Show the y-axis scale as bytes, automatically round to KB, MB, GB, etc.
  23. // src/app/panels/histogram/module.js:92
  24. ==== Annotations
  25. annotate object:: A query can be specified, the results of which will be displayed as markers on
  26. the chart. For example, for noting code deploys.
  27. annotate.enable::: Should annotations, aka markers, be shown?
  28. annotate.query::: Lucene query_string syntax query to use for markers.
  29. annotate.size::: Max number of markers to show
  30. annotate.field::: Field from documents to show
  31. annotate.sort::: Sort array in format [field,order], For example [`@timestamp',`desc']
  32. // src/app/panels/histogram/module.js:115
  33. ==== Interval options
  34. auto_int:: Automatically scale intervals?
  35. // src/app/panels/histogram/module.js:132
  36. resolution:: If auto_int is true, shoot for this many bars.
  37. // src/app/panels/histogram/module.js:137
  38. interval:: If auto_int is set to false, use this as the interval.
  39. // src/app/panels/histogram/module.js:141
  40. interval:: Array of possible intervals in the *View* selector. Example [`auto',`1s',`5m',`3h']
  41. // src/app/panels/histogram/module.js:145
  42. ==== Drawing options
  43. lines:: Show line chart
  44. // src/app/panels/histogram/module.js:149
  45. fill:: Area fill factor for line charts, 1-10
  46. // src/app/panels/histogram/module.js:154
  47. linewidth:: Weight of lines in pixels
  48. // src/app/panels/histogram/module.js:158
  49. points:: Show points on chart
  50. // src/app/panels/histogram/module.js:162
  51. pointradius:: Size of points in pixels
  52. // src/app/panels/histogram/module.js:166
  53. bars:: Show bars on chart
  54. // src/app/panels/histogram/module.js:170
  55. stack:: Stack multiple series
  56. // src/app/panels/histogram/module.js:174
  57. spyable:: Show inspect icon
  58. // src/app/panels/histogram/module.js:178
  59. zoomlinks:: Show `Zoom Out' link
  60. // src/app/panels/histogram/module.js:182
  61. options:: Show quick view options section
  62. // src/app/panels/histogram/module.js:186
  63. legend:: Display the legond
  64. // src/app/panels/histogram/module.js:190
  65. show_query:: If no alias is set, should the query be displayed?
  66. // src/app/panels/histogram/module.js:194
  67. interactive:: Enable click-and-drag to zoom functionality
  68. // src/app/panels/histogram/module.js:198
  69. legend_counts:: Show counts in legend
  70. // src/app/panels/histogram/module.js:202
  71. ==== Transformations
  72. timezone:: Correct for browser timezone?. Valid values: browser, utc
  73. // src/app/panels/histogram/module.js:206
  74. percentage:: Show the y-axis as a percentage of the axis total. Only makes sense for multiple
  75. queries
  76. // src/app/panels/histogram/module.js:211
  77. zerofill:: Improves the accuracy of line charts at a small performance cost.
  78. // src/app/panels/histogram/module.js:216
  79. derivative:: Show each point on the x-axis as the change from the previous point
  80. // src/app/panels/histogram/module.js:220
  81. tooltip object::
  82. tooltip.value_type::: Individual or cumulative controls how tooltips are display on stacked charts
  83. tooltip.query_as_alias::: If no alias is set, should the query be displayed?
  84. // src/app/panels/histogram/module.js:224
  85. grid object:: Min and max y-axis values
  86. grid.min::: Minimum y-axis value
  87. grid.max::: Maximum y-axis value
  88. // src/app/panels/histogram/module.js:96
  89. ==== Queries
  90. queries object:: This object describes the queries to use on this panel.
  91. queries.mode::: Of the queries available, which to use. Options: +all, pinned, unpinned, selected+
  92. queries.ids::: In +selected+ mode, which query ids are selected.
  93. // src/app/panels/histogram/module.js:105