summaryrefslogtreecommitdiff
path: root/elastic/templates/visualization-visState-cpu.mustache
diff options
context:
space:
mode:
Diffstat (limited to 'elastic/templates/visualization-visState-cpu.mustache')
-rw-r--r--elastic/templates/visualization-visState-cpu.mustache117
1 files changed, 117 insertions, 0 deletions
diff --git a/elastic/templates/visualization-visState-cpu.mustache b/elastic/templates/visualization-visState-cpu.mustache
new file mode 100644
index 0000000..e078f46
--- /dev/null
+++ b/elastic/templates/visualization-visState-cpu.mustache
@@ -0,0 +1,117 @@
+{
+ "type" : "line",
+ "aggs" : [
+ {
+ "params" : {
+ "field" : "extra_info.cpu_percent",
+ "customLabel" : "CPU usage (%)"
+ },
+ "schema" : "metric",
+ "enabled" : true,
+ "type" : "avg",
+ "id" : "1"
+ },
+ {
+ "type" : "terms",
+ "enabled" : true,
+ "schema" : "segment",
+ "params" : {
+ "orderAgg" : {
+ "params" : {
+ "field" : "commit_info.time"
+ },
+ "type" : "min",
+ "enabled" : true,
+ "schema" : "orderAgg",
+ "id" : "2-orderAgg"
+ },
+ "order" : "asc",
+ "field" : "commit_id_and_date",
+ "size" : 50,
+ "orderBy" : "custom",
+ "customLabel" : "Commit info: id and date"
+ },
+ "id" : "2"
+ }
+ ],
+ "listeners" : {},
+ "params" : {
+ "addTimeMarker" : false,
+ "showCircles" : true,
+ "addTooltip" : true,
+ "scale" : "linear",
+ "legendPosition" : "right",
+ "valueAxes" : [
+ {
+ "type" : "value",
+ "scale" : {
+ "type" : "linear",
+ "mode" : "normal"
+ },
+ "show" : true,
+ "style" : {},
+ "position" : "left",
+ "name" : "LeftAxis-1",
+ "labels" : {
+ "filter" : false,
+ "rotate" : 0,
+ "show" : true,
+ "truncate" : 100
+ },
+ "title" : {
+ "text" : "CPU usage (%)"
+ },
+ "id" : "ValueAxis-1"
+ }
+ ],
+ "addLegend" : true,
+ "grid" : {
+ "style" : {
+ "color" : "#eee"
+ },
+ "categoryLines" : false
+ },
+ "radiusRatio" : 9,
+ "defaultYExtents" : false,
+ "setYExtents" : false,
+ "interpolate" : "linear",
+ "categoryAxes" : [
+ {
+ "title" : {
+ "text" : "Commit info: id and date"
+ },
+ "id" : "CategoryAxis-1",
+ "labels" : {
+ "truncate" : 100,
+ "show" : true
+ },
+ "position" : "bottom",
+ "show" : false,
+ "style" : {},
+ "scale" : {
+ "type" : "linear"
+ },
+ "type" : "category"
+ }
+ ],
+ "drawLinesBetweenPoints" : true,
+ "seriesParams" : [
+ {
+ "drawLinesBetweenPoints" : true,
+ "show" : true,
+ "valueAxis" : "ValueAxis-1",
+ "interpolate" : "linear",
+ "type" : "line",
+ "data" : {
+ "label" : "CPU usage (%)",
+ "id" : "1"
+ },
+ "mode" : "normal",
+ "showCircles" : true,
+ "lineWidth" : 2
+ }
+ ],
+ "times" : []
+ },
+ "title" : "CPU usage for {{{test_name}}}"
+}