1 # Copyright 2019 Minsait - Indra S.A.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 # Author: Jose Manuel Palacios (jmpalacios@minsait.com)
15 # Author: Jose Antonio Martinez (jamartinezv@minsait.com)
21 grafana_dashboard: "1"
22 name: osm-monitoring-osm-summary-grafana
24 k8s-sidecar-target-directory: "/tmp/dashboards/Open Source MANO"
26 osm-summary-dashboard.json: |-
32 "datasource": "-- Grafana --",
35 "iconColor": "rgba(0, 211, 255, 1)",
36 "name": "Annotations & Alerts",
41 "description": "OSM status summary",
46 "iteration": 1577638384562,
50 "icon": "external link",
54 "title": "Dashboards",
69 "title": "Cluster Health",
74 "colorBackground": false,
79 "rgba(237, 129, 40, 0.89)",
82 "datasource": "Prometheus",
88 "thresholdLabels": false,
89 "thresholdMarkers": true
103 "name": "value to text",
107 "name": "range to text",
111 "maxDataPoints": 100,
112 "nullPointMode": "connected",
116 "postfixFontSize": "50%",
118 "prefixFontSize": "50%",
127 "repeatDirection": "h",
129 "fillColor": "rgba(31, 118, 189, 0.18)",
131 "lineColor": "rgb(31, 120, 193)",
134 "tableColumn": "Value",
137 "expr": "sum(kube_node_info)",
138 "format": "time_series",
147 "type": "singlestat",
148 "valueFontSize": "70%",
156 "valueName": "current"
159 "cacheTimeout": null,
160 "colorBackground": false,
164 "rgba(237, 129, 40, 0.89)",
167 "datasource": "Prometheus",
173 "thresholdLabels": false,
174 "thresholdMarkers": true
188 "name": "value to text",
192 "name": "range to text",
196 "maxDataPoints": 100,
197 "nullPointMode": "connected",
200 "postfix": " Pods Running",
201 "postfixFontSize": "50%",
203 "prefixFontSize": "50%",
212 "fillColor": "rgba(78, 203, 42, 0.28)",
214 "lineColor": "#629e51",
220 "expr": "sum(kube_pod_status_phase)",
221 "format": "time_series",
230 "type": "singlestat",
231 "valueFontSize": "70%",
239 "valueName": "current"
242 "cacheTimeout": null,
243 "colorBackground": true,
244 "colorPrefix": false,
248 "rgba(237, 129, 40, 0.89)",
251 "datasource": "Prometheus",
257 "thresholdLabels": false,
258 "thresholdMarkers": true
272 "name": "value to text",
276 "name": "range to text",
280 "maxDataPoints": 100,
281 "nullPointMode": "connected",
284 "postfix": " Nodes Unavailable",
285 "postfixFontSize": "50%",
287 "prefixFontSize": "50%",
296 "fillColor": "rgba(31, 118, 189, 0.18)",
298 "lineColor": "rgb(31, 120, 193)",
304 "expr": "sum(kube_node_info)-sum(kube_node_status_condition{condition=\"Ready\", status=\"true\"})",
305 "format": "time_series",
313 "type": "singlestat",
314 "valueFontSize": "70%",
322 "valueName": "current"
325 "cacheTimeout": null,
326 "colorBackground": true,
330 "rgba(237, 129, 40, 0.89)",
333 "datasource": "Prometheus",
339 "thresholdLabels": false,
340 "thresholdMarkers": true
354 "name": "value to text",
358 "name": "range to text",
362 "maxDataPoints": 100,
363 "nullPointMode": "connected",
366 "postfix": " Pods not Ready",
367 "postfixFontSize": "50%",
369 "prefixFontSize": "50%",
378 "fillColor": "rgba(31, 118, 189, 0.18)",
380 "lineColor": "rgb(31, 120, 193)",
388 "expr": "sum(kube_pod_status_phase{phase!=\"Running\"})",
398 "type": "singlestat",
399 "valueFontSize": "70%",
410 "cacheTimeout": null,
411 "colorBackground": false,
415 "rgba(237, 129, 40, 0.89)",
418 "datasource": "Prometheus",
419 "format": "percentunit",
424 "thresholdLabels": false,
425 "thresholdMarkers": true
439 "name": "value to text",
443 "name": "range to text",
447 "maxDataPoints": 100,
448 "nullPointMode": "connected",
452 "postfixFontSize": "50%",
454 "prefixFontSize": "50%",
463 "fillColor": "rgba(31, 118, 189, 0.18)",
465 "lineColor": "rgb(31, 120, 193)",
471 "expr": "sum(kube_pod_info) / sum(kube_node_status_allocatable_pods)",
472 "format": "time_series",
477 "thresholds": "0.7,0.85",
478 "title": "Pod Usage",
479 "type": "singlestat",
480 "valueFontSize": "80%",
488 "valueName": "current"
491 "cacheTimeout": null,
492 "colorBackground": false,
496 "rgba(237, 129, 40, 0.89)",
499 "datasource": "Prometheus",
500 "format": "percentunit",
505 "thresholdLabels": false,
506 "thresholdMarkers": true
520 "name": "value to text",
524 "name": "range to text",
528 "maxDataPoints": 100,
529 "nullPointMode": "connected",
533 "postfixFontSize": "50%",
535 "prefixFontSize": "50%",
544 "fillColor": "rgba(31, 118, 189, 0.18)",
546 "lineColor": "rgb(31, 120, 193)",
552 "expr": "sum(kube_pod_container_resource_requests_cpu_cores) / sum(kube_node_status_allocatable_cpu_cores)",
553 "format": "time_series",
559 "thresholds": "0.7,0.85",
560 "title": "CPU Usage",
561 "type": "singlestat",
562 "valueFontSize": "80%",
570 "valueName": "current"
573 "cacheTimeout": null,
574 "colorBackground": false,
578 "rgba(237, 129, 40, 0.89)",
581 "datasource": "Prometheus",
582 "format": "percentunit",
587 "thresholdLabels": false,
588 "thresholdMarkers": true
602 "name": "value to text",
606 "name": "range to text",
610 "maxDataPoints": 100,
611 "nullPointMode": "connected",
615 "postfixFontSize": "50%",
617 "prefixFontSize": "50%",
626 "fillColor": "rgba(31, 118, 189, 0.18)",
628 "lineColor": "rgb(31, 120, 193)",
634 "expr": "sum(kube_pod_container_resource_requests_memory_bytes) / sum(kube_node_status_allocatable_memory_bytes)",
635 "format": "time_series",
641 "thresholds": "0.7,0.85",
642 "title": "Memory Usage",
643 "type": "singlestat",
644 "valueFontSize": "80%",
652 "valueName": "current"
655 "cacheTimeout": null,
656 "colorBackground": false,
660 "rgba(237, 129, 40, 0.89)",
663 "datasource": "Prometheus",
664 "format": "percentunit",
669 "thresholdLabels": false,
670 "thresholdMarkers": true
684 "name": "value to text",
688 "name": "range to text",
692 "maxDataPoints": 100,
693 "nullPointMode": "connected",
697 "postfixFontSize": "50%",
699 "prefixFontSize": "50%",
708 "fillColor": "rgba(31, 118, 189, 0.18)",
710 "lineColor": "rgb(31, 120, 193)",
716 "expr": "(sum (node_filesystem_size_bytes) - sum (node_filesystem_free_bytes)) / sum (node_filesystem_size_bytes)",
717 "format": "time_series",
723 "thresholds": "0.7,0.85",
724 "title": "Disk Usage",
725 "type": "singlestat",
726 "valueFontSize": "80%",
734 "valueName": "current"
750 "cacheTimeout": null,
751 "colorBackground": false,
755 "rgba(237, 129, 40, 0.89)",
758 "datasource": "Prometheus",
764 "thresholdLabels": false,
765 "thresholdMarkers": false
779 "name": "value to text",
783 "name": "range to text",
787 "maxDataPoints": 100,
788 "nullPointMode": "connected",
792 "postfixFontSize": "50%",
794 "prefixFontSize": "50%",
803 "fillColor": "rgba(31, 118, 189, 0.18)",
805 "lineColor": "rgb(31, 120, 193)",
813 "expr": "kube_statefulset_status_replicas_ready{namespace=\"osm\", statefulset=\"prometheus\"}",
814 "format": "time_series",
821 "title": "Prometheus",
822 "type": "singlestat",
823 "valueFontSize": "100%",
831 "valueName": "current"
834 "cacheTimeout": null,
835 "colorBackground": false,
839 "rgba(237, 129, 40, 0.89)",
842 "datasource": "Prometheus",
849 "thresholdLabels": false,
850 "thresholdMarkers": false
864 "name": "value to text",
868 "name": "range to text",
872 "maxDataPoints": 100,
873 "nullPointMode": "connected",
877 "postfixFontSize": "50%",
879 "prefixFontSize": "50%",
888 "fillColor": "rgba(31, 118, 189, 0.18)",
890 "lineColor": "rgb(31, 120, 193)",
898 "expr": "kube_statefulset_status_replicas_ready{namespace=\"osm\", statefulset=\"mongodb-k8s\"}",
899 "format": "time_series",
907 "type": "singlestat",
908 "valueFontSize": "100%",
916 "valueName": "current"
919 "cacheTimeout": null,
920 "colorBackground": false,
924 "rgba(237, 129, 40, 0.89)",
927 "datasource": "Prometheus",
933 "thresholdLabels": false,
934 "thresholdMarkers": false
948 "name": "value to text",
952 "name": "range to text",
956 "maxDataPoints": 100,
957 "nullPointMode": "connected",
961 "postfixFontSize": "50%",
963 "prefixFontSize": "50%",
972 "fillColor": "rgba(31, 118, 189, 0.18)",
974 "lineColor": "rgb(31, 120, 193)",
982 "expr": "kube_statefulset_status_replicas_ready{namespace=\"osm\", statefulset=\"mysql\"}",
983 "format": "time_series",
991 "type": "singlestat",
992 "valueFontSize": "100%",
1000 "valueName": "current"
1003 "cacheTimeout": null,
1004 "colorBackground": false,
1005 "colorValue": false,
1008 "rgba(237, 129, 40, 0.89)",
1011 "datasource": "Prometheus",
1017 "thresholdLabels": false,
1018 "thresholdMarkers": false
1032 "name": "value to text",
1036 "name": "range to text",
1040 "maxDataPoints": 100,
1041 "nullPointMode": "connected",
1044 "pluginVersion": "6.3.5",
1046 "postfixFontSize": "50%",
1048 "prefixFontSize": "50%",
1057 "fillColor": "rgba(31, 118, 189, 0.18)",
1059 "lineColor": "rgb(31, 120, 193)",
1064 "tableColumn": "Value",
1067 "expr": "kube_deployment_status_replicas_available{deployment=\"ro\"}",
1068 "format": "time_series",
1074 "thresholds": "0,1",
1078 "type": "singlestat",
1079 "valueFontSize": "100%",
1087 "valueName": "current"
1090 "cacheTimeout": null,
1091 "colorBackground": false,
1092 "colorValue": false,
1095 "rgba(237, 129, 40, 0.89)",
1098 "datasource": "Prometheus",
1105 "thresholdLabels": false,
1106 "thresholdMarkers": false
1120 "name": "value to text",
1124 "name": "range to text",
1128 "maxDataPoints": 100,
1129 "nullPointMode": "connected",
1133 "postfixFontSize": "50%",
1135 "prefixFontSize": "50%",
1144 "fillColor": "rgba(31, 118, 189, 0.18)",
1146 "lineColor": "rgb(31, 120, 193)",
1154 "expr": "kube_statefulset_status_replicas_ready{namespace=\"osm\", statefulset=\"zookeeper\"}",
1155 "format": "time_series",
1159 "thresholds": "0,1",
1162 "title": "zookeeper",
1163 "type": "singlestat",
1164 "valueFontSize": "100%",
1172 "valueName": "current"
1175 "cacheTimeout": null,
1176 "colorBackground": false,
1177 "colorValue": false,
1180 "rgba(237, 129, 40, 0.89)",
1183 "datasource": "Prometheus",
1190 "thresholdLabels": false,
1191 "thresholdMarkers": false
1205 "name": "value to text",
1209 "name": "range to text",
1213 "maxDataPoints": 100,
1214 "nullPointMode": "connected",
1218 "postfixFontSize": "50%",
1220 "prefixFontSize": "50%",
1229 "fillColor": "rgba(31, 118, 189, 0.18)",
1231 "lineColor": "rgb(31, 120, 193)",
1239 "expr": "kube_statefulset_status_replicas_ready{namespace=\"osm\", statefulset=\"kafka\"}",
1240 "format": "time_series",
1244 "thresholds": "0,1",
1248 "type": "singlestat",
1249 "valueFontSize": "100%",
1257 "valueName": "current"
1260 "cacheTimeout": null,
1261 "colorBackground": false,
1262 "colorValue": false,
1265 "rgba(237, 129, 40, 0.89)",
1268 "datasource": "Prometheus",
1274 "thresholdLabels": false,
1275 "thresholdMarkers": false
1289 "name": "value to text",
1293 "name": "range to text",
1297 "maxDataPoints": 100,
1298 "nullPointMode": "connected",
1301 "pluginVersion": "6.3.5",
1303 "postfixFontSize": "50%",
1305 "prefixFontSize": "50%",
1314 "fillColor": "rgba(31, 118, 189, 0.18)",
1316 "lineColor": "rgb(31, 120, 193)",
1321 "tableColumn": "Value",
1324 "expr": "kube_deployment_status_replicas_available{deployment=\"lcm\"}",
1325 "format": "time_series",
1331 "thresholds": "0,1",
1335 "type": "singlestat",
1336 "valueFontSize": "100%",
1344 "valueName": "current"
1347 "cacheTimeout": null,
1348 "colorBackground": false,
1349 "colorValue": false,
1352 "rgba(237, 129, 40, 0.89)",
1355 "datasource": "Prometheus",
1362 "thresholdLabels": false,
1363 "thresholdMarkers": false
1377 "name": "value to text",
1381 "name": "range to text",
1385 "maxDataPoints": 100,
1386 "nullPointMode": "connected",
1389 "pluginVersion": "6.3.5",
1391 "postfixFontSize": "50%",
1393 "prefixFontSize": "50%",
1402 "fillColor": "rgba(31, 118, 189, 0.18)",
1404 "lineColor": "rgb(31, 120, 193)",
1409 "tableColumn": "Value",
1412 "expr": "kube_deployment_status_replicas_available{deployment=\"nbi\"}",
1413 "format": "time_series",
1419 "thresholds": "0,1",
1423 "type": "singlestat",
1424 "valueFontSize": "100%",
1432 "valueName": "current"
1435 "cacheTimeout": null,
1436 "colorBackground": false,
1437 "colorValue": false,
1440 "rgba(237, 129, 40, 0.89)",
1443 "datasource": "Prometheus",
1449 "thresholdLabels": false,
1450 "thresholdMarkers": false
1464 "name": "value to text",
1468 "name": "range to text",
1472 "maxDataPoints": 100,
1473 "nullPointMode": "connected",
1476 "pluginVersion": "6.3.5",
1478 "postfixFontSize": "50%",
1480 "prefixFontSize": "50%",
1489 "fillColor": "rgba(31, 118, 189, 0.18)",
1491 "lineColor": "rgb(31, 120, 193)",
1496 "tableColumn": "Value",
1499 "expr": "kube_deployment_status_replicas_available{deployment=\"pol\"}",
1500 "format": "time_series",
1506 "thresholds": "0,1",
1510 "type": "singlestat",
1511 "valueFontSize": "100%",
1519 "valueName": "current"
1522 "cacheTimeout": null,
1523 "colorBackground": false,
1524 "colorValue": false,
1527 "rgba(237, 129, 40, 0.89)",
1530 "datasource": "Prometheus",
1536 "thresholdLabels": false,
1537 "thresholdMarkers": false
1551 "name": "value to text",
1555 "name": "range to text",
1559 "maxDataPoints": 100,
1560 "nullPointMode": "connected",
1563 "pluginVersion": "6.3.5",
1565 "postfixFontSize": "50%",
1567 "prefixFontSize": "50%",
1576 "fillColor": "rgba(31, 118, 189, 0.18)",
1578 "lineColor": "rgb(31, 120, 193)",
1586 "expr": "kube_deployment_status_replicas_available{deployment=\"mon\"}",
1591 "thresholds": "0,1",
1595 "type": "singlestat",
1596 "valueFontSize": "100%",
1607 "cacheTimeout": null,
1608 "colorBackground": false,
1609 "colorValue": false,
1612 "rgba(237, 129, 40, 0.89)",
1615 "datasource": "Prometheus",
1621 "thresholdLabels": false,
1622 "thresholdMarkers": false
1636 "name": "value to text",
1640 "name": "range to text",
1644 "maxDataPoints": 100,
1645 "nullPointMode": "connected",
1648 "pluginVersion": "6.3.5",
1650 "postfixFontSize": "50%",
1652 "prefixFontSize": "50%",
1661 "fillColor": "rgba(31, 118, 189, 0.18)",
1663 "lineColor": "rgb(31, 120, 193)",
1668 "tableColumn": "Value",
1671 "expr": "kube_deployment_status_replicas_available{deployment=\"keystone\"}",
1672 "format": "time_series",
1678 "thresholds": "0,1",
1681 "title": "keystone",
1682 "type": "singlestat",
1683 "valueFontSize": "100%",
1691 "valueName": "current"
1694 "datasource": "Prometheus",
1719 "nullPointMode": "null",
1723 "percentage": false,
1727 "seriesOverrides": [],
1730 "steppedLine": false,
1733 "expr": "sum(namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace=\"osm\"}) by (pod)",
1735 "intervalFactor": 4,
1736 "legendFormat": "{{pod}}",
1744 "title": "Pod CPU Usage",
1748 "value_type": "individual"
1782 "datasource": "Prometheus",
1807 "nullPointMode": "null",
1811 "percentage": false,
1815 "seriesOverrides": [],
1818 "steppedLine": false,
1821 "expr": "sum(container_memory_working_set_bytes{namespace=\"osm\", container!=\"\"}) by (pod)",
1822 "intervalFactor": 4,
1823 "legendFormat": "{{pod}}",
1831 "title": "Pod Memory Usage",
1835 "value_type": "individual"
1869 "cacheTimeout": null,
1870 "content": "\n\n\n",
1881 "pluginVersion": "6.3.5",
1892 "transparent": true,
1896 "cacheTimeout": null,
1897 "content": "<h2 style=\"text-align: center;\"></p>\n\n\n",
1908 "pluginVersion": "6.3.5",
1919 "transparent": true,
1924 "schemaVersion": 19,
1931 "text": "No data sources found",
1935 "includeAll": false,
1938 "name": "datasource",
1940 "query": "prometheus",
1943 "skipUrlSync": false,
1944 "type": "datasource"
1953 "refresh_intervals": [
1977 "timezone": "browser",
1978 "title": "OSM Status Summary",