Top up version to 1.5.0
[dcaegen2/collectors/hv-ves.git] / tools / performance / cloud / grafana / dashboards / connections.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-connections
23   namespace: onap
24   labels:
25     name: grafana-dashboards
26 data:
27   connections.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       "id": 1,
46       "links": [],
47       "panels": [
48         {
49           "cacheTimeout": null,
50           "colorBackground": false,
51           "colorValue": true,
52           "colors": [
53             "#299c46",
54             "rgba(237, 129, 40, 0.89)",
55             "#d44a3a"
56           ],
57           "datasource": "Prometheus",
58           "format": "none",
59           "gauge": {
60             "maxValue": 10000,
61             "minValue": 0,
62             "show": true,
63             "thresholdLabels": false,
64             "thresholdMarkers": true
65           },
66           "gridPos": {
67             "h": 9,
68             "w": 6,
69             "x": 0,
70             "y": 0
71           },
72           "id": 4,
73           "interval": null,
74           "links": [],
75           "mappingType": 1,
76           "mappingTypes": [
77             {
78               "name": "value to text",
79               "value": 1
80             },
81             {
82               "name": "range to text",
83               "value": 2
84             }
85           ],
86           "maxDataPoints": 100,
87           "nullPointMode": "connected",
88           "nullText": null,
89           "postfix": "",
90           "postfixFontSize": "50%",
91           "prefix": "",
92           "prefixFontSize": "50%",
93           "rangeMaps": [
94             {
95               "from": "null",
96               "text": "N/A",
97               "to": "null"
98             }
99           ],
100           "sparkline": {
101             "fillColor": "rgba(31, 118, 189, 0.18)",
102             "full": false,
103             "lineColor": "rgb(31, 120, 193)",
104             "show": false
105           },
106           "tableColumn": "",
107           "targets": [
108             {
109               "expr": "sum(hvves_connections_active) by (value)",
110               "format": "time_series",
111               "instant": false,
112               "intervalFactor": 1,
113               "refId": "A"
114             }
115           ],
116           "thresholds": "7000,9000",
117           "title": "Currently active connections",
118           "type": "singlestat",
119           "valueFontSize": "80%",
120           "valueMaps": [
121             {
122               "op": "=",
123               "text": "N/A",
124               "value": "null"
125             }
126           ],
127           "valueName": "current"
128         },
129         {
130           "columns": [
131             {
132               "text": "Current",
133               "value": "current"
134             }
135           ],
136           "datasource": "Prometheus",
137           "fontSize": "100%",
138           "gridPos": {
139             "h": 9,
140             "w": 6,
141             "x": 6,
142             "y": 0
143           },
144           "id": 2,
145           "links": [],
146           "pageSize": 10,
147           "scroll": true,
148           "showHeader": true,
149           "sort": {
150             "col": 0,
151             "desc": true
152           },
153           "styles": [
154             {
155               "alias": "Time",
156               "dateFormat": "YYYY-MM-DD HH:mm:ss",
157               "pattern": "Time",
158               "type": "date"
159             },
160             {
161               "alias": "",
162               "colorMode": null,
163               "colors": [
164                 "rgba(245, 54, 54, 0.9)",
165                 "rgba(237, 129, 40, 0.89)",
166                 "rgba(50, 172, 45, 0.97)"
167               ],
168               "decimals": 2,
169               "pattern": "/.*/",
170               "thresholds": [],
171               "type": "number",
172               "unit": "short"
173             }
174           ],
175           "targets": [
176             {
177               "expr": "sum(hvves_connections_active) by (kubernetes_pod_name, value)",
178               "format": "time_series",
179               "instant": true,
180               "intervalFactor": 1,
181               "legendFormat": "{{kubernetes_pod_name}}",
182               "refId": "B"
183             }
184           ],
185           "timeFrom": "1h",
186           "title": "Active connections per pod",
187           "transform": "timeseries_aggregations",
188           "type": "table"
189         },
190         {
191           "aliasColors": {},
192           "bars": false,
193           "dashLength": 10,
194           "dashes": false,
195           "fill": 1,
196           "gridPos": {
197             "h": 9,
198             "w": 12,
199             "x": 12,
200             "y": 0
201           },
202           "id": 6,
203           "legend": {
204             "avg": false,
205             "current": false,
206             "max": false,
207             "min": false,
208             "show": false,
209             "total": false,
210             "values": false
211           },
212           "lines": true,
213           "linewidth": 1,
214           "links": [],
215           "nullPointMode": "null",
216           "percentage": false,
217           "pointradius": 5,
218           "points": false,
219           "renderer": "flot",
220           "seriesOverrides": [],
221           "spaceLength": 10,
222           "stack": false,
223           "steppedLine": false,
224           "targets": [
225             {
226               "expr": "sum(hvves_connections_active)",
227               "format": "time_series",
228               "intervalFactor": 1,
229               "legendFormat": "Active connections total",
230               "refId": "A"
231             }
232           ],
233           "thresholds": [],
234           "timeFrom": "45 m",
235           "timeRegions": [],
236           "timeShift": null,
237           "title": "Active connections over time",
238           "tooltip": {
239             "shared": true,
240             "sort": 0,
241             "value_type": "individual"
242           },
243           "type": "graph",
244           "xaxis": {
245             "buckets": null,
246             "mode": "time",
247             "name": null,
248             "show": true,
249             "values": []
250           },
251           "yaxes": [
252             {
253               "format": "short",
254               "label": null,
255               "logBase": 1,
256               "max": null,
257               "min": null,
258               "show": true
259             },
260             {
261               "format": "short",
262               "label": null,
263               "logBase": 1,
264               "max": null,
265               "min": null,
266               "show": true
267             }
268           ],
269           "yaxis": {
270             "align": false,
271             "alignLevel": null
272           }
273         },
274         {
275           "cacheTimeout": null,
276           "colorBackground": false,
277           "colorValue": false,
278           "colors": [
279             "#299c46",
280             "rgba(237, 129, 40, 0.89)",
281             "#d44a3a"
282           ],
283           "format": "none",
284           "gauge": {
285             "maxValue": 100,
286             "minValue": 0,
287             "show": false,
288             "thresholdLabels": false,
289             "thresholdMarkers": true
290           },
291           "gridPos": {
292             "h": 3,
293             "w": 6,
294             "x": 0,
295             "y": 9
296           },
297           "id": 8,
298           "interval": null,
299           "links": [],
300           "mappingType": 1,
301           "mappingTypes": [
302             {
303               "name": "value to text",
304               "value": 1
305             },
306             {
307               "name": "range to text",
308               "value": 2
309             }
310           ],
311           "maxDataPoints": 100,
312           "nullPointMode": "connected",
313           "nullText": null,
314           "postfix": "",
315           "postfixFontSize": "50%",
316           "prefix": "",
317           "prefixFontSize": "50%",
318           "rangeMaps": [
319             {
320               "from": "null",
321               "text": "N/A",
322               "to": "null"
323             }
324           ],
325           "sparkline": {
326             "fillColor": "rgba(31, 118, 189, 0.18)",
327             "full": false,
328             "lineColor": "rgb(31, 120, 193)",
329             "show": false
330           },
331           "tableColumn": "",
332           "targets": [
333             {
334               "expr": "sum(hvves_connections_total)",
335               "format": "time_series",
336               "instant": true,
337               "intervalFactor": 1,
338               "legendFormat": "",
339               "refId": "A"
340             }
341           ],
342           "thresholds": "",
343           "title": "Total connections",
344           "type": "singlestat",
345           "valueFontSize": "80%",
346           "valueMaps": [
347             {
348               "op": "=",
349               "text": "N/A",
350               "value": "null"
351             }
352           ],
353           "valueName": "avg"
354         },
355         {
356           "cacheTimeout": null,
357           "colorBackground": false,
358           "colorValue": false,
359           "colors": [
360             "#299c46",
361             "rgba(237, 129, 40, 0.89)",
362             "#d44a3a"
363           ],
364           "datasource": "Prometheus",
365           "format": "none",
366           "gauge": {
367             "maxValue": 100,
368             "minValue": 0,
369             "show": false,
370             "thresholdLabels": false,
371             "thresholdMarkers": true
372           },
373           "gridPos": {
374             "h": 3,
375             "w": 6,
376             "x": 6,
377             "y": 9
378           },
379           "id": 10,
380           "interval": null,
381           "links": [],
382           "mappingType": 1,
383           "mappingTypes": [
384             {
385               "name": "value to text",
386               "value": 1
387             },
388             {
389               "name": "range to text",
390               "value": 2
391             }
392           ],
393           "maxDataPoints": 100,
394           "nullPointMode": "connected",
395           "nullText": null,
396           "postfix": "",
397           "postfixFontSize": "50%",
398           "prefix": "",
399           "prefixFontSize": "50%",
400           "rangeMaps": [
401             {
402               "from": "null",
403               "text": "N/A",
404               "to": "null"
405             }
406           ],
407           "sparkline": {
408             "fillColor": "rgba(31, 118, 189, 0.18)",
409             "full": false,
410             "lineColor": "rgb(31, 120, 193)",
411             "show": false
412           },
413           "tableColumn": "",
414           "targets": [
415             {
416               "expr": "sum(hvves_clients_rejected_total)",
417               "format": "time_series",
418               "instant": true,
419               "intervalFactor": 1,
420               "refId": "A"
421             }
422           ],
423           "thresholds": "",
424           "title": "Clients rejected",
425           "type": "singlestat",
426           "valueFontSize": "80%",
427           "valueMaps": [
428             {
429               "op": "=",
430               "text": "0",
431               "value": "null"
432             }
433           ],
434           "valueName": "avg"
435         },
436         {
437           "columns": [
438             {
439               "text": "Current",
440               "value": "current"
441             }
442           ],
443           "datasource": "Prometheus",
444           "fontSize": "100%",
445           "gridPos": {
446             "h": 7,
447             "w": 6,
448             "x": 0,
449             "y": 12
450           },
451           "id": 11,
452           "links": [],
453           "pageSize": 10,
454           "scroll": true,
455           "showHeader": true,
456           "sort": {
457             "col": 0,
458             "desc": true
459           },
460           "styles": [
461             {
462               "alias": "Time",
463               "dateFormat": "YYYY-MM-DD HH:mm:ss",
464               "pattern": "Time",
465               "type": "date"
466             },
467             {
468               "alias": "",
469               "colorMode": null,
470               "colors": [
471                 "rgba(245, 54, 54, 0.9)",
472                 "rgba(237, 129, 40, 0.89)",
473                 "rgba(50, 172, 45, 0.97)"
474               ],
475               "decimals": 2,
476               "pattern": "/.*/",
477               "thresholds": [],
478               "type": "number",
479               "unit": "short"
480             }
481           ],
482           "targets": [
483             {
484               "expr": "sum(hvves_connections_total) by (kubernetes_pod_name, value)",
485               "format": "time_series",
486               "instant": true,
487               "intervalFactor": 1,
488               "legendFormat": "{{kubernetes_pod_name}}",
489               "refId": "B"
490             }
491           ],
492           "timeFrom": "1h",
493           "title": "Total connections per pod",
494           "transform": "timeseries_aggregations",
495           "type": "table"
496         },
497         {
498           "columns": [
499             {
500               "text": "Current",
501               "value": "current"
502             }
503           ],
504           "datasource": "Prometheus",
505           "fontSize": "100%",
506           "gridPos": {
507             "h": 7,
508             "w": 6,
509             "x": 6,
510             "y": 12
511           },
512           "id": 12,
513           "links": [],
514           "pageSize": 10,
515           "scroll": true,
516           "showHeader": true,
517           "sort": {
518             "col": 0,
519             "desc": true
520           },
521           "styles": [
522             {
523               "alias": "Time",
524               "dateFormat": "YYYY-MM-DD HH:mm:ss",
525               "pattern": "Time",
526               "type": "date"
527             },
528             {
529               "alias": "",
530               "colorMode": null,
531               "colors": [
532                 "rgba(245, 54, 54, 0.9)",
533                 "rgba(237, 129, 40, 0.89)",
534                 "rgba(50, 172, 45, 0.97)"
535               ],
536               "decimals": 2,
537               "pattern": "/.*/",
538               "thresholds": [],
539               "type": "number",
540               "unit": "short"
541             }
542           ],
543           "targets": [
544             {
545               "expr": "sum(hvves_clients_rejected_total) by (kubernetes_pod_name, value)",
546               "format": "time_series",
547               "instant": true,
548               "intervalFactor": 1,
549               "legendFormat": "{{kubernetes_pod_name}}",
550               "refId": "B"
551             }
552           ],
553           "timeFrom": "1h",
554           "title": "Rejected connections per pod",
555           "transform": "timeseries_aggregations",
556           "type": "table"
557         }
558       ],
559       "refresh": "1s",
560       "schemaVersion": 16,
561       "style": "dark",
562       "tags": [],
563       "templating": {
564         "list": []
565       },
566       "time": {
567         "from": "now-1h",
568         "to": "now"
569       },
570       "timepicker": {
571         "refresh_intervals": [
572           "1s",
573           "5s",
574           "10s",
575           "30s",
576           "1m",
577           "5m",
578           "15m",
579           "30m",
580           "1h",
581           "2h",
582           "1d"
583         ],
584         "time_options": [
585           "5m",
586           "15m",
587           "1h",
588           "6h",
589           "12h",
590           "24h",
591           "2d",
592           "7d",
593           "30d"
594         ]
595       },
596       "timezone": "",
597       "title": "HV-VES  connections",
598       "uid": "bAy7xlwmk",
599       "version": 1
600     }