summaryrefslogtreecommitdiff
path: root/elastic/templates/visualization-visState-memory.mustache
blob: 93695ed7ba3ea4ef60ee3f0af4e74e3ead98145a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
   "listeners" : {},
   "params" : {
      "interpolate" : "linear",
      "legendPosition" : "right",
      "setYExtents" : false,
      "seriesParams" : [
         {
            "drawLinesBetweenPoints" : true,
            "data" : {
               "label" : "Mean memory (%)",
               "id" : "1"
            },
            "showCircles" : true,
            "interpolate" : "linear",
            "type" : "line",
            "show" : true,
            "valueAxis" : "ValueAxis-1",
            "mode" : "normal",
            "lineWidth" : 2
         },
         {
            "show" : true,
            "mode" : "normal",
            "lineWidth" : 2,
            "valueAxis" : "ValueAxis-1",
            "data" : {
               "label" : "Max memory (%)",
               "id" : "3"
            },
            "drawLinesBetweenPoints" : true,
            "interpolate" : "linear",
            "type" : "line",
            "showCircles" : true
         }
      ],
      "drawLinesBetweenPoints" : true,
      "addLegend" : true,
      "addTooltip" : true,
      "categoryAxes" : [
         {
            "id" : "CategoryAxis-1",
            "scale" : {
               "type" : "linear"
            },
            "style" : {},
            "type" : "category",
            "show" : false,
            "title" : {
               "text" : "Commit info: id and date"
            },
            "labels" : {
               "truncate" : 100,
               "show" : true
            },
            "position" : "bottom"
         }
      ],
      "times" : [],
      "valueAxes" : [
         {
            "style" : {},
            "show" : true,
            "name" : "LeftAxis-1",
            "id" : "ValueAxis-1",
            "scale" : {
               "mode" : "normal",
               "type" : "linear"
            },
            "position" : "left",
            "type" : "value",
            "title" : {
               "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
   },
   "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" : 10000,
            "order" : "asc",
            "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"
}