summaryrefslogtreecommitdiff
path: root/elastic/templates
diff options
context:
space:
mode:
Diffstat (limited to 'elastic/templates')
-rw-r--r--elastic/templates/dashboard-per-test.mustache4
-rw-r--r--elastic/templates/visualization-visState-cpu.mustache117
-rw-r--r--elastic/templates/visualization-visState-memory.mustache (renamed from elastic/templates/visualization-visState-resources.mustache)216
3 files changed, 227 insertions, 110 deletions
diff --git a/elastic/templates/dashboard-per-test.mustache b/elastic/templates/dashboard-per-test.mustache
index d9b8b52..a397546 100644
--- a/elastic/templates/dashboard-per-test.mustache
+++ b/elastic/templates/dashboard-per-test.mustache
@@ -1,8 +1,8 @@
{
"title": "Benchmarks for {{{test_name}}}",
"hits": 0,
- "description": "All Soledad benchmak tests run on Weasel",
- "panelsJSON": "[{\"size_x\":6,\"size_y\":3,\"panelIndex\":1,\"type\":\"visualization\",\"id\":\"{{{test_name}}}_time\",\"col\":1,\"row\":1},{\"size_x\":6,\"size_y\":3,\"panelIndex\":2,\"type\":\"visualization\",\"id\":\"{{{test_name}}}_resources\",\"col\":7,\"row\":1}]",
+ "description": "Per-test benchmarks for {{{test_name}}}",
+ "panelsJSON": "[{\"col\":1,\"id\":\"{{{test_name}}}_time\",\"panelIndex\":1,\"row\":1,\"size_x\":6,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"{{{test_name}}}_cpu\",\"panelIndex\":3,\"row\":4,\"size_x\":6,\"size_y\":3,\"type\":\"visualization\"},{\"size_x\":6,\"size_y\":3,\"panelIndex\":4,\"type\":\"visualization\",\"id\":\"{{{test_name}}}_memory\",\"col\":7,\"row\":1}]",
"optionsJSON": "{\"darkTheme\":true}",
"uiStateJSON": "{}",
"version": 1,
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}}}"
+}
diff --git a/elastic/templates/visualization-visState-resources.mustache b/elastic/templates/visualization-visState-memory.mustache
index 53b008a..7fc3bb8 100644
--- a/elastic/templates/visualization-visState-resources.mustache
+++ b/elastic/templates/visualization-visState-memory.mustache
@@ -1,141 +1,141 @@
{
- "aggs" : [
- {
- "type" : "avg",
- "enabled" : true,
- "params" : {
- "field" : "extra_info.cpu_percent",
- "customLabel" : "CPU usage (%)"
- },
- "schema" : "metric",
- "id" : "1"
- },
- {
- "id" : "2",
- "schema" : "segment",
- "type" : "terms",
- "enabled" : true,
- "params" : {
- "orderAgg" : {
- "id" : "2-orderAgg",
- "schema" : "orderAgg",
- "params" : {
- "field" : "commit_info.time"
- },
- "type" : "min",
- "enabled" : true
- },
- "orderBy" : "custom",
- "customLabel" : "Commit info: id and date",
- "order" : "asc",
- "size" : 1000,
- "field" : "commit_id_and_date"
- }
- },
- {
- "schema" : "metric",
- "id" : "3",
- "params" : {
- "field" : "extra_info.memory_percent.stats.max",
- "customLabel" : "Memory usage (%)"
- },
- "type" : "avg",
- "enabled" : true
- }
- ],
- "title" : "Resources used by {{{test_name}}}",
+ "listeners" : {},
"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
- }
- ],
+ "interpolate" : "linear",
"legendPosition" : "right",
+ "setYExtents" : false,
"seriesParams" : [
{
- "showCircles" : true,
- "type" : "line",
- "interpolate" : "linear",
+ "drawLinesBetweenPoints" : true,
"data" : {
- "id" : "1",
- "label" : "CPU usage (%)"
+ "label" : "Mean memory (%)",
+ "id" : "1"
},
- "drawLinesBetweenPoints" : true,
+ "showCircles" : true,
+ "interpolate" : "linear",
+ "type" : "line",
"show" : true,
- "lineWidth" : 2,
"valueAxis" : "ValueAxis-1",
- "mode" : "normal"
+ "mode" : "normal",
+ "lineWidth" : 2
},
{
- "showCircles" : true,
- "interpolate" : "linear",
- "type" : "line",
+ "show" : true,
+ "mode" : "normal",
+ "lineWidth" : 2,
+ "valueAxis" : "ValueAxis-1",
"data" : {
- "label" : "Memory usage (%)",
+ "label" : "Max memory (%)",
"id" : "3"
},
"drawLinesBetweenPoints" : true,
- "show" : true,
- "mode" : "normal",
- "valueAxis" : "ValueAxis-1",
- "lineWidth" : 2
+ "interpolate" : "linear",
+ "type" : "line",
+ "showCircles" : true
}
],
- "setYExtents" : false,
- "defaultYExtents" : false,
- "radiusRatio" : 9,
- "grid" : {
- "categoryLines" : false,
- "style" : {
- "color" : "#eee"
- }
- },
- "times" : [],
- "interpolate" : "linear",
- "showCircles" : true,
- "scale" : "linear",
- "addTimeMarker" : false,
+ "drawLinesBetweenPoints" : true,
"addLegend" : true,
"addTooltip" : true,
- "drawLinesBetweenPoints" : true,
"categoryAxes" : [
{
"id" : "CategoryAxis-1",
+ "scale" : {
+ "type" : "linear"
+ },
"style" : {},
+ "type" : "category",
+ "show" : false,
+ "title" : {
+ "text" : "Commit info: id and date"
+ },
"labels" : {
- "show" : true,
- "truncate" : 100
+ "truncate" : 100,
+ "show" : true
},
- "show" : false,
+ "position" : "bottom"
+ }
+ ],
+ "times" : [],
+ "valueAxes" : [
+ {
+ "style" : {},
+ "show" : true,
+ "name" : "LeftAxis-1",
+ "id" : "ValueAxis-1",
"scale" : {
+ "mode" : "normal",
"type" : "linear"
},
- "position" : "bottom",
- "type" : "category",
+ "position" : "left",
+ "type" : "value",
"title" : {
- "text" : "Commit info: id and date"
+ "text" : ""
+ },
+ "labels" : {
+ "rotate" : 0,
+ "filter" : false,
+ "show" : true,
+ "truncate" : 100
}
}
- ]
+ ],
+ "showCircles" : true,
+ "scale" : "linear",
+ "grid" : {
+ "style" : {
+ "color" : "#eee"
+ },
+ "categoryLines" : false
+ },
+ "defaultYExtents" : false,
+ "radiusRatio" : 9,
+ "addTimeMarker" : false
},
- "type" : "line",
- "listeners" : {}
+ "aggs" : [
+ {
+ "enabled" : true,
+ "schema" : "metric",
+ "params" : {
+ "field" : "extra_info.memory_percent.stats.mean",
+ "customLabel" : "Mean memory (%)"
+ },
+ "type" : "avg",
+ "id" : "1"
+ },
+ {
+ "type" : "terms",
+ "id" : "2",
+ "params" : {
+ "customLabel" : "Commit id and time",
+ "orderAgg" : {
+ "id" : "2-orderAgg",
+ "type" : "min",
+ "enabled" : true,
+ "schema" : "orderAgg",
+ "params" : {
+ "field" : "commit_info.time"
+ }
+ },
+ "size" : 50,
+ "order" : "desc",
+ "field" : "commit_id_and_date",
+ "orderBy" : "custom"
+ },
+ "enabled" : true,
+ "schema" : "segment"
+ },
+ {
+ "type" : "avg",
+ "id" : "3",
+ "enabled" : true,
+ "schema" : "metric",
+ "params" : {
+ "field" : "extra_info.memory_percent.stats.max",
+ "customLabel" : "Maximum memory (%)"
+ }
+ }
+ ],
+ "title" : "Memory usage: {{{test_name}}}",
+ "type" : "line"
}