6 "datasource": "-- Grafana --",
9 "iconColor": "rgba(0, 211, 255, 1)",
10 "name": "Annotations & Alerts",
33 "title": "Host Metrics",
38 "colorBackground": false,
42 "rgba(237, 129, 40, 0.89)",
45 "datasource": "osm_prometheus",
51 "thresholdLabels": false,
52 "thresholdMarkers": true
66 "name": "value to text",
70 "name": "range to text",
75 "nullPointMode": "connected",
79 "postfixFontSize": "50%",
81 "prefixFontSize": "50%",
90 "fillColor": "rgba(31, 118, 189, 0.18)",
92 "lineColor": "rgb(31, 120, 193)",
100 "expr": "sum(count(node_cpu_seconds_total{mode='system'}) by (cpu))",
108 "title": "CPU Cores",
109 "type": "singlestat",
110 "valueFontSize": "80%",
121 "cacheTimeout": null,
122 "colorBackground": false,
125 "rgba(245, 54, 54, 0.9)",
126 "rgba(237, 129, 40, 0.89)",
127 "rgba(50, 172, 45, 0.97)"
129 "datasource": "osm_prometheus",
137 "thresholdLabels": false,
138 "thresholdMarkers": true
152 "name": "value to text",
156 "name": "range to text",
160 "maxDataPoints": 100,
162 "nullPointMode": "null",
166 "postfixFontSize": "70%",
168 "prefixFontSize": "50%",
177 "fillColor": "rgba(31, 118, 189, 0.18)",
179 "lineColor": "rgb(31, 120, 193)",
185 "expr": "sum(node_memory_MemTotal_bytes)",
186 "format": "time_series",
189 "legendFormat": "{{instance}}",
195 "title": "Total RAM",
196 "type": "singlestat",
197 "valueFontSize": "80%",
205 "valueName": "current"
208 "datasource": "osm_prometheus",
217 "displayMode": "lcd",
246 "orientation": "horizontal"
248 "pluginVersion": "6.4.4",
251 "expr": "100 - (avg(irate(node_cpu_seconds_total{mode=\"idle\"}[30m])) * 100)",
253 "legendFormat": "CPU Busy",
257 "expr": "avg(irate(node_cpu_seconds_total{mode=\"iowait\"}[30m])) * 100",
260 "legendFormat": "Busy Iowait",
264 "expr": "(1 - (node_memory_MemAvailable_bytes / (node_memory_MemTotal_bytes)))* 100",
266 "legendFormat": "Used RAM Memory",
270 "expr": "100 - ((node_filesystem_avail_bytes{mountpoint=\"$maxmount\",fstype=~\"ext4|xfs\"} * 100) / node_filesystem_size_bytes {mountpoint=\"$maxmount\",fstype=~\"ext4|xfs\"})",
273 "legendFormat": "Used Max Mount($maxmount)",
277 "expr": "(1 - (node_memory_SwapFree_bytes / node_memory_SwapTotal_bytes)) * 100",
279 "legendFormat": "Used SWAP",
290 "datasource": "osm_prometheus",
310 "alias": "Mounted on",
313 "rgba(50, 172, 45, 0.97)",
314 "rgba(237, 129, 40, 0.89)",
315 "rgba(245, 54, 54, 0.9)"
317 "dateFormat": "YYYY-MM-DD HH:mm:ss",
320 "pattern": "mountpoint",
329 "colorMode": "value",
331 "rgba(245, 54, 54, 0.9)",
332 "rgba(237, 129, 40, 0.89)",
333 "rgba(50, 172, 45, 0.97)"
335 "dateFormat": "YYYY-MM-DD HH:mm:ss",
338 "pattern": "Value #A",
350 "rgba(50, 172, 45, 0.97)",
351 "rgba(237, 129, 40, 0.89)",
352 "rgba(245, 54, 54, 0.9)"
354 "dateFormat": "YYYY-MM-DD HH:mm:ss",
357 "pattern": "Value #B",
363 "unit": "percentunit"
369 "rgba(245, 54, 54, 0.9)",
370 "rgba(237, 129, 40, 0.89)",
371 "rgba(50, 172, 45, 0.97)"
373 "dateFormat": "YYYY-MM-DD HH:mm:ss",
377 "pattern": "Value #C",
383 "alias": "Filesystem",
386 "rgba(245, 54, 54, 0.9)",
387 "rgba(237, 129, 40, 0.89)",
388 "rgba(50, 172, 45, 0.97)"
390 "dateFormat": "YYYY-MM-DD HH:mm:ss",
403 "rgba(245, 54, 54, 0.9)",
404 "rgba(237, 129, 40, 0.89)",
405 "rgba(50, 172, 45, 0.97)"
407 "dateFormat": "YYYY-MM-DD HH:mm:ss",
411 "pattern": "instance",
412 "preserveFormat": false,
422 "rgba(245, 54, 54, 0.9)",
423 "rgba(237, 129, 40, 0.89)",
424 "rgba(50, 172, 45, 0.97)"
428 "preserveFormat": true,
437 "expr": "node_filesystem_size_bytes{fstype=~\"ext4|xfs\"}-0",
446 "expr": "node_filesystem_avail_bytes {fstype=~\"ext4|xfs\"}-0",
456 "expr": "1-(node_filesystem_free_bytes{fstype=~\"ext4|xfs\"} / node_filesystem_size_bytes{fstype=~\"ext4|xfs\"})",
465 "title": "Disk Space Used Basic(EXT4/XFS)",
466 "transform": "table",
470 "cacheTimeout": null,
471 "colorBackground": false,
472 "colorPostfix": false,
473 "colorPrefix": false,
476 "rgba(245, 54, 54, 0.9)",
477 "rgba(237, 129, 40, 0.89)",
478 "rgba(50, 172, 45, 0.97)"
480 "datasource": "osm_prometheus",
488 "thresholdLabels": false,
489 "thresholdMarkers": true
497 "hideTimeOverride": true,
504 "name": "value to text",
508 "name": "range to text",
512 "maxDataPoints": 100,
513 "nullPointMode": "null",
516 "pluginVersion": "6.4.2",
518 "postfixFontSize": "50%",
520 "prefixFontSize": "50%",
529 "fillColor": "rgba(31, 118, 189, 0.18)",
531 "lineColor": "rgb(31, 120, 193)",
537 "expr": "sum(time() - node_boot_time_seconds)",
538 "format": "time_series",
547 "title": "System Uptime",
548 "type": "singlestat",
549 "valueFontSize": "100%",
557 "valueName": "current"
561 "192.168.200.241:9100_Total": "dark-red",
562 "Idle - Waiting for something to happen": "#052B51",
568 "sdb_每秒I/O操作%": "#d683ce",
569 "softirq": "#E24D42",
573 "磁盘花费在I/O操作占比": "#ba43a9"
578 "datasource": "osm_prometheus",
591 "alignAsTable": true,
610 "nullPointMode": "null",
621 "alias": "/.*_Total/",
628 "steppedLine": false,
631 "expr": "avg(irate(node_cpu_seconds_total{mode=\"system\"}[30m])) by (instance)",
632 "format": "time_series",
637 "legendFormat": "{{instance}}_System",
642 "expr": "avg(irate(node_cpu_seconds_total{mode=\"user\"}[30m])) by (instance)",
643 "format": "time_series",
646 "legendFormat": "{{instance}}_User",
651 "expr": "avg(irate(node_cpu_seconds_total{mode=\"iowait\"}[30m])) by (instance)",
652 "format": "time_series",
656 "legendFormat": "{{instance}}_Iowait",
661 "expr": "1 - avg(irate(node_cpu_seconds_total{mode=\"idle\"}[30m])) by (instance)",
662 "format": "time_series",
665 "legendFormat": "{{instance}}_Total",
674 "title": "CPU Basic",
678 "value_type": "individual"
691 "format": "percentunit",
714 "192.168.200.241:9100_总内存": "dark-red",
715 "内存_Avaliable": "#6ED0E0",
716 "内存_Cached": "#EF843C",
717 "内存_Free": "#629E51",
718 "内存_Total": "#6d1f62",
719 "内存_Used": "#eab839",
726 "datasource": "osm_prometheus",
739 "alignAsTable": true,
754 "nullPointMode": "null",
764 "alias": "/.*_Total/",
771 "steppedLine": false,
774 "expr": "node_memory_MemTotal_bytes",
775 "format": "time_series",
779 "legendFormat": "{{instance}}_Total",
784 "expr": "node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes",
785 "format": "time_series",
788 "legendFormat": "{{instance}}_Used",
793 "expr": "node_memory_MemAvailable_bytes",
794 "format": "time_series",
798 "legendFormat": "{{instance}}_Avaliable",
807 "title": "Memory Basic",
811 "value_type": "individual"
846 "192.168.10.227:9100_em1_in下载": "super-light-green",
847 "192.168.10.227:9100_em1_out上传": "dark-blue"
852 "datasource": "osm_prometheus",
864 "alignAsTable": true,
881 "nullPointMode": "null",
891 "alias": "/.*_transmit$/",
892 "transform": "negative-Y"
897 "steppedLine": false,
900 "expr": "irate(node_network_receive_bytes_total{device!~'tap.*|veth.*|br.*|docker.*|virbr*|lo*'}[30m])*8",
901 "format": "time_series",
903 "legendFormat": "{{instance}}_{{device}}_receive",
908 "expr": "irate(node_network_transmit_bytes_total{device!~'tap.*|veth.*|br.*|docker.*|virbr*|lo*'}[30m])*8",
909 "format": "time_series",
911 "legendFormat": "{{instance}}_{{device}}_transmit",
920 "title": "Network Traffic Basic",
924 "value_type": "individual"
937 "label": "transmit(-)/receive(+)",
969 "title": "Docker Metrics",
973 "cacheTimeout": null,
974 "colorBackground": false,
977 "rgba(245, 54, 54, 0.9)",
978 "rgba(237, 129, 40, 0.89)",
979 "rgba(50, 172, 45, 0.97)"
981 "datasource": "osm_prometheus",
990 "thresholdLabels": false,
991 "thresholdMarkers": true
1007 "name": "value to text",
1011 "name": "range to text",
1015 "maxDataPoints": 100,
1016 "nullPointMode": "connected",
1020 "postfixFontSize": "50%",
1022 "prefixFontSize": "50%",
1036 "fillColor": "rgba(31, 118, 189, 0.18)",
1038 "lineColor": "rgb(31, 120, 193)",
1044 "expr": "count(container_last_seen{container_label_com_docker_swarm_service_name=~\"osm.+\"})",
1046 "intervalFactor": 2,
1048 "metric": "container_last_seen",
1053 "thresholds": "13.1,13.2,100",
1054 "title": "OSM Containers Status",
1055 "transparent": true,
1056 "type": "singlestat",
1057 "valueFontSize": "80%",
1073 "cacheTimeout": null,
1074 "colorBackground": false,
1075 "colorValue": false,
1077 "rgba(245, 54, 54, 0.9)",
1078 "rgba(237, 129, 40, 0.89)",
1079 "rgba(50, 172, 45, 0.97)"
1081 "datasource": "osm_prometheus",
1089 "thresholdLabels": false,
1090 "thresholdMarkers": true
1106 "name": "value to text",
1110 "name": "range to text",
1114 "maxDataPoints": 100,
1115 "nullPointMode": "connected",
1119 "postfixFontSize": "50%",
1121 "prefixFontSize": "50%",
1130 "fillColor": "rgba(31, 118, 189, 0.18)",
1132 "lineColor": "rgb(31, 120, 193)",
1138 "expr": "sum(container_memory_usage_bytes{container_label_com_docker_swarm_service_name=~\"osm.+\"})/1024/1024",
1139 "intervalFactor": 2,
1141 "metric": "container_memory_usage_bytes",
1147 "title": "Total Memory Usage",
1148 "transparent": true,
1149 "type": "singlestat",
1150 "valueFontSize": "80%",
1158 "valueName": "current"
1161 "cacheTimeout": null,
1162 "colorBackground": false,
1165 "rgba(50, 172, 45, 0.97)",
1166 "rgba(237, 129, 40, 0.89)",
1167 "rgba(245, 54, 54, 0.9)"
1169 "datasource": "osm_prometheus",
1172 "format": "percent",
1177 "thresholdLabels": false,
1178 "thresholdMarkers": true
1194 "name": "value to text",
1198 "name": "range to text",
1202 "maxDataPoints": 100,
1203 "nullPointMode": "connected",
1207 "postfixFontSize": "50%",
1209 "prefixFontSize": "50%",
1218 "fillColor": "rgba(31, 118, 189, 0.18)",
1220 "lineColor": "rgb(31, 120, 193)",
1226 "expr": "sum(rate(container_cpu_user_seconds_total{container_label_com_docker_swarm_service_name=~\"osm.+\"}[5m]) * 100)",
1227 "intervalFactor": 2,
1229 "metric": "container_memory_usage_bytes",
1234 "thresholds": "40,70,100",
1235 "title": "Total CPU Usage",
1236 "transparent": true,
1237 "type": "singlestat",
1238 "valueFontSize": "80%",
1246 "valueName": "current"
1253 "datasource": "osm_prometheus",
1269 "alignAsTable": true,
1284 "nullPointMode": "connected",
1288 "percentage": false,
1292 "seriesOverrides": [],
1295 "steppedLine": false,
1298 "expr": "rate(container_cpu_user_seconds_total{container_label_com_docker_swarm_service_name=~\"osm.+\"}[5m]) * 100",
1299 "intervalFactor": 2,
1300 "legendFormat": "{{name}}",
1310 "title": "CPU Usage (5m)",
1312 "msResolution": false,
1315 "value_type": "cumulative"
1327 "format": "percent",
1353 "datasource": "osm_prometheus",
1369 "alignAsTable": true,
1384 "nullPointMode": "connected",
1388 "percentage": false,
1392 "seriesOverrides": [],
1395 "steppedLine": false,
1398 "expr": "container_memory_usage_bytes{container_label_com_docker_swarm_service_name=~\"osm.+\"}",
1400 "intervalFactor": 2,
1401 "legendFormat": "{{name}}",
1402 "metric": "container_memory_usage_bytes",
1411 "title": "Memory Usage",
1413 "msResolution": false,
1416 "value_type": "cumulative"
1454 "datasource": "osm_prometheus",
1480 "nullPointMode": "connected",
1484 "percentage": false,
1488 "seriesOverrides": [],
1491 "steppedLine": false,
1494 "expr": "irate(container_network_receive_bytes_total{container_label_com_docker_swarm_service_name=~\"osm.+\"}[5m])",
1496 "intervalFactor": 2,
1497 "legendFormat": "{{name}}",
1498 "metric": "container_network_receive_bytes_total",
1507 "title": "Network Rx",
1509 "msResolution": false,
1512 "value_type": "cumulative"
1550 "datasource": "osm_prometheus",
1576 "nullPointMode": "connected",
1580 "percentage": false,
1584 "seriesOverrides": [],
1587 "steppedLine": false,
1590 "expr": "irate(container_network_transmit_bytes_total{container_label_com_docker_swarm_service_name=~\"osm.+\"}[5m])",
1591 "intervalFactor": 2,
1592 "legendFormat": "{{name}}",
1601 "title": "Network Tx",
1603 "msResolution": false,
1606 "value_type": "cumulative"
1644 "datasource": "osm_prometheus",
1670 "nullPointMode": "connected",
1674 "percentage": false,
1678 "seriesOverrides": [],
1681 "steppedLine": false,
1684 "expr": "irate(container_fs_reads_bytes_total{container_label_com_docker_swarm_service_name=~\"osm.+\"}[5m])",
1685 "intervalFactor": 2,
1686 "legendFormat": "{{name}}",
1687 "metric": "container_fs_reads_bytes_total",
1698 "msResolution": false,
1701 "value_type": "cumulative"
1739 "datasource": "osm_prometheus",
1765 "nullPointMode": "connected",
1769 "percentage": false,
1773 "seriesOverrides": [],
1776 "steppedLine": false,
1779 "expr": "irate(container_fs_writes_bytes_total{container_label_com_docker_swarm_service_name=~\"osm.+\"}[5m])",
1780 "intervalFactor": 2,
1781 "legendFormat": "{{name}}",
1782 "metric": "container_fs_writes_bytes_total",
1793 "msResolution": false,
1796 "value_type": "cumulative"
1831 "schemaVersion": 20,
1842 "refresh_intervals": [
1866 "timezone": "browser",
1867 "title": "OSM System Metrics",