From 231bafb691d60151ba5fdb73258780e3136e845a Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 8 Jun 2017 12:54:19 -0300 Subject: [elastic] create resources visualization --- .../visualization-visState-resources.mustache | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 elastic/templates/visualization-visState-resources.mustache (limited to 'elastic/templates/visualization-visState-resources.mustache') diff --git a/elastic/templates/visualization-visState-resources.mustache b/elastic/templates/visualization-visState-resources.mustache new file mode 100644 index 0000000..d47db6b --- /dev/null +++ b/elastic/templates/visualization-visState-resources.mustache @@ -0,0 +1,60 @@ +{ + "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", + "params" : { + "field" : "extra_info.cpu_percent" + }, + "enabled" : true, + "id" : "1" + }, + { + "enabled" : true, + "id" : "2", + "params" : { + "order" : "asc", + "orderBy" : "custom", + "field" : "commit_id_and_date", + "size" : 1000, + "orderAgg" : { + "params" : { + "field" : "commit_info.time" + }, + "schema" : "orderAgg", + "type" : "min", + "enabled" : true, + "id" : "2-orderAgg" + } + }, + "schema" : "segment", + "type" : "terms" + }, + { + "enabled" : true, + "id" : "3", + "schema" : "metric", + "params" : { + "field" : "extra_info.memory_percent.stats.max" + }, + "type" : "avg" + } + ] +} -- cgit v1.2.3