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",
47 "description": "OSM status summary",
51 "iteration": 1646055716059,
55 "icon": "external link",
59 "title": "Dashboards",
79 "title": "Cluster Health",
84 "datasource": "Prometheus",
90 "displayName": "Nodes: ",
110 "color": "rgba(237, 129, 40, 0.89)",
131 "maxDataPoints": 100,
135 "justifyMode": "center",
136 "orientation": "horizontal",
147 "pluginVersion": "8.1.1",
149 "repeatDirection": "h",
152 "expr": "sum(kube_node_info)",
153 "format": "time_series",
163 "cacheTimeout": null,
164 "datasource": "Prometheus",
168 "fixedColor": "#629e51",
172 "displayName": "Pods Running:",
210 "maxDataPoints": 100,
214 "justifyMode": "center",
215 "orientation": "horizontal",
226 "pluginVersion": "8.1.1",
229 "expr": "sum(kube_pod_status_phase)",
230 "format": "time_series",
240 "cacheTimeout": null,
241 "datasource": "Prometheus",
248 "displayName": "Nodes Unavailable: ",
268 "color": "rgba(237, 129, 40, 0.89)",
290 "maxDataPoints": 100,
292 "colorMode": "background",
294 "justifyMode": "center",
295 "orientation": "horizontal",
306 "pluginVersion": "8.1.1",
310 "expr": "sum(kube_node_info)-sum(kube_node_status_condition{condition=\"Ready\", status=\"true\"})",
311 "format": "time_series",
322 "cacheTimeout": null,
323 "datasource": "Prometheus",
329 "displayName": "Pods not Ready: ",
349 "color": "rgba(237, 129, 40, 0.89)",
370 "maxDataPoints": 100,
372 "colorMode": "background",
374 "justifyMode": "center",
375 "orientation": "horizontal",
386 "pluginVersion": "8.1.1",
390 "expr": "sum(kube_pod_status_phase{phase!=\"Running\"})",
402 "cacheTimeout": null,
403 "datasource": "Prometheus",
430 "color": "rgba(237, 129, 40, 0.89)",
439 "unit": "percentunit"
452 "maxDataPoints": 100,
454 "orientation": "horizontal",
462 "showThresholdLabels": false,
463 "showThresholdMarkers": true,
466 "pluginVersion": "8.1.1",
469 "expr": "sum(kube_pod_info) / sum(kube_node_status_allocatable{resource=\"pods\"})",
470 "format": "time_series",
475 "title": "Pod Usage",
479 "cacheTimeout": null,
480 "datasource": "Prometheus",
507 "color": "rgba(237, 129, 40, 0.89)",
516 "unit": "percentunit"
529 "maxDataPoints": 100,
531 "orientation": "horizontal",
539 "showThresholdLabels": false,
540 "showThresholdMarkers": true,
543 "pluginVersion": "8.1.1",
546 "expr": "sum(kube_pod_container_resource_requests{resource=\"cpu\",unit=\"core\"}) / sum(kube_node_status_allocatable{resource=\"cpu\",unit=\"core\"})",
547 "format": "time_series",
553 "title": "CPU Usage",
557 "cacheTimeout": null,
558 "datasource": "Prometheus",
585 "color": "rgba(237, 129, 40, 0.89)",
594 "unit": "percentunit"
607 "maxDataPoints": 100,
609 "orientation": "horizontal",
617 "showThresholdLabels": false,
618 "showThresholdMarkers": true,
621 "pluginVersion": "8.1.1",
624 "expr": "sum(kube_pod_container_resource_requests{resource=\"memory\",unit=\"byte\"}) / sum(kube_node_status_allocatable{resource=\"memory\",unit=\"byte\"})",
625 "format": "time_series",
631 "title": "Memory Usage",
635 "cacheTimeout": null,
636 "datasource": "Prometheus",
663 "color": "rgba(237, 129, 40, 0.89)",
672 "unit": "percentunit"
685 "maxDataPoints": 100,
687 "orientation": "horizontal",
695 "showThresholdLabels": false,
696 "showThresholdMarkers": true,
699 "pluginVersion": "8.1.1",
702 "expr": "(sum (node_filesystem_size_bytes) - sum (node_filesystem_free_bytes)) / sum (node_filesystem_size_bytes)",
703 "format": "time_series",
709 "title": "Disk Usage",
731 "cacheTimeout": null,
732 "datasource": "Prometheus",
743 "color": "rgba(237, 129, 40, 0.89)",
760 "color": "rgba(237, 129, 40, 0.89)",
782 "maxDataPoints": 100,
784 "orientation": "horizontal",
792 "showThresholdLabels": false,
793 "showThresholdMarkers": false,
796 "pluginVersion": "8.1.1",
799 "expr": "kube_statefulset_status_replicas_ready{namespace=\"osm\", statefulset=\"prometheus\"}",
800 "format": "time_series",
806 "title": "Prometheus",
810 "cacheTimeout": null,
811 "datasource": "Prometheus",
822 "color": "rgba(237, 129, 40, 0.89)",
839 "color": "rgba(237, 129, 40, 0.89)",
861 "maxDataPoints": 100,
863 "orientation": "horizontal",
871 "showThresholdLabels": false,
872 "showThresholdMarkers": false,
875 "pluginVersion": "8.1.1",
878 "expr": "kube_statefulset_status_replicas_ready{namespace=\"osm\", statefulset=\"mongodb-k8s\"}",
879 "format": "time_series",
889 "cacheTimeout": null,
890 "datasource": "Prometheus",
901 "color": "rgba(237, 129, 40, 0.89)",
918 "color": "rgba(237, 129, 40, 0.89)",
940 "maxDataPoints": 100,
942 "orientation": "horizontal",
950 "showThresholdLabels": false,
951 "showThresholdMarkers": false,
954 "pluginVersion": "8.1.1",
957 "expr": "kube_statefulset_status_replicas_ready{namespace=\"osm\", statefulset=\"mysql\"}",
958 "format": "time_series",
968 "cacheTimeout": null,
969 "datasource": "Prometheus",
980 "color": "rgba(237, 129, 40, 0.89)",
997 "color": "rgba(237, 129, 40, 0.89)",
1019 "maxDataPoints": 100,
1021 "orientation": "horizontal",
1029 "showThresholdLabels": false,
1030 "showThresholdMarkers": false,
1033 "pluginVersion": "8.1.1",
1036 "expr": "kube_deployment_status_replicas_available{deployment=\"ro\"}",
1037 "format": "time_series",
1049 "cacheTimeout": null,
1050 "datasource": "Prometheus",
1054 "mode": "thresholds"
1061 "color": "rgba(237, 129, 40, 0.89)",
1078 "color": "rgba(237, 129, 40, 0.89)",
1100 "maxDataPoints": 100,
1102 "orientation": "horizontal",
1110 "showThresholdLabels": false,
1111 "showThresholdMarkers": false,
1114 "pluginVersion": "8.1.1",
1117 "expr": "kube_statefulset_status_replicas_ready{namespace=\"osm\", statefulset=\"zookeeper\"}",
1118 "format": "time_series",
1124 "title": "zookeeper",
1128 "cacheTimeout": null,
1129 "datasource": "Prometheus",
1133 "mode": "thresholds"
1140 "color": "rgba(237, 129, 40, 0.89)",
1157 "color": "rgba(237, 129, 40, 0.89)",
1179 "maxDataPoints": 100,
1181 "orientation": "horizontal",
1189 "showThresholdLabels": false,
1190 "showThresholdMarkers": false,
1193 "pluginVersion": "8.1.1",
1196 "expr": "kube_statefulset_status_replicas_ready{namespace=\"osm\", statefulset=\"kafka\"}",
1197 "format": "time_series",
1207 "cacheTimeout": null,
1208 "datasource": "Prometheus",
1212 "mode": "thresholds"
1219 "color": "rgba(237, 129, 40, 0.89)",
1236 "color": "rgba(237, 129, 40, 0.89)",
1258 "maxDataPoints": 100,
1260 "orientation": "horizontal",
1268 "showThresholdLabels": false,
1269 "showThresholdMarkers": false,
1272 "pluginVersion": "8.1.1",
1276 "expr": "kube_deployment_status_replicas_available{deployment=\"lcm\"}",
1277 "format": "time_series",
1290 "cacheTimeout": null,
1291 "datasource": "Prometheus",
1296 "mode": "thresholds"
1303 "color": "rgba(237, 129, 40, 0.89)",
1320 "color": "rgba(237, 129, 40, 0.89)",
1342 "maxDataPoints": 100,
1344 "orientation": "horizontal",
1352 "showThresholdLabels": false,
1353 "showThresholdMarkers": false,
1356 "pluginVersion": "8.1.1",
1360 "expr": "kube_deployment_status_replicas_available{deployment=\"ng-ui\"}",
1361 "format": "time_series",
1374 "cacheTimeout": null,
1375 "datasource": "Prometheus",
1380 "mode": "thresholds"
1387 "color": "rgba(237, 129, 40, 0.89)",
1404 "color": "rgba(237, 129, 40, 0.89)",
1426 "maxDataPoints": 100,
1428 "orientation": "horizontal",
1436 "showThresholdLabels": false,
1437 "showThresholdMarkers": false,
1440 "pluginVersion": "8.1.1",
1444 "expr": "kube_deployment_status_replicas_available{deployment=\"nbi\"}",
1445 "format": "time_series",
1458 "cacheTimeout": null,
1459 "datasource": "Prometheus",
1463 "mode": "thresholds"
1470 "color": "rgba(237, 129, 40, 0.89)",
1487 "color": "rgba(237, 129, 40, 0.89)",
1509 "maxDataPoints": 100,
1511 "orientation": "horizontal",
1519 "showThresholdLabels": false,
1520 "showThresholdMarkers": false,
1523 "pluginVersion": "8.1.1",
1526 "expr": "kube_deployment_status_replicas_available{deployment=\"pol\"}",
1527 "format": "time_series",
1539 "cacheTimeout": null,
1540 "datasource": "Prometheus",
1544 "mode": "thresholds"
1551 "color": "rgba(237, 129, 40, 0.89)",
1568 "color": "rgba(237, 129, 40, 0.89)",
1590 "maxDataPoints": 100,
1592 "orientation": "horizontal",
1600 "showThresholdLabels": false,
1601 "showThresholdMarkers": false,
1604 "pluginVersion": "8.1.1",
1607 "expr": "kube_deployment_status_replicas_available{deployment=\"mon\"}",
1618 "cacheTimeout": null,
1619 "datasource": "Prometheus",
1623 "mode": "thresholds"
1630 "color": "rgba(237, 129, 40, 0.89)",
1647 "color": "rgba(237, 129, 40, 0.89)",
1669 "maxDataPoints": 100,
1671 "orientation": "horizontal",
1679 "showThresholdLabels": false,
1680 "showThresholdMarkers": false,
1683 "pluginVersion": "8.1.1",
1686 "expr": "kube_deployment_status_replicas_available{deployment=\"keystone\"}",
1687 "format": "time_series",
1695 "title": "keystone",
1703 "datasource": "Prometheus",
1718 "hiddenSeries": false,
1731 "nullPointMode": "null",
1733 "alertThreshold": true
1735 "percentage": false,
1736 "pluginVersion": "8.1.1",
1740 "seriesOverrides": [],
1743 "steppedLine": false,
1746 "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace=\"osm\"}) by (pod)",
1748 "intervalFactor": 4,
1749 "legendFormat": "{{pod}}",
1757 "title": "Pod CPU Usage",
1761 "value_type": "individual"
1799 "datasource": "Prometheus",
1814 "hiddenSeries": false,
1827 "nullPointMode": "null",
1829 "alertThreshold": true
1831 "percentage": false,
1832 "pluginVersion": "8.1.1",
1836 "seriesOverrides": [],
1839 "steppedLine": false,
1842 "expr": "sum(container_memory_working_set_bytes{namespace=\"osm\", container!=\"\"}) by (pod)",
1843 "intervalFactor": 4,
1844 "legendFormat": "{{pod}}",
1852 "title": "Pod Memory Usage",
1856 "value_type": "individual"
1890 "cacheTimeout": null,
1901 "content": "\n\n\n",
1904 "pluginVersion": "8.1.1",
1914 "transparent": true,
1918 "cacheTimeout": null,
1929 "content": "<h2 style=\"text-align: center;\"></p>\n\n\n",
1932 "pluginVersion": "8.1.1",
1942 "transparent": true,
1947 "schemaVersion": 30,
1955 "text": "No data sources found",
1958 "description": null,
1961 "includeAll": false,
1964 "name": "datasource",
1966 "query": "prometheus",
1969 "skipUrlSync": false,
1970 "type": "datasource"
1979 "refresh_intervals": [
2003 "timezone": "browser",
2004 "title": "OSM Status Summary",