Top up version to 1.5.0
[dcaegen2/collectors/hv-ves.git] / tools / performance / cloud / grafana / dashboards / performance-tests.yaml
1 # ============LICENSE_START=======================================================
2 # dcaegen2-collectors-veshv
3 # ================================================================================
4 # Copyright (C) 2019 NOKIA
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #      http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=========================================================
18
19 apiVersion: v1
20 kind: ConfigMap
21 metadata:
22   name: grafana-performance-tests
23   namespace: onap
24   labels:
25     name: grafana-dashboards
26 data:
27   performance-tests.json: |-
28     {
29       "annotations": {
30         "list": [
31           {
32             "builtIn": 1,
33             "datasource": "Prometheus",
34             "enable": true,
35             "hide": true,
36             "iconColor": "rgba(0, 211, 255, 1)",
37             "name": "Annotations & Alerts",
38             "type": "dashboard"
39           }
40         ]
41       },
42       "editable": true,
43       "gnetId": null,
44       "graphTooltip": 0,
45       "iteration": 1571408429976,
46       "links": [],
47       "panels": [
48         {
49           "aliasColors": {},
50           "bars": false,
51           "dashLength": 10,
52           "dashes": false,
53           "datasource": null,
54           "fill": 1,
55           "fillGradient": 0,
56           "gridPos": {
57             "h": 11,
58             "w": 12,
59             "x": 0,
60             "y": 0
61           },
62           "id": 12,
63           "legend": {
64             "avg": false,
65             "current": false,
66             "max": false,
67             "min": false,
68             "show": true,
69             "total": false,
70             "values": false
71           },
72           "lines": true,
73           "linewidth": 1,
74           "nullPointMode": "null",
75           "options": {
76             "dataLinks": []
77           },
78           "percentage": false,
79           "pointradius": 2,
80           "points": false,
81           "renderer": "flot",
82           "seriesOverrides": [],
83           "spaceLength": 10,
84           "stack": false,
85           "steppedLine": false,
86           "targets": [
87             {
88               "expr": "irate(hvves_data_received_bytes_total[30s])",
89               "legendFormat": "Incoming data rate",
90               "refId": "A"
91             }
92           ],
93           "thresholds": [],
94           "timeFrom": "20m",
95           "timeRegions": [],
96           "timeShift": null,
97           "title": "HV-VES incoming data rate",
98           "tooltip": {
99             "shared": true,
100             "sort": 0,
101             "value_type": "individual"
102           },
103           "type": "graph",
104           "xaxis": {
105             "buckets": null,
106             "mode": "time",
107             "name": null,
108             "show": true,
109             "values": []
110           },
111           "yaxes": [
112             {
113               "format": "Bps",
114               "label": null,
115               "logBase": 1,
116               "max": null,
117               "min": "0",
118               "show": true
119             },
120             {
121               "format": "short",
122               "label": null,
123               "logBase": 1,
124               "max": null,
125               "min": null,
126               "show": true
127             }
128           ],
129           "yaxis": {
130             "align": false,
131             "alignLevel": null
132           }
133         },
134         {
135           "aliasColors": {},
136           "bars": false,
137           "dashLength": 10,
138           "dashes": false,
139           "datasource": null,
140           "fill": 0,
141           "fillGradient": 0,
142           "gridPos": {
143             "h": 11,
144             "w": 12,
145             "x": 12,
146             "y": 0
147           },
148           "id": 6,
149           "legend": {
150             "alignAsTable": false,
151             "avg": false,
152             "current": false,
153             "hideEmpty": true,
154             "hideZero": true,
155             "max": false,
156             "min": false,
157             "show": true,
158             "total": false,
159             "values": false
160           },
161           "lines": true,
162           "linewidth": 1,
163           "links": [],
164           "nullPointMode": "null",
165           "options": {
166             "dataLinks": []
167           },
168           "percentage": false,
169           "pointradius": 2,
170           "points": false,
171           "renderer": "flot",
172           "seriesOverrides": [],
173           "spaceLength": 10,
174           "stack": false,
175           "steppedLine": false,
176           "targets": [
177             {
178               "expr": "rate(hv_kafka_consumer_travel_time_seconds_sum{instance=\"kafka-processing-consumer.onap:6063\"}[1h])/rate(hv_kafka_consumer_travel_time_seconds_count{instance=\"kafka-processing-consumer.onap:6063\"}[1h])",
179               "format": "time_series",
180               "interval": "",
181               "intervalFactor": 1,
182               "legendFormat": "average",
183               "refId": "A"
184             },
185             {
186               "expr": "histogram_quantile(0.90, sum( rate(hv_kafka_consumer_travel_time_seconds_bucket[1h]) )by(le) )",
187               "format": "time_series",
188               "intervalFactor": 1,
189               "legendFormat": "90th percentile",
190               "refId": "B"
191             },
192             {
193               "expr": "histogram_quantile(0.95, sum( rate(hv_kafka_consumer_travel_time_seconds_bucket[1h]) )by(le) )",
194               "format": "time_series",
195               "intervalFactor": 1,
196               "legendFormat": "95th percentile",
197               "refId": "C"
198             },
199             {
200               "expr": "histogram_quantile(0.99, sum( rate(hv_kafka_consumer_travel_time_seconds_bucket[1h]) )by(le) )",
201               "format": "time_series",
202               "hide": false,
203               "intervalFactor": 1,
204               "legendFormat": "95th percentile",
205               "refId": "D"
206             }
207           ],
208           "thresholds": [],
209           "timeFrom": "20m",
210           "timeRegions": [],
211           "timeShift": null,
212           "title": "End to end message travel time",
213           "tooltip": {
214             "shared": true,
215             "sort": 0,
216             "value_type": "individual"
217           },
218           "type": "graph",
219           "xaxis": {
220             "buckets": null,
221             "mode": "time",
222             "name": null,
223             "show": true,
224             "values": []
225           },
226           "yaxes": [
227             {
228               "format": "s",
229               "label": null,
230               "logBase": 1,
231               "max": null,
232               "min": "0",
233               "show": true
234             },
235             {
236               "format": "short",
237               "label": null,
238               "logBase": 1,
239               "max": null,
240               "min": null,
241               "show": true
242             }
243           ],
244           "yaxis": {
245             "align": false,
246             "alignLevel": null
247           }
248         },
249         {
250           "aliasColors": {},
251           "bars": false,
252           "dashLength": 10,
253           "dashes": false,
254           "datasource": null,
255           "fill": 1,
256           "fillGradient": 0,
257           "gridPos": {
258             "h": 11,
259             "w": 12,
260             "x": 0,
261             "y": 11
262           },
263           "id": 14,
264           "legend": {
265             "avg": false,
266             "current": false,
267             "max": false,
268             "min": false,
269             "show": true,
270             "total": false,
271             "values": false
272           },
273           "lines": true,
274           "linewidth": 1,
275           "nullPointMode": "null",
276           "options": {
277             "dataLinks": []
278           },
279           "percentage": false,
280           "pointradius": 2,
281           "points": false,
282           "renderer": "flot",
283           "seriesOverrides": [],
284           "spaceLength": 10,
285           "stack": false,
286           "steppedLine": false,
287           "targets": [
288             {
289               "expr": "hvves_messages_received_total - hvves_messages_sent_total",
290               "legendFormat": "Processing message queue",
291               "refId": "A"
292             }
293           ],
294           "thresholds": [],
295           "timeFrom": "20m",
296           "timeRegions": [],
297           "timeShift": null,
298           "title": "HV-VES processing message queue",
299           "tooltip": {
300             "shared": true,
301             "sort": 0,
302             "value_type": "individual"
303           },
304           "type": "graph",
305           "xaxis": {
306             "buckets": null,
307             "mode": "time",
308             "name": null,
309             "show": true,
310             "values": []
311           },
312           "yaxes": [
313             {
314               "format": "short",
315               "label": null,
316               "logBase": 1,
317               "max": null,
318               "min": "0",
319               "show": true
320             },
321             {
322               "format": "short",
323               "label": null,
324               "logBase": 1,
325               "max": null,
326               "min": null,
327               "show": true
328             }
329           ],
330           "yaxis": {
331             "align": false,
332             "alignLevel": null
333           }
334         },
335         {
336           "aliasColors": {},
337           "bars": false,
338           "cacheTimeout": null,
339           "dashLength": 10,
340           "dashes": false,
341           "datasource": null,
342           "fill": 1,
343           "fillGradient": 0,
344           "gridPos": {
345             "h": 11,
346             "w": 12,
347             "x": 12,
348             "y": 11
349           },
350           "id": 10,
351           "legend": {
352             "avg": false,
353             "current": false,
354             "max": false,
355             "min": false,
356             "show": true,
357             "total": false,
358             "values": false
359           },
360           "lines": true,
361           "linewidth": 1,
362           "links": [],
363           "nullPointMode": "null",
364           "options": {
365             "dataLinks": []
366           },
367           "percentage": false,
368           "pointradius": 2,
369           "points": false,
370           "renderer": "flot",
371           "seriesOverrides": [],
372           "spaceLength": 10,
373           "stack": false,
374           "steppedLine": false,
375           "targets": [
376             {
377               "expr": "sum(hv_kafka_consumer_offset_partition)",
378               "intervalFactor": 1,
379               "legendFormat": "Kafka consumer offset",
380               "refId": "A"
381             }
382           ],
383           "thresholds": [],
384           "timeFrom": "20m",
385           "timeRegions": [],
386           "timeShift": null,
387           "title": "Total number of messages on topic",
388           "tooltip": {
389             "shared": true,
390             "sort": 0,
391             "value_type": "individual"
392           },
393           "type": "graph",
394           "xaxis": {
395             "buckets": null,
396             "mode": "time",
397             "name": null,
398             "show": true,
399             "values": []
400           },
401           "yaxes": [
402             {
403               "format": "short",
404               "label": null,
405               "logBase": 1,
406               "max": null,
407               "min": "0",
408               "show": true
409             },
410             {
411               "format": "short",
412               "label": null,
413               "logBase": 1,
414               "max": null,
415               "min": null,
416               "show": true
417             }
418           ],
419           "yaxis": {
420             "align": false,
421             "alignLevel": null
422           }
423         }
424       ],
425       "refresh": "5s",
426       "schemaVersion": 20,
427       "style": "dark",
428       "tags": [],
429       "templating": {
430         "list": [
431           {
432             "allValue": null,
433             "current": {
434               "selected": false,
435               "text": "1h",
436               "value": "1h"
437             },
438             "hide": 0,
439             "includeAll": false,
440             "label": null,
441             "multi": false,
442             "name": "time_range",
443             "options": [
444               {
445                 "selected": false,
446                 "text": "5m",
447                 "value": "5m"
448               },
449               {
450                 "selected": false,
451                 "text": "10m",
452                 "value": "10m"
453               },
454               {
455                 "selected": false,
456                 "text": "15m",
457                 "value": "15m"
458               },
459               {
460                 "selected": false,
461                 "text": "30m",
462                 "value": "30m"
463               },
464               {
465                 "selected": true,
466                 "text": "1h",
467                 "value": "1h"
468               }
469             ],
470             "query": "5m, 10m, 15m, 30m, 1h",
471             "skipUrlSync": false,
472             "type": "custom"
473           }
474         ]
475       },
476       "time": {
477         "from": "now-1h",
478         "to": "now"
479       },
480       "timepicker": {
481         "refresh_intervals": [
482           "5s",
483           "10s",
484           "30s",
485           "1m",
486           "5m",
487           "15m",
488           "30m",
489           "1h",
490           "2h",
491           "1d"
492         ],
493         "time_options": [
494           "5m",
495           "15m",
496           "1h",
497           "6h",
498           "12h",
499           "24h",
500           "2d",
501           "7d",
502           "30d"
503         ]
504       },
505       "timezone": "",
506       "title": "Performance tests",
507       "uid": "ErPSMaIZk",
508       "version": 1
509     }