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-nodes-grafana
24 k8s-sidecar-target-directory: "/tmp/dashboards/Open Source MANO"
26 osm-nodes-dashboard.json: |-
32 "datasource": "-- Grafana --",
35 "iconColor": "rgba(0, 211, 255, 1)",
36 "name": "Annotations & Alerts",
41 "description": "Physical nodes dashboard",
46 "iteration": 1577553366915,
68 "title": "System Uptime",
69 "datasource": "Prometheus",
70 "pluginVersion": "8.1.1",
71 "hideTimeOverride": true,
79 "expr": "sum(time() - node_boot_time_seconds{instance=~\"$node\"})",
80 "format": "time_series",
95 "color": "rgba(245, 54, 54, 0.9)"
99 "color": "rgba(237, 129, 40, 0.89)"
103 "color": "rgba(50, 172, 45, 0.97)"
134 "orientation": "horizontal",
137 "colorMode": "value",
139 "justifyMode": "auto"
151 "title": "CPU Cores",
152 "datasource": "Prometheus",
153 "pluginVersion": "8.1.1",
154 "maxDataPoints": 100,
156 "cacheTimeout": null,
161 "expr": "sum(count(node_cpu_seconds_total{instance=~\"$node\", mode='system'}) by (cpu))",
162 "format": "time_series",
177 "color": "rgba(245, 54, 54, 0.9)"
181 "color": "rgba(237, 129, 40, 0.89)"
185 "color": "rgba(50, 172, 45, 0.97)"
215 "orientation": "horizontal",
218 "colorMode": "value",
220 "justifyMode": "auto"
232 "title": "Total RAM",
233 "datasource": "Prometheus",
234 "pluginVersion": "8.1.1",
235 "maxDataPoints": 100,
237 "cacheTimeout": null,
242 "expr": "sum(node_memory_MemTotal_bytes{instance=~\"$node\"})",
243 "format": "time_series",
246 "legendFormat": "{{instance}}",
258 "color": "rgba(245, 54, 54, 0.9)"
262 "color": "rgba(237, 129, 40, 0.89)"
266 "color": "rgba(50, 172, 45, 0.97)"
297 "orientation": "horizontal",
300 "colorMode": "value",
302 "justifyMode": "auto"
306 "datasource": "Prometheus",
315 "displayMode": "lcd",
354 "orientation": "horizontal"
356 "pluginVersion": "6.3.5",
359 "expr": "100 - (avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"idle\"}[30m])) * 100)",
361 "legendFormat": "CPU Busy",
365 "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"iowait\"}[30m])) * 100",
368 "legendFormat": "Busy Iowait",
372 "expr": "(1 - (node_memory_MemAvailable_bytes{instance=~\"$node\"} / (node_memory_MemTotal_bytes{instance=~\"$node\"})))* 100",
374 "legendFormat": "Used RAM Memory",
378 "expr": "100 - ((node_filesystem_avail_bytes{instance=~\"$node\",mountpoint=\"$maxmount\",fstype=~\"ext4|xfs\"} * 100) / node_filesystem_size_bytes {instance=~\"$node\",mountpoint=\"$maxmount\",fstype=~\"ext4|xfs\"})",
381 "legendFormat": "Used Max Mount($maxmount)",
385 "expr": "(1 - (node_memory_SwapFree_bytes{instance=~\"$node\"} / node_memory_SwapTotal_bytes{instance=~\"$node\"})) * 100",
387 "legendFormat": "Used SWAP",
419 "datasource": "Prometheus",
434 "alignAsTable": true,
448 "nullPointMode": "null as zero",
457 "seriesOverrides": [],
460 "steppedLine": false,
463 "expr": "node_load1{instance=~\"$node\"}",
464 "format": "time_series",
468 "legendFormat": "{{instance}}_1m",
475 "expr": "node_load5{instance=~\"$node\"}",
476 "format": "time_series",
480 "legendFormat": "{{instance}}_5m",
485 "expr": "node_load15{instance=~\"$node\"}",
486 "format": "time_series",
490 "legendFormat": "{{instance}}_15m",
499 "title": "System Load",
501 "msResolution": false,
504 "value_type": "cumulative"
537 "192.168.200.241:9100_Total": "dark-red",
538 "Idle - Waiting for something to happen": "#052B51",
544 "softirq": "#E24D42",
552 "datasource": "Prometheus",
565 "alignAsTable": true,
584 "nullPointMode": "null",
595 "alias": "/.*_Total/",
602 "steppedLine": false,
605 "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"system\"}[30m])) by (instance)",
606 "format": "time_series",
611 "legendFormat": "{{instance}}_System",
616 "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"user\"}[30m])) by (instance)",
617 "format": "time_series",
620 "legendFormat": "{{instance}}_User",
625 "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"iowait\"}[30m])) by (instance)",
626 "format": "time_series",
630 "legendFormat": "{{instance}}_Iowait",
635 "expr": "1 - avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"idle\"}[30m])) by (instance)",
636 "format": "time_series",
639 "legendFormat": "{{instance}}_Total",
652 "value_type": "individual"
665 "format": "percentunit",
702 "datasource": "Prometheus",
722 "alias": "Mounted on",
725 "rgba(50, 172, 45, 0.97)",
726 "rgba(237, 129, 40, 0.89)",
727 "rgba(245, 54, 54, 0.9)"
729 "dateFormat": "YYYY-MM-DD HH:mm:ss",
732 "pattern": "mountpoint",
741 "colorMode": "value",
743 "rgba(245, 54, 54, 0.9)",
744 "rgba(237, 129, 40, 0.89)",
745 "rgba(50, 172, 45, 0.97)"
747 "dateFormat": "YYYY-MM-DD HH:mm:ss",
750 "pattern": "Value #A",
762 "rgba(50, 172, 45, 0.97)",
763 "rgba(237, 129, 40, 0.89)",
764 "rgba(245, 54, 54, 0.9)"
766 "dateFormat": "YYYY-MM-DD HH:mm:ss",
769 "pattern": "Value #B",
775 "unit": "percentunit"
781 "rgba(245, 54, 54, 0.9)",
782 "rgba(237, 129, 40, 0.89)",
783 "rgba(50, 172, 45, 0.97)"
785 "dateFormat": "YYYY-MM-DD HH:mm:ss",
789 "pattern": "Value #C",
795 "alias": "Filesystem",
798 "rgba(245, 54, 54, 0.9)",
799 "rgba(237, 129, 40, 0.89)",
800 "rgba(50, 172, 45, 0.97)"
802 "dateFormat": "YYYY-MM-DD HH:mm:ss",
815 "rgba(245, 54, 54, 0.9)",
816 "rgba(237, 129, 40, 0.89)",
817 "rgba(50, 172, 45, 0.97)"
821 "preserveFormat": true,
830 "expr": "node_filesystem_avail_bytes {instance=~'$node',fstype=~\"ext4|xfs\"}-0",
840 "expr": "1-(node_filesystem_free_bytes{instance=~'$node',fstype=~\"ext4|xfs\"} / node_filesystem_size_bytes{instance=~'$node',fstype=~\"ext4|xfs\"})",
849 "expr": "node_filesystem_size_bytes{instance=~'$node',fstype=~\"ext4|xfs\"}-0",
858 "title": "Disk Space Used (EXT4/XFS)",
859 "transform": "table",
864 "vda_write": "#6ED0E0"
869 "datasource": "Prometheus",
870 "description": "Per second read / write bytes ",
882 "alignAsTable": true,
898 "nullPointMode": "null",
908 "alias": "/.*_Read bytes$/",
909 "transform": "negative-Y"
914 "steppedLine": false,
917 "expr": "irate(node_disk_read_bytes_total{instance=~\"$node\"}[30m])",
918 "format": "time_series",
921 "legendFormat": "{{instance}}_{{device}}_Read bytes",
926 "expr": "irate(node_disk_written_bytes_total{instance=~\"$node\"}[30m])",
927 "format": "time_series",
930 "legendFormat": "{{instance}}_{{device}}_Written bytes",
939 "title": "Disk R/W Data",
943 "value_type": "individual"
957 "label": "Bytes read (-) / write (+)",
979 "Idle - Waiting for something to happen": "#052B51",
985 "sdb_每秒I/O操作%": "#d683ce",
986 "softirq": "#E24D42",
990 "磁盘花费在I/O操作占比": "#ba43a9"
995 "datasource": "Prometheus",
997 "description": "The time spent on I/O in the natural time of each second.(wall-clock time)",
1008 "alignAsTable": true,
1027 "nullPointMode": "null",
1031 "percentage": false,
1035 "seriesOverrides": [],
1038 "steppedLine": false,
1041 "expr": "irate(node_disk_io_time_seconds_total{instance=~\"$node\"}[30m])",
1042 "format": "time_series",
1043 "intervalFactor": 1,
1044 "legendFormat": "{{instance}}_{{device}}_ IO time",
1052 "title": "Time Spent Doing I/Os",
1056 "value_type": "individual"
1108 "datasource": "Prometheus",
1121 "alignAsTable": true,
1136 "nullPointMode": "null",
1140 "percentage": false,
1144 "seriesOverrides": [
1146 "alias": "/.*_Total/",
1153 "steppedLine": false,
1156 "expr": "node_memory_MemTotal_bytes{instance=~\"$node\"}",
1157 "format": "time_series",
1160 "intervalFactor": 1,
1161 "legendFormat": "{{instance}}_Total",
1166 "expr": "node_memory_MemTotal_bytes{instance=~\"$node\"} - node_memory_MemAvailable_bytes{instance=~\"$node\"}",
1167 "format": "time_series",
1169 "intervalFactor": 1,
1170 "legendFormat": "{{instance}}_Used",
1175 "expr": "node_memory_MemAvailable_bytes{instance=~\"$node\"}",
1176 "format": "time_series",
1179 "intervalFactor": 1,
1180 "legendFormat": "{{instance}}_Avaliable",
1193 "value_type": "individual"
1244 "datasource": "Prometheus",
1256 "alignAsTable": true,
1273 "nullPointMode": "null",
1277 "percentage": false,
1281 "seriesOverrides": [
1283 "alias": "/.*_transmit$/",
1284 "transform": "negative-Y"
1289 "steppedLine": false,
1292 "expr": "irate(node_network_receive_bytes_total{instance=~'$node',device!~'tap.*|veth.*|br.*|docker.*|virbr*|lo*'}[30m])*8",
1293 "format": "time_series",
1294 "intervalFactor": 1,
1295 "legendFormat": "{{instance}}_{{device}}_receive",
1300 "expr": "irate(node_network_transmit_bytes_total{instance=~'$node',device!~'tap.*|veth.*|br.*|docker.*|virbr*|lo*'}[30m])*8",
1301 "format": "time_series",
1302 "intervalFactor": 1,
1303 "legendFormat": "{{instance}}_{{device}}_transmit",
1312 "title": "Network Traffic",
1316 "value_type": "individual"
1329 "label": "transmit(-)/receive(+)",
1356 "datasource": "Prometheus",
1357 "description": "TCP_alloc - Allocated sockets\n\nCurrEstab - TCP connections for which the current state is either ESTABLISHED or CLOSE- WAIT\n\nTCP_tw - Sockets wating close\n\nUDP_inuse - Udp sockets currently in use\n\nSockets_used - Sockets currently in use",
1370 "alignAsTable": true,
1387 "nullPointMode": "null",
1391 "percentage": false,
1395 "seriesOverrides": [
1397 "alias": "/.*_Sockets_used/",
1404 "steppedLine": false,
1407 "expr": "node_netstat_Tcp_CurrEstab{instance=~'$node'}",
1408 "format": "time_series",
1412 "intervalFactor": 1,
1413 "legendFormat": "{{instance}}_CurrEstab",
1418 "expr": "node_sockstat_TCP_tw{instance=~'$node'}",
1419 "format": "time_series",
1420 "intervalFactor": 1,
1421 "legendFormat": "{{instance}}_TCP_tw",
1425 "expr": "node_sockstat_sockets_used{instance=~'$node'}",
1426 "legendFormat": "{{instance}}_Sockets_used",
1430 "expr": "node_sockstat_UDP_inuse{instance=~'$node'}",
1431 "legendFormat": "{{instance}}_UDP_inuse",
1435 "expr": "node_sockstat_TCP_alloc{instance=~'$node'}",
1436 "legendFormat": "{{instance}}_TCP_alloc",
1444 "title": "Network Sockstat",
1448 "value_type": "individual"
1487 "schemaVersion": 19,
1495 "text": "node-exporter",
1496 "value": "node-exporter"
1498 "datasource": "Prometheus",
1499 "definition": "label_values(node_uname_info, job)",
1501 "includeAll": false,
1506 "query": "label_values(node_uname_info, job)",
1509 "skipUrlSync": false,
1511 "tagValuesQuery": "",
1523 "datasource": "Prometheus",
1524 "definition": "label_values(node_uname_info{job=~\"$job\"}, nodename)",
1531 "query": "label_values(node_uname_info{job=~\"$job\"}, nodename)",
1534 "skipUrlSync": false,
1536 "tagValuesQuery": "",
1543 "allFormat": "glob",
1550 "datasource": "Prometheus",
1551 "definition": "label_values(node_uname_info{nodename=~\"$hostname\"},instance)",
1556 "multiFormat": "regex values",
1559 "query": "label_values(node_uname_info{nodename=~\"$hostname\"},instance)",
1562 "skipUrlSync": false,
1564 "tagValuesQuery": "",
1576 "datasource": "Prometheus",
1579 "includeAll": false,
1584 "query": "query_result(topk(1,sort_desc (max(node_filesystem_size_bytes{instance=~'$node',fstype=~\"ext4|xfs\"}) by (mountpoint))))",
1586 "regex": "/.*\\\"(.*)\\\".*/",
1587 "skipUrlSync": false,
1589 "tagValuesQuery": "",
1596 "allFormat": "glob",
1603 "datasource": "Prometheus",
1606 "includeAll": false,
1608 "multiFormat": "regex values",
1611 "query": "label_values(node_exporter_build_info,env)",
1614 "skipUrlSync": false,
1616 "tagValuesQuery": "",
1623 "allFormat": "glob",
1630 "datasource": "Prometheus",
1631 "definition": "label_values(node_exporter_build_info{env=~'$env'},name)",
1633 "includeAll": false,
1636 "multiFormat": "regex values",
1639 "query": "label_values(node_exporter_build_info{env=~'$env'},name)",
1642 "skipUrlSync": false,
1644 "tagValuesQuery": "/.*/",
1658 "refresh_intervals": [
1682 "timezone": "browser",