From 89aa15112096356cc95871ec539aa739ca0c6c05 Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 21 Jun 2017 09:23:03 -0300 Subject: [elastic] remove x-axis labels --- .../visualization-visState-resources.mustache | 155 ++++++++++++++++----- 1 file changed, 118 insertions(+), 37 deletions(-) (limited to 'elastic/templates/visualization-visState-resources.mustache') diff --git a/elastic/templates/visualization-visState-resources.mustache b/elastic/templates/visualization-visState-resources.mustache index d47db6b..53b008a 100644 --- a/elastic/templates/visualization-visState-resources.mustache +++ b/elastic/templates/visualization-visState-resources.mustache @@ -1,60 +1,141 @@ { - "type" : "line", - "listeners" : {}, - "title" : "Test resources for {{{test_name}}}", - "params" : { - "legendPosition" : "right", - "defaultYExtents" : false, - "setYExtents" : false, - "drawLinesBetweenPoints" : true, - "interpolate" : "linear", - "addTimeMarker" : false, - "radiusRatio" : 9, - "showCircles" : true, - "scale" : "linear", - "addTooltip" : true, - "addLegend" : true, - "times" : [] - }, "aggs" : [ { "type" : "avg", - "schema" : "metric", + "enabled" : true, "params" : { - "field" : "extra_info.cpu_percent" + "field" : "extra_info.cpu_percent", + "customLabel" : "CPU usage (%)" }, - "enabled" : true, + "schema" : "metric", "id" : "1" }, { - "enabled" : true, "id" : "2", + "schema" : "segment", + "type" : "terms", + "enabled" : true, "params" : { - "order" : "asc", - "orderBy" : "custom", - "field" : "commit_id_and_date", - "size" : 1000, "orderAgg" : { + "id" : "2-orderAgg", + "schema" : "orderAgg", "params" : { "field" : "commit_info.time" }, - "schema" : "orderAgg", "type" : "min", - "enabled" : true, - "id" : "2-orderAgg" - } - }, - "schema" : "segment", - "type" : "terms" + "enabled" : true + }, + "orderBy" : "custom", + "customLabel" : "Commit info: id and date", + "order" : "asc", + "size" : 1000, + "field" : "commit_id_and_date" + } }, { - "enabled" : true, - "id" : "3", "schema" : "metric", + "id" : "3", "params" : { - "field" : "extra_info.memory_percent.stats.max" + "field" : "extra_info.memory_percent.stats.max", + "customLabel" : "Memory usage (%)" }, - "type" : "avg" + "type" : "avg", + "enabled" : true } - ] + ], + "title" : "Resources used by {{{test_name}}}", + "params" : { + "valueAxes" : [ + { + "scale" : { + "mode" : "normal", + "type" : "linear" + }, + "position" : "left", + "type" : "value", + "title" : { + "text" : "" + }, + "name" : "LeftAxis-1", + "id" : "ValueAxis-1", + "style" : {}, + "labels" : { + "show" : true, + "filter" : false, + "rotate" : 0, + "truncate" : 100 + }, + "show" : true + } + ], + "legendPosition" : "right", + "seriesParams" : [ + { + "showCircles" : true, + "type" : "line", + "interpolate" : "linear", + "data" : { + "id" : "1", + "label" : "CPU usage (%)" + }, + "drawLinesBetweenPoints" : true, + "show" : true, + "lineWidth" : 2, + "valueAxis" : "ValueAxis-1", + "mode" : "normal" + }, + { + "showCircles" : true, + "interpolate" : "linear", + "type" : "line", + "data" : { + "label" : "Memory usage (%)", + "id" : "3" + }, + "drawLinesBetweenPoints" : true, + "show" : true, + "mode" : "normal", + "valueAxis" : "ValueAxis-1", + "lineWidth" : 2 + } + ], + "setYExtents" : false, + "defaultYExtents" : false, + "radiusRatio" : 9, + "grid" : { + "categoryLines" : false, + "style" : { + "color" : "#eee" + } + }, + "times" : [], + "interpolate" : "linear", + "showCircles" : true, + "scale" : "linear", + "addTimeMarker" : false, + "addLegend" : true, + "addTooltip" : true, + "drawLinesBetweenPoints" : true, + "categoryAxes" : [ + { + "id" : "CategoryAxis-1", + "style" : {}, + "labels" : { + "show" : true, + "truncate" : 100 + }, + "show" : false, + "scale" : { + "type" : "linear" + }, + "position" : "bottom", + "type" : "category", + "title" : { + "text" : "Commit info: id and date" + } + } + ] + }, + "type" : "line", + "listeners" : {} } -- cgit v1.2.3