Add metric for total latency without routing
[dcaegen2/collectors/hv-ves.git] / tools / performance / cloud / grafana / dashboards / k8s-metrics.json
1 {
2   "annotations": {
3     "list": [
4       {
5         "builtIn": 1,
6         "datasource": "-- Grafana --",
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   "id": 2,
19   "links": [],
20   "panels": [
21     {
22       "datasource": null,
23       "gridPos": {
24         "h": 5,
25         "w": 8,
26         "x": 0,
27         "y": 0
28       },
29       "id": 6,
30       "options": {
31         "fieldOptions": {
32           "calcs": [
33             "mean"
34           ],
35           "defaults": {
36             "mappings": [],
37             "max": 100,
38             "min": 0,
39             "thresholds": {
40               "mode": "absolute",
41               "steps": [
42                 {
43                   "color": "green",
44                   "value": null
45                 },
46                 {
47                   "color": "red",
48                   "value": 80
49                 }
50               ]
51             },
52             "unit": "percent"
53           },
54           "overrides": [],
55           "values": false
56         },
57         "orientation": "auto",
58         "showThresholdLabels": false,
59         "showThresholdMarkers": true
60       },
61       "pluginVersion": "6.7.2",
62       "targets": [
63         {
64           "expr": "sum(rate(container_cpu_usage_seconds_total{id=\"/\", instance=~\".*worker.*\"}[1m])) by(instance) / (sum(machine_cpu_cores{instance=~\".*worker.*\"}) by (instance))*100",
65           "interval": "",
66           "legendFormat": "{{instance}}",
67           "refId": "A"
68         }
69       ],
70       "timeFrom": null,
71       "timeShift": null,
72       "title": "Nodes CPU Usage",
73       "type": "gauge"
74     },
75     {
76       "aliasColors": {},
77       "bars": false,
78       "dashLength": 10,
79       "dashes": false,
80       "datasource": null,
81       "fill": 0,
82       "fillGradient": 0,
83       "gridPos": {
84         "h": 12,
85         "w": 8,
86         "x": 8,
87         "y": 0
88       },
89       "hiddenSeries": false,
90       "id": 2,
91       "legend": {
92         "avg": false,
93         "current": false,
94         "max": false,
95         "min": false,
96         "show": true,
97         "total": false,
98         "values": false
99       },
100       "lines": true,
101       "linewidth": 1,
102       "nullPointMode": "null",
103       "options": {
104         "dataLinks": []
105       },
106       "percentage": false,
107       "pointradius": 2,
108       "points": false,
109       "renderer": "flot",
110       "seriesOverrides": [],
111       "spaceLength": 10,
112       "stack": false,
113       "steppedLine": false,
114       "targets": [
115         {
116           "expr": "sum(rate(container_cpu_usage_seconds_total{id=\"/\"}[1m])) by(instance) / (sum(machine_cpu_cores) by (instance))*100",
117           "interval": "",
118           "legendFormat": "{{instance}}",
119           "refId": "A"
120         }
121       ],
122       "thresholds": [],
123       "timeFrom": "20m",
124       "timeRegions": [],
125       "timeShift": null,
126       "title": "Nodes Total CPU usage",
127       "tooltip": {
128         "shared": true,
129         "sort": 0,
130         "value_type": "individual"
131       },
132       "type": "graph",
133       "xaxis": {
134         "buckets": null,
135         "mode": "time",
136         "name": null,
137         "show": true,
138         "values": []
139       },
140       "yaxes": [
141         {
142           "format": "percent",
143           "label": null,
144           "logBase": 1,
145           "max": null,
146           "min": null,
147           "show": true
148         },
149         {
150           "format": "short",
151           "label": null,
152           "logBase": 1,
153           "max": null,
154           "min": null,
155           "show": true
156         }
157       ],
158       "yaxis": {
159         "align": false,
160         "alignLevel": null
161       }
162     },
163     {
164       "aliasColors": {},
165       "bars": false,
166       "dashLength": 10,
167       "dashes": false,
168       "datasource": null,
169       "fill": 0,
170       "fillGradient": 0,
171       "gridPos": {
172         "h": 12,
173         "w": 8,
174         "x": 16,
175         "y": 0
176       },
177       "hiddenSeries": false,
178       "id": 10,
179       "legend": {
180         "avg": false,
181         "current": false,
182         "max": false,
183         "min": false,
184         "show": true,
185         "total": false,
186         "values": false
187       },
188       "lines": true,
189       "linewidth": 1,
190       "nullPointMode": "null",
191       "options": {
192         "dataLinks": []
193       },
194       "percentage": false,
195       "pointradius": 2,
196       "points": false,
197       "renderer": "flot",
198       "seriesOverrides": [],
199       "spaceLength": 10,
200       "stack": false,
201       "steppedLine": false,
202       "targets": [
203         {
204           "expr": "sum(irate(container_network_receive_bytes_total{pod!=\"\", namespace=\"onap\", instance=~\".*worker.*\"}[1m])) by (instance)",
205           "hide": false,
206           "interval": "",
207           "legendFormat": "{{instance}}",
208           "refId": "C"
209         },
210         {
211           "expr": "sum(irate(container_network_receive_bytes_total{pod!=\"\", namespace=\"onap\", instance=~\".*worker.*\"}[1m]))",
212           "hide": false,
213           "interval": "",
214           "legendFormat": "Total Receive",
215           "refId": "D"
216         }
217       ],
218       "thresholds": [],
219       "timeFrom": "20m",
220       "timeRegions": [],
221       "timeShift": null,
222       "title": "Network Usage - Receive",
223       "tooltip": {
224         "shared": true,
225         "sort": 0,
226         "value_type": "individual"
227       },
228       "type": "graph",
229       "xaxis": {
230         "buckets": null,
231         "mode": "time",
232         "name": null,
233         "show": true,
234         "values": []
235       },
236       "yaxes": [
237         {
238           "format": "Bps",
239           "label": null,
240           "logBase": 1,
241           "max": null,
242           "min": null,
243           "show": true
244         },
245         {
246           "format": "short",
247           "label": null,
248           "logBase": 1,
249           "max": null,
250           "min": null,
251           "show": true
252         }
253       ],
254       "yaxis": {
255         "align": false,
256         "alignLevel": null
257       }
258     },
259     {
260       "datasource": null,
261       "gridPos": {
262         "h": 5,
263         "w": 8,
264         "x": 0,
265         "y": 5
266       },
267       "id": 8,
268       "options": {
269         "fieldOptions": {
270           "calcs": [
271             "mean"
272           ],
273           "defaults": {
274             "mappings": [],
275             "max": 100,
276             "min": 0,
277             "thresholds": {
278               "mode": "absolute",
279               "steps": [
280                 {
281                   "color": "green",
282                   "value": null
283                 },
284                 {
285                   "color": "red",
286                   "value": 80
287                 }
288               ]
289             },
290             "unit": "percent"
291           },
292           "overrides": [],
293           "values": false
294         },
295         "orientation": "auto",
296         "showThresholdLabels": false,
297         "showThresholdMarkers": true
298       },
299       "pluginVersion": "6.7.2",
300       "targets": [
301         {
302           "expr": "sum(container_memory_working_set_bytes{id=\"/\", instance=~\".*worker.*\"}) by(instance) / (sum(machine_memory_bytes{instance=~\".*worker.*\"}) by (instance))*100",
303           "interval": "",
304           "legendFormat": "{{instance}}",
305           "refId": "A"
306         }
307       ],
308       "timeFrom": null,
309       "timeShift": null,
310       "title": "Nodes RAM Usage",
311       "type": "gauge"
312     },
313     {
314       "aliasColors": {},
315       "bars": false,
316       "dashLength": 10,
317       "dashes": false,
318       "datasource": null,
319       "fill": 0,
320       "fillGradient": 0,
321       "gridPos": {
322         "h": 13,
323         "w": 8,
324         "x": 0,
325         "y": 10
326       },
327       "hiddenSeries": false,
328       "id": 4,
329       "legend": {
330         "avg": false,
331         "current": false,
332         "max": false,
333         "min": false,
334         "show": true,
335         "total": false,
336         "values": false
337       },
338       "lines": true,
339       "linewidth": 1,
340       "nullPointMode": "null",
341       "options": {
342         "dataLinks": []
343       },
344       "percentage": false,
345       "pointradius": 2,
346       "points": false,
347       "renderer": "flot",
348       "seriesOverrides": [],
349       "spaceLength": 10,
350       "stack": false,
351       "steppedLine": false,
352       "targets": [
353         {
354           "expr": "sum(container_memory_working_set_bytes{id=\"/\"}) by (instance) / (sum(machine_memory_bytes) by (instance))*100",
355           "interval": "",
356           "legendFormat": "{{instance}}",
357           "refId": "A"
358         }
359       ],
360       "thresholds": [],
361       "timeFrom": "20m",
362       "timeRegions": [],
363       "timeShift": null,
364       "title": "Nodes Total RAM Usage",
365       "tooltip": {
366         "shared": true,
367         "sort": 0,
368         "value_type": "individual"
369       },
370       "type": "graph",
371       "xaxis": {
372         "buckets": null,
373         "mode": "time",
374         "name": null,
375         "show": true,
376         "values": []
377       },
378       "yaxes": [
379         {
380           "format": "percent",
381           "label": null,
382           "logBase": 1,
383           "max": null,
384           "min": null,
385           "show": true
386         },
387         {
388           "format": "short",
389           "label": null,
390           "logBase": 1,
391           "max": null,
392           "min": null,
393           "show": true
394         }
395       ],
396       "yaxis": {
397         "align": false,
398         "alignLevel": null
399       }
400     },
401     {
402       "aliasColors": {},
403       "bars": false,
404       "dashLength": 10,
405       "dashes": false,
406       "datasource": null,
407       "fill": 0,
408       "fillGradient": 0,
409       "gridPos": {
410         "h": 11,
411         "w": 8,
412         "x": 8,
413         "y": 12
414       },
415       "hiddenSeries": false,
416       "id": 12,
417       "legend": {
418         "avg": false,
419         "current": false,
420         "max": false,
421         "min": false,
422         "rightSide": true,
423         "show": false,
424         "total": false,
425         "values": false
426       },
427       "lines": true,
428       "linewidth": 1,
429       "nullPointMode": "null",
430       "options": {
431         "dataLinks": []
432       },
433       "percentage": false,
434       "pointradius": 2,
435       "points": false,
436       "renderer": "flot",
437       "seriesOverrides": [],
438       "spaceLength": 10,
439       "stack": false,
440       "steppedLine": false,
441       "targets": [
442         {
443           "expr": "100- sum(rate(node_cpu_seconds_total{mode=\"idle\"}[1m])) by (node_name, cpu) * 100",
444           "interval": "",
445           "legendFormat": "Instance: {{node_name}} cpu: {{cpu}}",
446           "refId": "A"
447         }
448       ],
449       "thresholds": [],
450       "timeFrom": "20m",
451       "timeRegions": [],
452       "timeShift": null,
453       "title": "Usage of each core",
454       "tooltip": {
455         "shared": true,
456         "sort": 0,
457         "value_type": "individual"
458       },
459       "type": "graph",
460       "xaxis": {
461         "buckets": null,
462         "mode": "time",
463         "name": null,
464         "show": true,
465         "values": []
466       },
467       "yaxes": [
468         {
469           "format": "percent",
470           "label": null,
471           "logBase": 1,
472           "max": null,
473           "min": null,
474           "show": true
475         },
476         {
477           "format": "short",
478           "label": null,
479           "logBase": 1,
480           "max": null,
481           "min": null,
482           "show": true
483         }
484       ],
485       "yaxis": {
486         "align": false,
487         "alignLevel": null
488       }
489     },
490     {
491       "aliasColors": {},
492       "bars": false,
493       "dashLength": 10,
494       "dashes": false,
495       "datasource": null,
496       "fill": 0,
497       "fillGradient": 0,
498       "gridPos": {
499         "h": 11,
500         "w": 8,
501         "x": 16,
502         "y": 12
503       },
504       "hiddenSeries": false,
505       "id": 11,
506       "legend": {
507         "avg": false,
508         "current": false,
509         "max": false,
510         "min": false,
511         "show": true,
512         "total": false,
513         "values": false
514       },
515       "lines": true,
516       "linewidth": 1,
517       "nullPointMode": "null",
518       "options": {
519         "dataLinks": []
520       },
521       "percentage": false,
522       "pointradius": 2,
523       "points": false,
524       "renderer": "flot",
525       "seriesOverrides": [],
526       "spaceLength": 10,
527       "stack": false,
528       "steppedLine": false,
529       "targets": [
530         {
531           "expr": "sum(irate(container_network_transmit_bytes_total{pod!=\"\", namespace=\"onap\", instance=~\".*worker.*\"}[1m])) by (instance)",
532           "hide": false,
533           "interval": "",
534           "legendFormat": "{{instance}}",
535           "refId": "A"
536         },
537         {
538           "expr": "sum(irate(container_network_transmit_bytes_total{pod!=\"\", namespace=\"onap\", instance=~\".*worker.*\"}[1m]))",
539           "hide": false,
540           "interval": "",
541           "legendFormat": "Total Transmit",
542           "refId": "B"
543         }
544       ],
545       "thresholds": [],
546       "timeFrom": "20m",
547       "timeRegions": [],
548       "timeShift": null,
549       "title": "Network Usage - Transmit",
550       "tooltip": {
551         "shared": true,
552         "sort": 0,
553         "value_type": "individual"
554       },
555       "type": "graph",
556       "xaxis": {
557         "buckets": null,
558         "mode": "time",
559         "name": null,
560         "show": true,
561         "values": []
562       },
563       "yaxes": [
564         {
565           "format": "Bps",
566           "label": null,
567           "logBase": 1,
568           "max": null,
569           "min": null,
570           "show": true
571         },
572         {
573           "format": "short",
574           "label": null,
575           "logBase": 1,
576           "max": null,
577           "min": null,
578           "show": true
579         }
580       ],
581       "yaxis": {
582         "align": false,
583         "alignLevel": null
584       }
585     }
586   ],
587   "refresh": "5s",
588   "schemaVersion": 22,
589   "style": "dark",
590   "tags": [],
591   "templating": {
592     "list": []
593   },
594   "time": {
595     "from": "now-6h",
596     "to": "now"
597   },
598   "timepicker": {
599     "refresh_intervals": [
600       "5s",
601       "10s",
602       "30s",
603       "1m",
604       "5m",
605       "15m",
606       "30m",
607       "1h",
608       "2h",
609       "1d"
610     ]
611   },
612   "timezone": "",
613   "title": "K8s metrics",
614   "uid": "RxjnWpjZk",
615   "variables": {
616     "list": []
617   },
618   "version": 1
619 }