diff options
author | fmenguy <francoisregis.menguy@orange.com> | 2020-10-05 18:13:05 +0200 |
---|---|---|
committer | Fran�ois-R�gis Menguy <francoisregis.menguy@orange.com> | 2021-03-11 12:17:48 +0000 |
commit | c3e9d0fc0076f0a2930f13366255b0e8e65fb814 (patch) | |
tree | 65293a4fbd1e163ccec18f52b42ed0df10af3b02 /kibana/visualizations/ndr_capacity_gbps_scatter_plot.json | |
parent | affd504490093d4f62aa89900ba40e8c8be6e412 (diff) |
Add Kibana visualizations examples for NDR result
Change-Id: I652dc2c3d69ae5f6bff5019b0868d1becaceec63
Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
Diffstat (limited to 'kibana/visualizations/ndr_capacity_gbps_scatter_plot.json')
-rw-r--r-- | kibana/visualizations/ndr_capacity_gbps_scatter_plot.json | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/kibana/visualizations/ndr_capacity_gbps_scatter_plot.json b/kibana/visualizations/ndr_capacity_gbps_scatter_plot.json new file mode 100644 index 0000000..9908e9d --- /dev/null +++ b/kibana/visualizations/ndr_capacity_gbps_scatter_plot.json @@ -0,0 +1,108 @@ +{ + $schema: "https://vega.github.io/schema/vega-lite/v2.json" + title: "Capacity in Gbps - 0.001% loss ratio" + data: { + url: { + %context%: true + %timefield%: "@timestamp" + index: resu* + body: { + _source: ["@timestamp", "_source", "offered_tx_rate_bps", "flow_count", "frame_size", "user_label"] + }, + size: 10000 + }, + format: { property: "hits.hits" } + }, + transform: [ + { calculate: "datum._source['offered_tx_rate_bps'] / 1000000000" as: "Offered load (Gbps)"}, + { calculate: "datum._source['flow_count']" as: "Flow count"}, + { calculate: "isNaN(toNumber(datum._source['frame_size'])) ? 362 : toNumber(datum._source['frame_size'])" as: "Frame size (bytes)"} + { calculate: "datum._source['user_label'] + '-' + datum._source['flow_count']" as: "label"} + ], + center: true, + hconcat: [ + { + width:10, + selection: { + legendSel: { + type: "multi", + encodings: [ "color", "shape" ], + toggle: "event.shiftKey" + } + }, + encoding: { + y: { + field: "label", + type: "nominal", + axis: { + title: "", + domain: false, + ticks: false, + offset: 10 + }, + }, + color: { + condition: { + selection: "legendSel", + field: "label", + type: "nominal", + legend: null + }, + value: "lightgrey" + } + }, + mark: { + type: "square", + size: 120, + opacity: 1 + } + }, + { + width:500, + height:280, + transform: [ + {filter: { selection: "legendSel"}} + + ], + mark: { + "type": "point", + "tooltip": true + }, + selection: { + grid: { + type: "interval", + resolve: "global", + bind: "scales", + translate: "[mousedown[!event.shiftKey], window:mouseup] > window:mousemove!", + zoom: "wheel![!event.shiftKey]" + }, + pts: { + type: "single", + fields: ["label"] + } + }, + encoding: { + x: { + field: "Frame size (bytes)", + type: "quantitative" + } + y: { + field: "Offered load (Gbps)", + type: "quantitative" + } + color: { + field: "label", "type": "nominal", + "legend": null + } + shape: { + field: "Flow count", + type: "nominal" + } + tooltip: { + "field": "Offered load (Gbps)", + "type": "quantitative" + } + } + } + ] +}
\ No newline at end of file |