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