Adjust performance tests prometheus and grafana to newer producer
[dcaegen2/collectors/hv-ves.git] / tools / performance / cloud / grafana / dashboards / connections.json
1 {
2   "annotations": {
3     "list": [
4       {
5         "builtIn": 1,
6         "datasource": "Prometheus",
7         "enable": true,
8         "hide": true,
9         "iconColor": "rgba(0, 211, 255, 1)",
10         "name": "Annotations & Alerts",
11         "type": "dashboard"
12       }
13     ]
14   },
15   "editable": true,
16   "gnetId": null,
17   "graphTooltip": 0,
18   "links": [],
19   "panels": [
20     {
21       "cacheTimeout": null,
22       "datasource": "Prometheus",
23       "fieldConfig": {
24         "defaults": {
25           "custom": {},
26           "mappings": [
27             {
28               "id": 0,
29               "op": "=",
30               "text": "N/A",
31               "type": 1,
32               "value": "null"
33             }
34           ],
35           "max": 10000,
36           "min": 0,
37           "nullValueMode": "connected",
38           "thresholds": {
39             "mode": "absolute",
40             "steps": [
41               {
42                 "color": "#299c46",
43                 "value": null
44               },
45               {
46                 "color": "rgba(237, 129, 40, 0.89)",
47                 "value": 7000
48               },
49               {
50                 "color": "#d44a3a",
51                 "value": 9000
52               }
53             ]
54           },
55           "unit": "none"
56         },
57         "overrides": []
58       },
59       "gridPos": {
60         "h": 10,
61         "w": 6,
62         "x": 0,
63         "y": 0
64       },
65       "hideTimeOverride": true,
66       "id": 13,
67       "interval": "5s",
68       "links": [],
69       "maxDataPoints": 1,
70       "options": {
71         "fieldOptions": {
72           "calcs": [
73             "lastNotNull"
74           ]
75         },
76         "orientation": "horizontal",
77         "reduceOptions": {
78           "calcs": [
79             "lastNotNull"
80           ],
81           "fields": "",
82           "values": false
83         },
84         "showThresholdLabels": false,
85         "showThresholdMarkers": true
86       },
87       "pluginVersion": "7.0.3",
88       "targets": [
89         {
90           "expr": "sum(producer_active_connections_total_number)",
91           "format": "time_series",
92           "instant": false,
93           "interval": "",
94           "intervalFactor": 1,
95           "legendFormat": "",
96           "refId": "A"
97         }
98       ],
99       "timeFrom": "5s",
100       "title": "Currently active connections - Producers",
101       "type": "gauge"
102     },
103     {
104       "cacheTimeout": null,
105       "datasource": "Prometheus",
106       "fieldConfig": {
107         "defaults": {
108           "custom": {},
109           "mappings": [
110             {
111               "id": 0,
112               "op": "=",
113               "text": "N/A",
114               "type": 1,
115               "value": "null"
116             }
117           ],
118           "max": 10000,
119           "min": 0,
120           "nullValueMode": "connected",
121           "thresholds": {
122             "mode": "absolute",
123             "steps": [
124               {
125                 "color": "#299c46",
126                 "value": null
127               },
128               {
129                 "color": "rgba(237, 129, 40, 0.89)",
130                 "value": 7000
131               },
132               {
133                 "color": "#d44a3a",
134                 "value": 9000
135               }
136             ]
137           },
138           "unit": "none"
139         },
140         "overrides": []
141       },
142       "gridPos": {
143         "h": 10,
144         "w": 6,
145         "x": 6,
146         "y": 0
147       },
148       "hideTimeOverride": true,
149       "id": 4,
150       "interval": "5s",
151       "links": [],
152       "maxDataPoints": 1,
153       "options": {
154         "fieldOptions": {
155           "calcs": [
156             "lastNotNull"
157           ]
158         },
159         "orientation": "horizontal",
160         "reduceOptions": {
161           "calcs": [
162             "lastNotNull"
163           ],
164           "fields": "",
165           "values": false
166         },
167         "showThresholdLabels": false,
168         "showThresholdMarkers": true
169       },
170       "pluginVersion": "7.0.3",
171       "targets": [
172         {
173           "expr": "sum(hvves_connections_active) by (value)",
174           "format": "time_series",
175           "instant": false,
176           "interval": "",
177           "intervalFactor": 1,
178           "legendFormat": "HV-VES",
179           "refId": "A"
180         }
181       ],
182       "timeFrom": "5s",
183       "title": "Currently active connections - HV-VES",
184       "type": "gauge"
185     },
186     {
187       "aliasColors": {},
188       "bars": false,
189       "dashLength": 10,
190       "dashes": false,
191       "datasource": null,
192       "fieldConfig": {
193         "defaults": {
194           "custom": {}
195         },
196         "overrides": []
197       },
198       "fill": 1,
199       "fillGradient": 0,
200       "gridPos": {
201         "h": 9,
202         "w": 12,
203         "x": 12,
204         "y": 0
205       },
206       "hiddenSeries": false,
207       "id": 6,
208       "interval": "250ms",
209       "legend": {
210         "alignAsTable": false,
211         "avg": false,
212         "current": false,
213         "max": false,
214         "min": false,
215         "show": true,
216         "total": false,
217         "values": false
218       },
219       "lines": true,
220       "linewidth": 1,
221       "links": [],
222       "nullPointMode": "null",
223       "options": {
224         "dataLinks": []
225       },
226       "percentage": false,
227       "pointradius": 5,
228       "points": false,
229       "renderer": "flot",
230       "seriesOverrides": [],
231       "spaceLength": 10,
232       "stack": false,
233       "steppedLine": false,
234       "targets": [
235         {
236           "expr": "sum(hvves_connections_active)",
237           "format": "time_series",
238           "interval": "",
239           "intervalFactor": 1,
240           "legendFormat": "Active connections total - HV-VES",
241           "refId": "A"
242         },
243         {
244           "expr": "sum(producer_active_connections_total_number)",
245           "format": "time_series",
246           "interval": "",
247           "intervalFactor": 1,
248           "legendFormat": "Active connections total - Producers",
249           "refId": "B"
250         }
251       ],
252       "thresholds": [],
253       "timeFrom": "20m",
254       "timeRegions": [],
255       "timeShift": null,
256       "title": "Active connections over time",
257       "tooltip": {
258         "shared": true,
259         "sort": 0,
260         "value_type": "individual"
261       },
262       "type": "graph",
263       "xaxis": {
264         "buckets": null,
265         "mode": "time",
266         "name": null,
267         "show": true,
268         "values": []
269       },
270       "yaxes": [
271         {
272           "$$hashKey": "object:1350",
273           "format": "none",
274           "label": null,
275           "logBase": 1,
276           "max": null,
277           "min": null,
278           "show": true
279         },
280         {
281           "$$hashKey": "object:1351",
282           "format": "short",
283           "label": null,
284           "logBase": 1,
285           "max": null,
286           "min": null,
287           "show": true
288         }
289       ],
290       "yaxis": {
291         "align": false,
292         "alignLevel": null
293       }
294     },
295     {
296       "aliasColors": {},
297       "bars": false,
298       "dashLength": 10,
299       "dashes": false,
300       "datasource": null,
301       "fieldConfig": {
302         "defaults": {
303           "custom": {}
304         },
305         "overrides": []
306       },
307       "fill": 1,
308       "fillGradient": 0,
309       "gridPos": {
310         "h": 9,
311         "w": 12,
312         "x": 12,
313         "y": 9
314       },
315       "hiddenSeries": false,
316       "id": 16,
317       "interval": "250ms",
318       "legend": {
319         "alignAsTable": false,
320         "avg": false,
321         "current": false,
322         "max": false,
323         "min": false,
324         "show": true,
325         "total": false,
326         "values": false
327       },
328       "lines": true,
329       "linewidth": 1,
330       "links": [],
331       "nullPointMode": "null",
332       "options": {
333         "dataLinks": []
334       },
335       "percentage": false,
336       "pointradius": 5,
337       "points": false,
338       "renderer": "flot",
339       "seriesOverrides": [],
340       "spaceLength": 10,
341       "stack": false,
342       "steppedLine": false,
343       "targets": [
344         {
345           "expr": "sum(rate(hvves_connections_active[1s]))",
346           "format": "time_series",
347           "interval": "",
348           "intervalFactor": 1,
349           "legendFormat": "Connection rate - HV-VES",
350           "refId": "A"
351         },
352         {
353           "expr": "sum(rate(producer_active_connections_total_number[1s]))",
354           "format": "time_series",
355           "interval": "",
356           "intervalFactor": 1,
357           "legendFormat": "Connection rate - Producers",
358           "refId": "B"
359         }
360       ],
361       "thresholds": [],
362       "timeFrom": "20m",
363       "timeRegions": [],
364       "timeShift": null,
365       "title": "Connection rates",
366       "tooltip": {
367         "shared": true,
368         "sort": 0,
369         "value_type": "individual"
370       },
371       "type": "graph",
372       "xaxis": {
373         "buckets": null,
374         "mode": "time",
375         "name": null,
376         "show": true,
377         "values": []
378       },
379       "yaxes": [
380         {
381           "$$hashKey": "object:1350",
382           "format": "none",
383           "label": null,
384           "logBase": 1,
385           "max": null,
386           "min": null,
387           "show": true
388         },
389         {
390           "$$hashKey": "object:1351",
391           "format": "short",
392           "label": null,
393           "logBase": 1,
394           "max": null,
395           "min": null,
396           "show": true
397         }
398       ],
399       "yaxis": {
400         "align": false,
401         "alignLevel": null
402       }
403     },
404     {
405       "cacheTimeout": null,
406       "colorBackground": false,
407       "colorValue": false,
408       "colors": [
409         "#299c46",
410         "rgba(237, 129, 40, 0.89)",
411         "#d44a3a"
412       ],
413       "datasource": null,
414       "fieldConfig": {
415         "defaults": {
416           "custom": {}
417         },
418         "overrides": []
419       },
420       "format": "none",
421       "gauge": {
422         "maxValue": 100,
423         "minValue": 0,
424         "show": false,
425         "thresholdLabels": false,
426         "thresholdMarkers": true
427       },
428       "gridPos": {
429         "h": 4,
430         "w": 6,
431         "x": 0,
432         "y": 10
433       },
434       "id": 14,
435       "interval": "5s",
436       "links": [],
437       "mappingType": 1,
438       "mappingTypes": [
439         {
440           "$$hashKey": "object:337",
441           "name": "value to text",
442           "value": 1
443         },
444         {
445           "$$hashKey": "object:338",
446           "name": "range to text",
447           "value": 2
448         }
449       ],
450       "maxDataPoints": 1,
451       "nullPointMode": "connected",
452       "nullText": null,
453       "postfix": "",
454       "postfixFontSize": "50%",
455       "prefix": "",
456       "prefixFontSize": "50%",
457       "rangeMaps": [
458         {
459           "from": "null",
460           "text": "N/A",
461           "to": "null"
462         }
463       ],
464       "sparkline": {
465         "fillColor": "rgba(31, 118, 189, 0.18)",
466         "full": false,
467         "lineColor": "rgb(31, 120, 193)",
468         "show": false
469       },
470       "tableColumn": "",
471       "targets": [
472         {
473           "expr": "sum(producer_all_connections_total_number)",
474           "format": "time_series",
475           "instant": true,
476           "interval": "",
477           "intervalFactor": 1,
478           "legendFormat": "",
479           "refId": "A"
480         }
481       ],
482       "thresholds": "",
483       "timeFrom": "5s",
484       "title": "Total connections - Producers",
485       "type": "singlestat",
486       "valueFontSize": "80%",
487       "valueMaps": [
488         {
489           "$$hashKey": "object:340",
490           "op": "=",
491           "text": "N/A",
492           "value": "null"
493         }
494       ],
495       "valueName": "current"
496     },
497     {
498       "cacheTimeout": null,
499       "colorBackground": false,
500       "colorValue": false,
501       "colors": [
502         "#299c46",
503         "rgba(237, 129, 40, 0.89)",
504         "#d44a3a"
505       ],
506       "datasource": null,
507       "fieldConfig": {
508         "defaults": {
509           "custom": {}
510         },
511         "overrides": []
512       },
513       "format": "none",
514       "gauge": {
515         "maxValue": 100,
516         "minValue": 0,
517         "show": false,
518         "thresholdLabels": false,
519         "thresholdMarkers": true
520       },
521       "gridPos": {
522         "h": 4,
523         "w": 6,
524         "x": 6,
525         "y": 10
526       },
527       "id": 8,
528       "interval": "5s",
529       "links": [],
530       "mappingType": 1,
531       "mappingTypes": [
532         {
533           "name": "value to text",
534           "value": 1
535         },
536         {
537           "name": "range to text",
538           "value": 2
539         }
540       ],
541       "maxDataPoints": 1,
542       "nullPointMode": "connected",
543       "nullText": null,
544       "postfix": "",
545       "postfixFontSize": "50%",
546       "prefix": "",
547       "prefixFontSize": "50%",
548       "rangeMaps": [
549         {
550           "from": "null",
551           "text": "N/A",
552           "to": "null"
553         }
554       ],
555       "sparkline": {
556         "fillColor": "rgba(31, 118, 189, 0.18)",
557         "full": false,
558         "lineColor": "rgb(31, 120, 193)",
559         "show": false
560       },
561       "tableColumn": "",
562       "targets": [
563         {
564           "expr": "sum(hvves_connections_total)",
565           "format": "time_series",
566           "instant": true,
567           "intervalFactor": 1,
568           "legendFormat": "",
569           "refId": "A"
570         }
571       ],
572       "thresholds": "",
573       "timeFrom": "5s",
574       "title": "Total connections - HV-VES",
575       "type": "singlestat",
576       "valueFontSize": "80%",
577       "valueMaps": [
578         {
579           "op": "=",
580           "text": "N/A",
581           "value": "null"
582         }
583       ],
584       "valueName": "current"
585     },
586     {
587       "cacheTimeout": null,
588       "colorBackground": false,
589       "colorValue": false,
590       "colors": [
591         "#299c46",
592         "rgba(237, 129, 40, 0.89)",
593         "#d44a3a"
594       ],
595       "datasource": "Prometheus",
596       "fieldConfig": {
597         "defaults": {
598           "custom": {}
599         },
600         "overrides": []
601       },
602       "format": "none",
603       "gauge": {
604         "maxValue": 100,
605         "minValue": 0,
606         "show": false,
607         "thresholdLabels": false,
608         "thresholdMarkers": true
609       },
610       "gridPos": {
611         "h": 4,
612         "w": 6,
613         "x": 0,
614         "y": 14
615       },
616       "id": 15,
617       "interval": null,
618       "links": [],
619       "mappingType": 1,
620       "mappingTypes": [
621         {
622           "name": "value to text",
623           "value": 1
624         },
625         {
626           "name": "range to text",
627           "value": 2
628         }
629       ],
630       "maxDataPoints": 100,
631       "nullPointMode": "connected",
632       "nullText": null,
633       "postfix": "",
634       "postfixFontSize": "50%",
635       "prefix": "",
636       "prefixFontSize": "50%",
637       "rangeMaps": [
638         {
639           "from": "null",
640           "text": "N/A",
641           "to": "null"
642         }
643       ],
644       "sparkline": {
645         "fillColor": "rgba(31, 118, 189, 0.18)",
646         "full": false,
647         "lineColor": "rgb(31, 120, 193)",
648         "show": false
649       },
650       "tableColumn": "",
651       "targets": [
652         {
653           "expr": "sum(producer_fail_connections_total_number)",
654           "format": "time_series",
655           "instant": true,
656           "interval": "",
657           "intervalFactor": 1,
658           "legendFormat": "",
659           "refId": "A"
660         }
661       ],
662       "thresholds": "",
663       "title": "Connections failed (producers)",
664       "type": "singlestat",
665       "valueFontSize": "80%",
666       "valueMaps": [
667         {
668           "op": "=",
669           "text": "0",
670           "value": "null"
671         }
672       ],
673       "valueName": "current"
674     },
675     {
676       "cacheTimeout": null,
677       "colorBackground": false,
678       "colorValue": false,
679       "colors": [
680         "#299c46",
681         "rgba(237, 129, 40, 0.89)",
682         "#d44a3a"
683       ],
684       "datasource": "Prometheus",
685       "fieldConfig": {
686         "defaults": {
687           "custom": {}
688         },
689         "overrides": []
690       },
691       "format": "none",
692       "gauge": {
693         "maxValue": 100,
694         "minValue": 0,
695         "show": false,
696         "thresholdLabels": false,
697         "thresholdMarkers": true
698       },
699       "gridPos": {
700         "h": 4,
701         "w": 6,
702         "x": 6,
703         "y": 14
704       },
705       "id": 10,
706       "interval": null,
707       "links": [],
708       "mappingType": 1,
709       "mappingTypes": [
710         {
711           "name": "value to text",
712           "value": 1
713         },
714         {
715           "name": "range to text",
716           "value": 2
717         }
718       ],
719       "maxDataPoints": 100,
720       "nullPointMode": "connected",
721       "nullText": null,
722       "postfix": "",
723       "postfixFontSize": "50%",
724       "prefix": "",
725       "prefixFontSize": "50%",
726       "rangeMaps": [
727         {
728           "from": "null",
729           "text": "N/A",
730           "to": "null"
731         }
732       ],
733       "sparkline": {
734         "fillColor": "rgba(31, 118, 189, 0.18)",
735         "full": false,
736         "lineColor": "rgb(31, 120, 193)",
737         "show": false
738       },
739       "tableColumn": "",
740       "targets": [
741         {
742           "expr": "sum(hvves_clients_rejected_total)",
743           "format": "time_series",
744           "instant": true,
745           "intervalFactor": 1,
746           "refId": "A"
747         }
748       ],
749       "thresholds": "",
750       "title": "Clients rejected",
751       "type": "singlestat",
752       "valueFontSize": "80%",
753       "valueMaps": [
754         {
755           "op": "=",
756           "text": "0",
757           "value": "null"
758         }
759       ],
760       "valueName": "current"
761     },
762     {
763       "datasource": null,
764       "fieldConfig": {
765         "defaults": {
766           "custom": {},
767           "decimals": 2,
768           "mappings": [],
769           "max": 100,
770           "thresholds": {
771             "mode": "absolute",
772             "steps": [
773               {
774                 "color": "green",
775                 "value": null
776               },
777               {
778                 "color": "red",
779                 "value": 80
780               }
781             ]
782           },
783           "unit": "percent"
784         },
785         "overrides": []
786       },
787       "gridPos": {
788         "h": 5,
789         "w": 24,
790         "x": 0,
791         "y": 18
792       },
793       "id": 18,
794       "options": {
795         "orientation": "auto",
796         "reduceOptions": {
797           "calcs": [
798             "last"
799           ],
800           "fields": "",
801           "values": false
802         },
803         "showThresholdLabels": false,
804         "showThresholdMarkers": true
805       },
806       "pluginVersion": "7.0.3",
807       "targets": [
808         {
809           "expr": "process_files_open_files/process_files_max_files*100",
810           "hide": false,
811           "interval": "",
812           "legendFormat": "hv-ves-collector",
813           "refId": "A"
814         },
815         {
816           "expr": "process_open_fds/process_max_fds{pod_name=~\".*producer.*\"}*100",
817           "interval": "",
818           "legendFormat": "{{pod_name}}",
819           "refId": "B"
820         },
821         {
822           "expr": "node_filefd_allocated/node_filefd_maximum*100",
823           "interval": "",
824           "legendFormat": "{{node_name}}",
825           "refId": "C"
826         }
827       ],
828       "timeFrom": null,
829       "timeShift": null,
830       "title": "File descriptors open [%]",
831       "type": "gauge"
832     }
833   ],
834   "refresh": "5s",
835   "schemaVersion": 25,
836   "style": "dark",
837   "tags": [],
838   "templating": {
839     "list": []
840   },
841   "time": {
842     "from": "now-1h",
843     "to": "now"
844   },
845   "timepicker": {
846     "refresh_intervals": [
847       "10s",
848       "30s",
849       "1m",
850       "5m",
851       "15m",
852       "30m",
853       "1h",
854       "2h",
855       "1d"
856     ],
857     "time_options": [
858       "5m",
859       "15m",
860       "1h",
861       "6h",
862       "12h",
863       "24h",
864       "2d",
865       "7d",
866       "30d"
867     ]
868   },
869   "timezone": "",
870   "title": "Connections",
871   "uid": "bAy7xlwmk",
872   "version": 1
873 }