Grafana dashboard automation
[osm/MON.git] / osm_mon / dashboarder / templates / ns_scoped.json
1 {
2   "dashboard": {
3   "annotations": {
4     "list": [
5       {
6         "builtIn": 1,
7         "datasource": "-- Grafana --",
8         "enable": true,
9         "hide": true,
10         "iconColor": "rgba(0, 211, 255, 1)",
11         "name": "Annotations & Alerts",
12         "type": "dashboard"
13       }
14     ]
15   },
16   "editable": true,
17   "gnetId": null,
18   "graphTooltip": 0,
19   "id": null,
20   "links": [],
21   "panels": [
22     {
23       "collapsed": false,
24       "datasource": null,
25       "gridPos": {
26         "h": 1,
27         "w": 24,
28         "x": 0,
29         "y": 0
30       },
31       "id": 9,
32       "panels": [],
33       "title": "VIM Metrics",
34       "type": "row"
35     },
36     {
37       "bars": false,
38       "dashLength": 10,
39       "dashes": false,
40       "datasource": "osm_prometheus",
41       "decimals": 2,
42       "description": "",
43       "fill": 1,
44       "fillGradient": 0,
45       "gridPos": {
46         "h": 7,
47         "w": 12,
48         "x": 0,
49         "y": 1
50       },
51       "id": 7,
52       "legend": {
53         "alignAsTable": true,
54         "avg": true,
55         "current": true,
56         "hideEmpty": true,
57         "hideZero": true,
58         "max": true,
59         "min": false,
60         "rightSide": false,
61         "show": true,
62         "sideWidth": null,
63         "sort": "current",
64         "sortDesc": true,
65         "total": false,
66         "values": true
67       },
68       "lines": true,
69       "linewidth": 2,
70       "links": [],
71       "maxPerRow": 6,
72       "nullPointMode": "null",
73       "options": {
74         "dataLinks": []
75       },
76       "percentage": false,
77       "pointradius": 5,
78       "points": false,
79       "renderer": "flot",
80       "repeat": null,
81       "seriesOverrides": [
82         {
83           "alias": ""
84         }
85       ],
86       "spaceLength": 10,
87       "stack": false,
88       "steppedLine": false,
89       "targets": [
90         {
91           "expr": "osm_cpu_utilization{ns_id=\"$ns_id\"}",
92           "format": "time_series",
93           "hide": false,
94           "instant": false,
95           "interval": "",
96           "intervalFactor": 1,
97           "legendFormat": "NS {{ns_name}} - VNF {{vnf_member_index}} - VDU {{vdu_name}}",
98           "refId": "A",
99           "step": 20
100         }
101       ],
102       "thresholds": [],
103       "timeFrom": null,
104       "timeRegions": [],
105       "timeShift": null,
106       "title": "CPU Utilization",
107       "tooltip": {
108         "shared": true,
109         "sort": 2,
110         "value_type": "individual"
111       },
112       "type": "graph",
113       "xaxis": {
114         "buckets": null,
115         "mode": "time",
116         "name": null,
117         "show": true,
118         "values": []
119       },
120       "yaxes": [
121         {
122           "decimals": 2,
123           "format": "percent",
124           "label": "",
125           "logBase": 1,
126           "max": null,
127           "min": null,
128           "show": true
129         },
130         {
131           "format": "short",
132           "label": null,
133           "logBase": 1,
134           "max": null,
135           "min": null,
136           "show": false
137         }
138       ],
139       "yaxis": {
140         "align": false,
141         "alignLevel": null
142       }
143     },
144     {
145       "bars": false,
146       "dashLength": 10,
147       "dashes": false,
148       "datasource": "osm_prometheus",
149       "decimals": 2,
150       "description": "",
151       "fill": 1,
152       "fillGradient": 0,
153       "gridPos": {
154         "h": 7,
155         "w": 12,
156         "x": 12,
157         "y": 1
158       },
159       "id": 10,
160       "legend": {
161         "alignAsTable": true,
162         "avg": true,
163         "current": true,
164         "hideEmpty": true,
165         "hideZero": true,
166         "max": true,
167         "min": false,
168         "rightSide": false,
169         "show": true,
170         "sideWidth": null,
171         "sort": "current",
172         "sortDesc": true,
173         "total": false,
174         "values": true
175       },
176       "lines": true,
177       "linewidth": 2,
178       "links": [],
179       "maxPerRow": 6,
180       "nullPointMode": "null",
181       "options": {
182         "dataLinks": []
183       },
184       "percentage": false,
185       "pointradius": 5,
186       "points": false,
187       "renderer": "flot",
188       "seriesOverrides": [],
189       "spaceLength": 10,
190       "stack": false,
191       "steppedLine": false,
192       "targets": [
193         {
194           "expr": "osm_average_memory_utilization{ns_id=\"$ns_id\"}",
195           "format": "time_series",
196           "hide": false,
197           "instant": false,
198           "interval": "",
199           "intervalFactor": 1,
200           "legendFormat": "NS {{ns_name}} - VNF {{vnf_member_index}} - VDU {{vdu_name}}",
201           "refId": "A",
202           "step": 20
203         }
204       ],
205       "thresholds": [],
206       "timeFrom": null,
207       "timeRegions": [],
208       "timeShift": null,
209       "title": "Memory Utilization",
210       "tooltip": {
211         "shared": true,
212         "sort": 2,
213         "value_type": "individual"
214       },
215       "type": "graph",
216       "xaxis": {
217         "buckets": null,
218         "mode": "time",
219         "name": null,
220         "show": true,
221         "values": []
222       },
223       "yaxes": [
224         {
225           "decimals": 2,
226           "format": "decmbytes",
227           "label": "",
228           "logBase": 1,
229           "max": null,
230           "min": null,
231           "show": true
232         },
233         {
234           "format": "short",
235           "label": null,
236           "logBase": 1,
237           "max": null,
238           "min": null,
239           "show": false
240         }
241       ],
242       "yaxis": {
243         "align": false,
244         "alignLevel": null
245       }
246     },
247     {
248       "bars": false,
249       "dashLength": 10,
250       "dashes": false,
251       "datasource": "osm_prometheus",
252       "fill": 1,
253       "fillGradient": 3,
254       "gridPos": {
255         "h": 7,
256         "w": 24,
257         "x": 0,
258         "y": 8
259       },
260       "height": "300",
261       "id": 12,
262       "legend": {
263         "alignAsTable": true,
264         "avg": false,
265         "current": true,
266         "hideEmpty": true,
267         "hideZero": true,
268         "max": true,
269         "min": false,
270         "rightSide": true,
271         "show": true,
272         "sort": "current",
273         "sortDesc": true,
274         "total": false,
275         "values": true
276       },
277       "lines": true,
278       "linewidth": 2,
279       "links": [],
280       "nullPointMode": "null",
281       "options": {
282         "dataLinks": []
283       },
284       "percentage": false,
285       "pointradius": 2,
286       "points": false,
287       "renderer": "flot",
288       "seriesOverrides": [
289         {
290           "alias": "/.*_sent$/",
291           "transform": "negative-Y"
292         }
293       ],
294       "spaceLength": 10,
295       "stack": false,
296       "steppedLine": false,
297       "targets": [
298         {
299           "expr": "osm_packets_received{ns_id=\"$ns_id\"}",
300           "format": "time_series",
301           "intervalFactor": 1,
302           "legendFormat": "VNF {{vnf_member_index}} - VDU {{vdu_name}}",
303           "refId": "A",
304           "step": 4
305         },
306         {
307           "expr": "osm_packets_sent{ns_id=\"$ns_id\"}",
308           "format": "time_series",
309           "intervalFactor": 1,
310           "legendFormat": "VNF {{vnf_member_index}} - VDU {{vdu_name}}",
311           "refId": "B",
312           "step": 4
313         }
314       ],
315       "thresholds": [],
316       "timeFrom": null,
317       "timeRegions": [],
318       "timeShift": null,
319       "title": "Network Traffic",
320       "tooltip": {
321         "shared": true,
322         "sort": 2,
323         "value_type": "individual"
324       },
325       "type": "graph",
326       "xaxis": {
327         "buckets": null,
328         "mode": "time",
329         "name": null,
330         "show": true,
331         "values": []
332       },
333       "yaxes": [
334         {
335           "format": "pps",
336           "label": "transmit (-) / receive (+)",
337           "logBase": 1,
338           "max": null,
339           "min": null,
340           "show": true
341         },
342         {
343           "format": "short",
344           "label": null,
345           "logBase": 1,
346           "max": null,
347           "min": null,
348           "show": false
349         }
350       ],
351       "yaxis": {
352         "align": false,
353         "alignLevel": null
354       }
355     },
356     {
357       "collapsed": false,
358       "datasource": null,
359       "gridPos": {
360         "h": 1,
361         "w": 24,
362         "x": 0,
363         "y": 15
364       },
365       "id": 14,
366       "panels": [],
367       "title": "VNF Indicators",
368       "type": "row"
369     },
370     {
371       "bars": false,
372       "dashLength": 10,
373       "dashes": false,
374       "datasource": "osm_prometheus",
375       "decimals": 2,
376       "description": "",
377       "fill": 1,
378       "fillGradient": 0,
379       "gridPos": {
380         "h": 7,
381         "w": 12,
382         "x": 0,
383         "y": 16
384       },
385       "id": 15,
386       "legend": {
387         "alignAsTable": true,
388         "avg": true,
389         "current": true,
390         "hideEmpty": true,
391         "hideZero": true,
392         "max": true,
393         "min": false,
394         "rightSide": false,
395         "show": true,
396         "sideWidth": null,
397         "sort": "current",
398         "sortDesc": true,
399         "total": false,
400         "values": true
401       },
402       "lines": true,
403       "linewidth": 2,
404       "links": [],
405       "maxPerRow": 6,
406       "nullPointMode": "null",
407       "options": {
408         "dataLinks": []
409       },
410       "percentage": false,
411       "pointradius": 5,
412       "points": false,
413       "renderer": "flot",
414       "seriesOverrides": [
415         {
416           "alias": ""
417         }
418       ],
419       "spaceLength": 10,
420       "stack": false,
421       "steppedLine": false,
422       "targets": [
423         {
424           "expr": "osm_load{ns_id=\"$ns_id\"}",
425           "format": "time_series",
426           "hide": false,
427           "instant": false,
428           "interval": "",
429           "intervalFactor": 1,
430           "legendFormat": "VNF {{vnf_member_index}} - VDU {{vdu_name}}",
431           "refId": "A",
432           "step": 20
433         }
434       ],
435       "thresholds": [],
436       "timeFrom": null,
437       "timeRegions": [],
438       "timeShift": null,
439       "title": "Load",
440       "tooltip": {
441         "shared": true,
442         "sort": 2,
443         "value_type": "individual"
444       },
445       "type": "graph",
446       "xaxis": {
447         "buckets": null,
448         "mode": "time",
449         "name": null,
450         "show": true,
451         "values": []
452       },
453       "yaxes": [
454         {
455           "decimals": 2,
456           "format": "percentunit",
457           "label": "",
458           "logBase": 1,
459           "max": null,
460           "min": null,
461           "show": true
462         },
463         {
464           "format": "short",
465           "label": null,
466           "logBase": 1,
467           "max": null,
468           "min": null,
469           "show": false
470         }
471       ],
472       "yaxis": {
473         "align": false,
474         "alignLevel": null
475       }
476     },
477     {
478       "bars": false,
479       "dashLength": 10,
480       "dashes": false,
481       "datasource": "osm_prometheus",
482       "decimals": 2,
483       "description": "",
484       "fill": 1,
485       "fillGradient": 0,
486       "gridPos": {
487         "h": 7,
488         "w": 12,
489         "x": 12,
490         "y": 16
491       },
492       "id": 16,
493       "legend": {
494         "alignAsTable": true,
495         "avg": true,
496         "current": true,
497         "hideEmpty": true,
498         "hideZero": true,
499         "max": true,
500         "min": false,
501         "rightSide": false,
502         "show": true,
503         "sideWidth": null,
504         "sort": "current",
505         "sortDesc": true,
506         "total": false,
507         "values": true
508       },
509       "lines": true,
510       "linewidth": 2,
511       "links": [],
512       "maxPerRow": 6,
513       "nullPointMode": "null",
514       "options": {
515         "dataLinks": []
516       },
517       "percentage": false,
518       "pointradius": 5,
519       "points": false,
520       "renderer": "flot",
521       "seriesOverrides": [
522         {
523           "alias": ""
524         }
525       ],
526       "spaceLength": 10,
527       "stack": false,
528       "steppedLine": false,
529       "targets": [
530         {
531           "expr": "osm_users{ns_id=\"$ns_id\"}",
532           "format": "time_series",
533           "hide": false,
534           "instant": false,
535           "interval": "",
536           "intervalFactor": 1,
537           "legendFormat": "VNF {{vnf_member_index}} - VDU {{vdu_name}}",
538           "refId": "A",
539           "step": 20
540         }
541       ],
542       "thresholds": [],
543       "timeFrom": null,
544       "timeRegions": [],
545       "timeShift": null,
546       "title": "Users",
547       "tooltip": {
548         "shared": true,
549         "sort": 2,
550         "value_type": "individual"
551       },
552       "type": "graph",
553       "xaxis": {
554         "buckets": null,
555         "mode": "time",
556         "name": null,
557         "show": true,
558         "values": []
559       },
560       "yaxes": [
561         {
562           "decimals": 2,
563           "format": "percentunit",
564           "label": "",
565           "logBase": 1,
566           "max": null,
567           "min": null,
568           "show": true
569         },
570         {
571           "format": "short",
572           "label": null,
573           "logBase": 1,
574           "max": null,
575           "min": null,
576           "show": false
577         }
578       ],
579       "yaxis": {
580         "align": false,
581         "alignLevel": null
582       }
583     }
584   ],
585   "refresh": "5s",
586   "schemaVersion": 20,
587   "style": "dark",
588   "tags": [],
589   "templating": {
590     "list": [
591       {
592         "current": {
593           "text": "OSM_ID",
594           "value": "OSM_ID"
595         },
596         "hide": 2,
597         "label": "NS ID",
598         "name": "ns_id",
599         "options": [
600           {
601             "selected": true,
602             "text": "OSM_ID",
603             "value": "OSM_ID"
604           }
605         ],
606         "query": "OSM_ID",
607         "skipUrlSync": false,
608         "type": "constant"
609       }
610     ]
611   },
612   "time": {
613     "from": "now-1m",
614     "to": "now"
615   },
616   "timepicker": {
617     "refresh_intervals": [
618       "5s",
619       "10s",
620       "30s",
621       "1m",
622       "5m",
623       "15m",
624       "30m",
625       "1h",
626       "2h",
627       "1d"
628     ],
629     "time_options": [
630       "5m",
631       "15m",
632       "1h",
633       "6h",
634       "12h",
635       "24h",
636       "2d",
637       "7d",
638       "30d"
639     ]
640   },
641   "timezone": "",
642   "title": "OSM NS Metrics - OSM_NAME",
643   "uid": "OSM_ID",
644   "version": 1
645 }
646 }