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,
61 "colorBackground": false,
62 "colorPostfix": false,
66 "rgba(245, 54, 54, 0.9)",
67 "rgba(237, 129, 40, 0.89)",
68 "rgba(50, 172, 45, 0.97)"
70 "datasource": "Prometheus",
78 "thresholdLabels": false,
79 "thresholdMarkers": true
87 "hideTimeOverride": true,
94 "name": "value to text",
98 "name": "range to text",
102 "maxDataPoints": 100,
103 "nullPointMode": "null",
106 "pluginVersion": "6.4.2",
108 "postfixFontSize": "50%",
110 "prefixFontSize": "50%",
119 "fillColor": "rgba(31, 118, 189, 0.18)",
121 "lineColor": "rgb(31, 120, 193)",
127 "expr": "sum(time() - node_boot_time_seconds{instance=~\"$node\"})",
128 "format": "time_series",
137 "title": "System Uptime",
138 "type": "singlestat",
139 "valueFontSize": "70%",
147 "valueName": "current"
150 "cacheTimeout": null,
151 "colorBackground": false,
152 "colorPostfix": false,
155 "rgba(245, 54, 54, 0.9)",
156 "rgba(237, 129, 40, 0.89)",
157 "rgba(50, 172, 45, 0.97)"
159 "datasource": "Prometheus",
166 "thresholdLabels": false,
167 "thresholdMarkers": true
181 "name": "value to text",
185 "name": "range to text",
189 "maxDataPoints": 100,
191 "nullPointMode": "null",
195 "postfixFontSize": "50%",
197 "prefixFontSize": "50%",
206 "fillColor": "rgba(31, 118, 189, 0.18)",
208 "lineColor": "rgb(31, 120, 193)",
214 "expr": "sum(count(node_cpu_seconds_total{instance=~\"$node\", mode='system'}) by (cpu))",
215 "format": "time_series",
224 "title": "CPU Cores",
225 "type": "singlestat",
226 "valueFontSize": "70%",
234 "valueName": "current"
237 "cacheTimeout": null,
238 "colorBackground": false,
241 "rgba(245, 54, 54, 0.9)",
242 "rgba(237, 129, 40, 0.89)",
243 "rgba(50, 172, 45, 0.97)"
245 "datasource": "Prometheus",
253 "thresholdLabels": false,
254 "thresholdMarkers": true
268 "name": "value to text",
272 "name": "range to text",
276 "maxDataPoints": 100,
278 "nullPointMode": "null",
282 "postfixFontSize": "70%",
284 "prefixFontSize": "50%",
293 "fillColor": "rgba(31, 118, 189, 0.18)",
295 "lineColor": "rgb(31, 120, 193)",
301 "expr": "sum(node_memory_MemTotal_bytes{instance=~\"$node\"})",
302 "format": "time_series",
305 "legendFormat": "{{instance}}",
311 "title": "Total RAM",
312 "type": "singlestat",
313 "valueFontSize": "70%",
321 "valueName": "current"
324 "datasource": "Prometheus",
333 "displayMode": "lcd",
372 "orientation": "horizontal"
374 "pluginVersion": "6.3.5",
377 "expr": "100 - (avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"idle\"}[30m])) * 100)",
379 "legendFormat": "CPU Busy",
383 "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"iowait\"}[30m])) * 100",
386 "legendFormat": "Busy Iowait",
390 "expr": "(1 - (node_memory_MemAvailable_bytes{instance=~\"$node\"} / (node_memory_MemTotal_bytes{instance=~\"$node\"})))* 100",
392 "legendFormat": "Used RAM Memory",
396 "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\"})",
399 "legendFormat": "Used Max Mount($maxmount)",
403 "expr": "(1 - (node_memory_SwapFree_bytes{instance=~\"$node\"} / node_memory_SwapTotal_bytes{instance=~\"$node\"})) * 100",
405 "legendFormat": "Used SWAP",
437 "datasource": "Prometheus",
452 "alignAsTable": true,
466 "nullPointMode": "null as zero",
475 "seriesOverrides": [],
478 "steppedLine": false,
481 "expr": "node_load1{instance=~\"$node\"}",
482 "format": "time_series",
486 "legendFormat": "{{instance}}_1m",
493 "expr": "node_load5{instance=~\"$node\"}",
494 "format": "time_series",
498 "legendFormat": "{{instance}}_5m",
503 "expr": "node_load15{instance=~\"$node\"}",
504 "format": "time_series",
508 "legendFormat": "{{instance}}_15m",
517 "title": "System Load",
519 "msResolution": false,
522 "value_type": "cumulative"
555 "192.168.200.241:9100_Total": "dark-red",
556 "Idle - Waiting for something to happen": "#052B51",
562 "softirq": "#E24D42",
570 "datasource": "Prometheus",
583 "alignAsTable": true,
602 "nullPointMode": "null",
613 "alias": "/.*_Total/",
620 "steppedLine": false,
623 "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"system\"}[30m])) by (instance)",
624 "format": "time_series",
629 "legendFormat": "{{instance}}_System",
634 "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"user\"}[30m])) by (instance)",
635 "format": "time_series",
638 "legendFormat": "{{instance}}_User",
643 "expr": "avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"iowait\"}[30m])) by (instance)",
644 "format": "time_series",
648 "legendFormat": "{{instance}}_Iowait",
653 "expr": "1 - avg(irate(node_cpu_seconds_total{instance=~\"$node\",mode=\"idle\"}[30m])) by (instance)",
654 "format": "time_series",
657 "legendFormat": "{{instance}}_Total",
670 "value_type": "individual"
683 "format": "percentunit",
720 "datasource": "Prometheus",
740 "alias": "Mounted on",
743 "rgba(50, 172, 45, 0.97)",
744 "rgba(237, 129, 40, 0.89)",
745 "rgba(245, 54, 54, 0.9)"
747 "dateFormat": "YYYY-MM-DD HH:mm:ss",
750 "pattern": "mountpoint",
759 "colorMode": "value",
761 "rgba(245, 54, 54, 0.9)",
762 "rgba(237, 129, 40, 0.89)",
763 "rgba(50, 172, 45, 0.97)"
765 "dateFormat": "YYYY-MM-DD HH:mm:ss",
768 "pattern": "Value #A",
780 "rgba(50, 172, 45, 0.97)",
781 "rgba(237, 129, 40, 0.89)",
782 "rgba(245, 54, 54, 0.9)"
784 "dateFormat": "YYYY-MM-DD HH:mm:ss",
787 "pattern": "Value #B",
793 "unit": "percentunit"
799 "rgba(245, 54, 54, 0.9)",
800 "rgba(237, 129, 40, 0.89)",
801 "rgba(50, 172, 45, 0.97)"
803 "dateFormat": "YYYY-MM-DD HH:mm:ss",
807 "pattern": "Value #C",
813 "alias": "Filesystem",
816 "rgba(245, 54, 54, 0.9)",
817 "rgba(237, 129, 40, 0.89)",
818 "rgba(50, 172, 45, 0.97)"
820 "dateFormat": "YYYY-MM-DD HH:mm:ss",
833 "rgba(245, 54, 54, 0.9)",
834 "rgba(237, 129, 40, 0.89)",
835 "rgba(50, 172, 45, 0.97)"
839 "preserveFormat": true,
848 "expr": "node_filesystem_avail_bytes {instance=~'$node',fstype=~\"ext4|xfs\"}-0",
858 "expr": "1-(node_filesystem_free_bytes{instance=~'$node',fstype=~\"ext4|xfs\"} / node_filesystem_size_bytes{instance=~'$node',fstype=~\"ext4|xfs\"})",
867 "expr": "node_filesystem_size_bytes{instance=~'$node',fstype=~\"ext4|xfs\"}-0",
876 "title": "Disk Space Used (EXT4/XFS)",
877 "transform": "table",
882 "vda_write": "#6ED0E0"
887 "datasource": "Prometheus",
888 "description": "Per second read / write bytes ",
900 "alignAsTable": true,
916 "nullPointMode": "null",
926 "alias": "/.*_Read bytes$/",
927 "transform": "negative-Y"
932 "steppedLine": false,
935 "expr": "irate(node_disk_read_bytes_total{instance=~\"$node\"}[30m])",
936 "format": "time_series",
939 "legendFormat": "{{instance}}_{{device}}_Read bytes",
944 "expr": "irate(node_disk_written_bytes_total{instance=~\"$node\"}[30m])",
945 "format": "time_series",
948 "legendFormat": "{{instance}}_{{device}}_Written bytes",
957 "title": "Disk R/W Data",
961 "value_type": "individual"
975 "label": "Bytes read (-) / write (+)",
997 "Idle - Waiting for something to happen": "#052B51",
1000 "iowait": "#EAB839",
1003 "sdb_每秒I/O操作%": "#d683ce",
1004 "softirq": "#E24D42",
1006 "system": "#508642",
1008 "磁盘花费在I/O操作占比": "#ba43a9"
1013 "datasource": "Prometheus",
1015 "description": "The time spent on I/O in the natural time of each second.(wall-clock time)",
1026 "alignAsTable": true,
1045 "nullPointMode": "null",
1049 "percentage": false,
1053 "seriesOverrides": [],
1056 "steppedLine": false,
1059 "expr": "irate(node_disk_io_time_seconds_total{instance=~\"$node\"}[30m])",
1060 "format": "time_series",
1061 "intervalFactor": 1,
1062 "legendFormat": "{{instance}}_{{device}}_ IO time",
1070 "title": "Time Spent Doing I/Os",
1074 "value_type": "individual"
1126 "datasource": "Prometheus",
1139 "alignAsTable": true,
1154 "nullPointMode": "null",
1158 "percentage": false,
1162 "seriesOverrides": [
1164 "alias": "/.*_Total/",
1171 "steppedLine": false,
1174 "expr": "node_memory_MemTotal_bytes{instance=~\"$node\"}",
1175 "format": "time_series",
1178 "intervalFactor": 1,
1179 "legendFormat": "{{instance}}_Total",
1184 "expr": "node_memory_MemTotal_bytes{instance=~\"$node\"} - node_memory_MemAvailable_bytes{instance=~\"$node\"}",
1185 "format": "time_series",
1187 "intervalFactor": 1,
1188 "legendFormat": "{{instance}}_Used",
1193 "expr": "node_memory_MemAvailable_bytes{instance=~\"$node\"}",
1194 "format": "time_series",
1197 "intervalFactor": 1,
1198 "legendFormat": "{{instance}}_Avaliable",
1211 "value_type": "individual"
1262 "datasource": "Prometheus",
1274 "alignAsTable": true,
1291 "nullPointMode": "null",
1295 "percentage": false,
1299 "seriesOverrides": [
1301 "alias": "/.*_transmit$/",
1302 "transform": "negative-Y"
1307 "steppedLine": false,
1310 "expr": "irate(node_network_receive_bytes_total{instance=~'$node',device!~'tap.*|veth.*|br.*|docker.*|virbr*|lo*'}[30m])*8",
1311 "format": "time_series",
1312 "intervalFactor": 1,
1313 "legendFormat": "{{instance}}_{{device}}_receive",
1318 "expr": "irate(node_network_transmit_bytes_total{instance=~'$node',device!~'tap.*|veth.*|br.*|docker.*|virbr*|lo*'}[30m])*8",
1319 "format": "time_series",
1320 "intervalFactor": 1,
1321 "legendFormat": "{{instance}}_{{device}}_transmit",
1330 "title": "Network Traffic",
1334 "value_type": "individual"
1347 "label": "transmit(-)/receive(+)",
1374 "datasource": "Prometheus",
1375 "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",
1388 "alignAsTable": true,
1405 "nullPointMode": "null",
1409 "percentage": false,
1413 "seriesOverrides": [
1415 "alias": "/.*_Sockets_used/",
1422 "steppedLine": false,
1425 "expr": "node_netstat_Tcp_CurrEstab{instance=~'$node'}",
1426 "format": "time_series",
1430 "intervalFactor": 1,
1431 "legendFormat": "{{instance}}_CurrEstab",
1436 "expr": "node_sockstat_TCP_tw{instance=~'$node'}",
1437 "format": "time_series",
1438 "intervalFactor": 1,
1439 "legendFormat": "{{instance}}_TCP_tw",
1443 "expr": "node_sockstat_sockets_used{instance=~'$node'}",
1444 "legendFormat": "{{instance}}_Sockets_used",
1448 "expr": "node_sockstat_UDP_inuse{instance=~'$node'}",
1449 "legendFormat": "{{instance}}_UDP_inuse",
1453 "expr": "node_sockstat_TCP_alloc{instance=~'$node'}",
1454 "legendFormat": "{{instance}}_TCP_alloc",
1462 "title": "Network Sockstat",
1466 "value_type": "individual"
1505 "schemaVersion": 19,
1513 "text": "node-exporter",
1514 "value": "node-exporter"
1516 "datasource": "Prometheus",
1517 "definition": "label_values(node_uname_info, job)",
1519 "includeAll": false,
1524 "query": "label_values(node_uname_info, job)",
1527 "skipUrlSync": false,
1529 "tagValuesQuery": "",
1541 "datasource": "Prometheus",
1542 "definition": "label_values(node_uname_info{job=~\"$job\"}, nodename)",
1549 "query": "label_values(node_uname_info{job=~\"$job\"}, nodename)",
1552 "skipUrlSync": false,
1554 "tagValuesQuery": "",
1561 "allFormat": "glob",
1568 "datasource": "Prometheus",
1569 "definition": "label_values(node_uname_info{nodename=~\"$hostname\"},instance)",
1574 "multiFormat": "regex values",
1577 "query": "label_values(node_uname_info{nodename=~\"$hostname\"},instance)",
1580 "skipUrlSync": false,
1582 "tagValuesQuery": "",
1594 "datasource": "Prometheus",
1597 "includeAll": false,
1602 "query": "query_result(topk(1,sort_desc (max(node_filesystem_size_bytes{instance=~'$node',fstype=~\"ext4|xfs\"}) by (mountpoint))))",
1604 "regex": "/.*\\\"(.*)\\\".*/",
1605 "skipUrlSync": false,
1607 "tagValuesQuery": "",
1614 "allFormat": "glob",
1621 "datasource": "Prometheus",
1624 "includeAll": false,
1626 "multiFormat": "regex values",
1629 "query": "label_values(node_exporter_build_info,env)",
1632 "skipUrlSync": false,
1634 "tagValuesQuery": "",
1641 "allFormat": "glob",
1648 "datasource": "Prometheus",
1649 "definition": "label_values(node_exporter_build_info{env=~'$env'},name)",
1651 "includeAll": false,
1654 "multiFormat": "regex values",
1657 "query": "label_values(node_exporter_build_info{env=~'$env'},name)",
1660 "skipUrlSync": false,
1662 "tagValuesQuery": "/.*/",
1676 "refresh_intervals": [
1700 "timezone": "browser",