summaryrefslogtreecommitdiff
path: root/elastic/templates/visualization-visState-resources.mustache
blob: 53b008aa1bb8a2f721b07b0ef8a54ecd82f6b6fb (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
{
   "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}}}",
   "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" : {}
}