|
| 1 | +{ |
| 2 | + "uid": "prostaff-host-overview", |
| 3 | + "title": "ProStaff - Host Overview", |
| 4 | + "tags": ["prostaff", "host"], |
| 5 | + "timezone": "browser", |
| 6 | + "refresh": "30s", |
| 7 | + "time": { "from": "now-3h", "to": "now" }, |
| 8 | + "schemaVersion": 38, |
| 9 | + "panels": [ |
| 10 | + { |
| 11 | + "id": 1, "type": "stat", "title": "Uptime", |
| 12 | + "gridPos": { "x": 0, "y": 0, "w": 4, "h": 3 }, |
| 13 | + "options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "colorMode": "none", "textMode": "auto" }, |
| 14 | + "fieldConfig": { "defaults": { "unit": "s" } }, |
| 15 | + "targets": [{ "expr": "time() - node_boot_time_seconds", "legendFormat": "" }], |
| 16 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } |
| 17 | + }, |
| 18 | + { |
| 19 | + "id": 2, "type": "stat", "title": "CPU Cores", |
| 20 | + "gridPos": { "x": 4, "y": 0, "w": 3, "h": 3 }, |
| 21 | + "options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "colorMode": "none" }, |
| 22 | + "fieldConfig": { "defaults": { "unit": "short" } }, |
| 23 | + "targets": [{ "expr": "count(count by (cpu) (node_cpu_seconds_total))", "legendFormat": "" }], |
| 24 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } |
| 25 | + }, |
| 26 | + { |
| 27 | + "id": 3, "type": "stat", "title": "Total RAM", |
| 28 | + "gridPos": { "x": 7, "y": 0, "w": 4, "h": 3 }, |
| 29 | + "options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "colorMode": "none" }, |
| 30 | + "fieldConfig": { "defaults": { "unit": "bytes" } }, |
| 31 | + "targets": [{ "expr": "node_memory_MemTotal_bytes", "legendFormat": "" }], |
| 32 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } |
| 33 | + }, |
| 34 | + { |
| 35 | + "id": 4, "type": "stat", "title": "Disk Total (/)", |
| 36 | + "gridPos": { "x": 11, "y": 0, "w": 4, "h": 3 }, |
| 37 | + "options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "colorMode": "none" }, |
| 38 | + "fieldConfig": { "defaults": { "unit": "bytes" } }, |
| 39 | + "targets": [{ "expr": "node_filesystem_size_bytes{mountpoint=\"/\",fstype!=\"tmpfs\"}", "legendFormat": "" }], |
| 40 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } |
| 41 | + }, |
| 42 | + { |
| 43 | + "id": 5, "type": "stat", "title": "TCP Connections", |
| 44 | + "gridPos": { "x": 15, "y": 0, "w": 4, "h": 3 }, |
| 45 | + "options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "colorMode": "none" }, |
| 46 | + "fieldConfig": { "defaults": { "unit": "short" } }, |
| 47 | + "targets": [{ "expr": "node_sockstat_TCP_inuse", "legendFormat": "" }], |
| 48 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } |
| 49 | + }, |
| 50 | + { |
| 51 | + "id": 6, "type": "timeseries", "title": "CPU Usage %", |
| 52 | + "gridPos": { "x": 0, "y": 3, "w": 12, "h": 7 }, |
| 53 | + "fieldConfig": { |
| 54 | + "defaults": { "unit": "percent", "min": 0, "max": 100, |
| 55 | + "thresholds": { "mode": "absolute", "steps": [ |
| 56 | + { "color": "green", "value": null }, |
| 57 | + { "color": "yellow", "value": 70 }, |
| 58 | + { "color": "red", "value": 90 } |
| 59 | + ]} |
| 60 | + } |
| 61 | + }, |
| 62 | + "options": { "tooltip": { "mode": "multi" } }, |
| 63 | + "targets": [ |
| 64 | + { "expr": "100 - (avg(rate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)", "legendFormat": "CPU Avg %" }, |
| 65 | + { "expr": "avg(rate(node_cpu_seconds_total{mode=\"user\"}[5m])) * 100", "legendFormat": "User" }, |
| 66 | + { "expr": "avg(rate(node_cpu_seconds_total{mode=\"system\"}[5m])) * 100", "legendFormat": "System" }, |
| 67 | + { "expr": "avg(rate(node_cpu_seconds_total{mode=\"iowait\"}[5m])) * 100", "legendFormat": "IOWait" } |
| 68 | + ], |
| 69 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } |
| 70 | + }, |
| 71 | + { |
| 72 | + "id": 7, "type": "timeseries", "title": "Load Average", |
| 73 | + "gridPos": { "x": 12, "y": 3, "w": 12, "h": 7 }, |
| 74 | + "fieldConfig": { "defaults": { "unit": "short" } }, |
| 75 | + "options": { "tooltip": { "mode": "multi" } }, |
| 76 | + "targets": [ |
| 77 | + { "expr": "node_load1", "legendFormat": "1m" }, |
| 78 | + { "expr": "node_load5", "legendFormat": "5m" }, |
| 79 | + { "expr": "node_load15", "legendFormat": "15m" }, |
| 80 | + { "expr": "count(count by (cpu) (node_cpu_seconds_total))", "legendFormat": "CPU cores" } |
| 81 | + ], |
| 82 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } |
| 83 | + }, |
| 84 | + { |
| 85 | + "id": 8, "type": "gauge", "title": "Memory Used %", |
| 86 | + "gridPos": { "x": 0, "y": 10, "w": 4, "h": 5 }, |
| 87 | + "options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "minVizWidth": 75 }, |
| 88 | + "fieldConfig": { |
| 89 | + "defaults": { "unit": "percent", "min": 0, "max": 100, |
| 90 | + "thresholds": { "mode": "absolute", "steps": [ |
| 91 | + { "color": "green", "value": null }, |
| 92 | + { "color": "yellow", "value": 75 }, |
| 93 | + { "color": "red", "value": 90 } |
| 94 | + ]} |
| 95 | + } |
| 96 | + }, |
| 97 | + "targets": [{ "expr": "(1 - node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes) * 100", "legendFormat": "" }], |
| 98 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } |
| 99 | + }, |
| 100 | + { |
| 101 | + "id": 9, "type": "timeseries", "title": "Memory Breakdown", |
| 102 | + "gridPos": { "x": 4, "y": 10, "w": 20, "h": 5 }, |
| 103 | + "fieldConfig": { "defaults": { "unit": "bytes" } }, |
| 104 | + "options": { "tooltip": { "mode": "multi" } }, |
| 105 | + "targets": [ |
| 106 | + { "expr": "node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes", "legendFormat": "Used" }, |
| 107 | + { "expr": "node_memory_Buffers_bytes + node_memory_Cached_bytes", "legendFormat": "Buffers+Cache" }, |
| 108 | + { "expr": "node_memory_MemAvailable_bytes", "legendFormat": "Available" }, |
| 109 | + { "expr": "node_memory_SwapTotal_bytes - node_memory_SwapFree_bytes", "legendFormat": "Swap Used" } |
| 110 | + ], |
| 111 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } |
| 112 | + }, |
| 113 | + { |
| 114 | + "id": 10, "type": "gauge", "title": "Disk Used % (/)", |
| 115 | + "gridPos": { "x": 0, "y": 15, "w": 4, "h": 5 }, |
| 116 | + "options": { "reduceOptions": { "calcs": ["lastNotNull"] } }, |
| 117 | + "fieldConfig": { |
| 118 | + "defaults": { "unit": "percent", "min": 0, "max": 100, |
| 119 | + "thresholds": { "mode": "absolute", "steps": [ |
| 120 | + { "color": "green", "value": null }, |
| 121 | + { "color": "yellow", "value": 70 }, |
| 122 | + { "color": "red", "value": 85 } |
| 123 | + ]} |
| 124 | + } |
| 125 | + }, |
| 126 | + "targets": [{ "expr": "(1 - node_filesystem_avail_bytes{mountpoint=\"/\",fstype!=\"tmpfs\"} / node_filesystem_size_bytes{mountpoint=\"/\",fstype!=\"tmpfs\"}) * 100", "legendFormat": "" }], |
| 127 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } |
| 128 | + }, |
| 129 | + { |
| 130 | + "id": 11, "type": "timeseries", "title": "Disk I/O", |
| 131 | + "gridPos": { "x": 4, "y": 15, "w": 10, "h": 5 }, |
| 132 | + "fieldConfig": { "defaults": { "unit": "Bps" } }, |
| 133 | + "options": { "tooltip": { "mode": "multi" } }, |
| 134 | + "targets": [ |
| 135 | + { "expr": "rate(node_disk_read_bytes_total{device=~\"sd.*|vd.*|nvme.*\"}[5m])", "legendFormat": "Read {{device}}" }, |
| 136 | + { "expr": "rate(node_disk_written_bytes_total{device=~\"sd.*|vd.*|nvme.*\"}[5m])", "legendFormat": "Write {{device}}" } |
| 137 | + ], |
| 138 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } |
| 139 | + }, |
| 140 | + { |
| 141 | + "id": 12, "type": "timeseries", "title": "Network I/O (eth0)", |
| 142 | + "gridPos": { "x": 14, "y": 15, "w": 10, "h": 5 }, |
| 143 | + "fieldConfig": { "defaults": { "unit": "Bps" } }, |
| 144 | + "options": { "tooltip": { "mode": "multi" } }, |
| 145 | + "targets": [ |
| 146 | + { "expr": "rate(node_network_receive_bytes_total{device=\"eth0\"}[5m])", "legendFormat": "In" }, |
| 147 | + { "expr": "rate(node_network_transmit_bytes_total{device=\"eth0\"}[5m])", "legendFormat": "Out" } |
| 148 | + ], |
| 149 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } |
| 150 | + }, |
| 151 | + { |
| 152 | + "id": 13, "type": "timeseries", "title": "IO Pressure (stall time)", |
| 153 | + "gridPos": { "x": 0, "y": 20, "w": 12, "h": 5 }, |
| 154 | + "fieldConfig": { "defaults": { "unit": "percentunit" } }, |
| 155 | + "options": { "tooltip": { "mode": "multi" } }, |
| 156 | + "targets": [ |
| 157 | + { "expr": "rate(node_pressure_cpu_waiting_seconds_total[5m])", "legendFormat": "CPU pressure" }, |
| 158 | + { "expr": "rate(node_pressure_io_stalled_seconds_total[5m])", "legendFormat": "IO stalled" }, |
| 159 | + { "expr": "rate(node_pressure_memory_stalled_seconds_total[5m])", "legendFormat": "Memory stalled" } |
| 160 | + ], |
| 161 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } |
| 162 | + }, |
| 163 | + { |
| 164 | + "id": 14, "type": "timeseries", "title": "Open File Descriptors", |
| 165 | + "gridPos": { "x": 12, "y": 20, "w": 12, "h": 5 }, |
| 166 | + "fieldConfig": { "defaults": { "unit": "short" } }, |
| 167 | + "options": { "tooltip": { "mode": "multi" } }, |
| 168 | + "targets": [ |
| 169 | + { "expr": "node_filefd_allocated", "legendFormat": "Allocated" }, |
| 170 | + { "expr": "node_filefd_maximum", "legendFormat": "Max" } |
| 171 | + ], |
| 172 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } |
| 173 | + } |
| 174 | + ], |
| 175 | + "templating": { |
| 176 | + "list": [ |
| 177 | + { |
| 178 | + "name": "DS_PROMETHEUS", |
| 179 | + "type": "datasource", |
| 180 | + "pluginId": "prometheus", |
| 181 | + "current": { "text": "Prometheus", "value": "Prometheus" } |
| 182 | + } |
| 183 | + ] |
| 184 | + } |
| 185 | +} |
0 commit comments