|
| 1 | +{ |
| 2 | + "__inputs": [], |
| 3 | + "__requires": [ |
| 4 | + { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "10.0.0" }, |
| 5 | + { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" } |
| 6 | + ], |
| 7 | + "annotations": { "list": [] }, |
| 8 | + "editable": false, |
| 9 | + "fiscalYearStartMonth": 0, |
| 10 | + "graphTooltip": 1, |
| 11 | + "id": null, |
| 12 | + "links": [], |
| 13 | + "panels": [ |
| 14 | + { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 1, "title": "GPU Summary", "type": "row" }, |
| 15 | + { |
| 16 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, |
| 17 | + "fieldConfig": { |
| 18 | + "defaults": { |
| 19 | + "color": { "mode": "thresholds" }, |
| 20 | + "mappings": [], |
| 21 | + "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }, { "color": "yellow", "value": 0.7 }, { "color": "red", "value": 0.9 }] }, |
| 22 | + "unit": "percentunit" |
| 23 | + } |
| 24 | + }, |
| 25 | + "gridPos": { "h": 4, "w": 6, "x": 0, "y": 1 }, |
| 26 | + "id": 2, |
| 27 | + "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "auto" }, |
| 28 | + "title": "GPU Utilization", |
| 29 | + "type": "stat", |
| 30 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "expr": "nvidia_smi_utilization_gpu_ratio", "legendFormat": "util" }] |
| 31 | + }, |
| 32 | + { |
| 33 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, |
| 34 | + "fieldConfig": { |
| 35 | + "defaults": { |
| 36 | + "color": { "mode": "thresholds" }, |
| 37 | + "mappings": [], |
| 38 | + "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] }, |
| 39 | + "unit": "bytes" |
| 40 | + } |
| 41 | + }, |
| 42 | + "gridPos": { "h": 4, "w": 6, "x": 6, "y": 1 }, |
| 43 | + "id": 3, |
| 44 | + "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "auto" }, |
| 45 | + "title": "VRAM Used", |
| 46 | + "description": "See the VRAM Used vs Total trend panel below for headroom against the card's total capacity.", |
| 47 | + "type": "stat", |
| 48 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "expr": "nvidia_smi_memory_used_bytes", "legendFormat": "used" }] |
| 49 | + }, |
| 50 | + { |
| 51 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, |
| 52 | + "fieldConfig": { |
| 53 | + "defaults": { |
| 54 | + "color": { "mode": "thresholds" }, |
| 55 | + "mappings": [], |
| 56 | + "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }, { "color": "yellow", "value": 75 }, { "color": "red", "value": 85 }] }, |
| 57 | + "unit": "celsius" |
| 58 | + } |
| 59 | + }, |
| 60 | + "gridPos": { "h": 4, "w": 6, "x": 12, "y": 1 }, |
| 61 | + "id": 4, |
| 62 | + "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "auto" }, |
| 63 | + "title": "GPU Temperature", |
| 64 | + "type": "stat", |
| 65 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "expr": "nvidia_smi_temperature_gpu", "legendFormat": "temp" }] |
| 66 | + }, |
| 67 | + { |
| 68 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, |
| 69 | + "fieldConfig": { |
| 70 | + "defaults": { |
| 71 | + "color": { "mode": "thresholds" }, |
| 72 | + "mappings": [], |
| 73 | + "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] }, |
| 74 | + "unit": "watt" |
| 75 | + } |
| 76 | + }, |
| 77 | + "gridPos": { "h": 4, "w": 6, "x": 18, "y": 1 }, |
| 78 | + "id": 5, |
| 79 | + "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "auto" }, |
| 80 | + "title": "Power Draw", |
| 81 | + "type": "stat", |
| 82 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "expr": "nvidia_smi_power_draw_watts", "legendFormat": "power" }] |
| 83 | + }, |
| 84 | + |
| 85 | + { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 5 }, "id": 10, "title": "AI Request Performance", "type": "row" }, |
| 86 | + { |
| 87 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, |
| 88 | + "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "lineWidth": 2, "fillOpacity": 10 }, "unit": "reqps" } }, |
| 89 | + "gridPos": { "h": 8, "w": 8, "x": 0, "y": 6 }, |
| 90 | + "id": 11, |
| 91 | + "options": { "legend": { "calcs": ["mean", "max"], "displayMode": "table", "placement": "bottom" }, "tooltip": { "mode": "multi", "sort": "desc" } }, |
| 92 | + "title": "AI Request Rate", |
| 93 | + "description": "Request rate by provider and request kind (embedding vs review), derived from the new request-duration histogram's observation count.", |
| 94 | + "type": "timeseries", |
| 95 | + "targets": [ |
| 96 | + { |
| 97 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, |
| 98 | + "expr": "sum by (provider, request_kind) (rate(gittensory_ai_provider_request_duration_seconds_count[5m]))", |
| 99 | + "legendFormat": "{{provider}} / {{request_kind}}", |
| 100 | + "refId": "A" |
| 101 | + } |
| 102 | + ] |
| 103 | + }, |
| 104 | + { |
| 105 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, |
| 106 | + "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "lineWidth": 2, "fillOpacity": 10 }, "unit": "s" } }, |
| 107 | + "gridPos": { "h": 8, "w": 8, "x": 8, "y": 6 }, |
| 108 | + "id": 12, |
| 109 | + "options": { "legend": { "calcs": ["mean", "max"], "displayMode": "table", "placement": "bottom" }, "tooltip": { "mode": "multi", "sort": "desc" } }, |
| 110 | + "title": "AI Request Latency (p50 / p95 / p99)", |
| 111 | + "type": "timeseries", |
| 112 | + "targets": [ |
| 113 | + { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "expr": "histogram_quantile(0.50, sum by (le) (rate(gittensory_ai_provider_request_duration_seconds_bucket[5m])))", "legendFormat": "p50", "refId": "A" }, |
| 114 | + { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "expr": "histogram_quantile(0.95, sum by (le) (rate(gittensory_ai_provider_request_duration_seconds_bucket[5m])))", "legendFormat": "p95", "refId": "B" }, |
| 115 | + { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "expr": "histogram_quantile(0.99, sum by (le) (rate(gittensory_ai_provider_request_duration_seconds_bucket[5m])))", "legendFormat": "p99", "refId": "C" } |
| 116 | + ] |
| 117 | + }, |
| 118 | + { |
| 119 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, |
| 120 | + "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "lineWidth": 2, "fillOpacity": 10 }, "unit": "reqps" } }, |
| 121 | + "gridPos": { "h": 8, "w": 8, "x": 16, "y": 6 }, |
| 122 | + "id": 13, |
| 123 | + "options": { "legend": { "calcs": ["mean", "max"], "displayMode": "table", "placement": "bottom" }, "tooltip": { "mode": "multi", "sort": "desc" } }, |
| 124 | + "title": "AI Request Error Rate", |
| 125 | + "description": "Excludes expected embedding-routing fallbacks (those never increment this counter -- see gittensory_ai_provider_request_errors_total's HELP text).", |
| 126 | + "type": "timeseries", |
| 127 | + "targets": [ |
| 128 | + { |
| 129 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, |
| 130 | + "expr": "sum by (provider, request_kind) (rate(gittensory_ai_provider_request_errors_total[5m]))", |
| 131 | + "legendFormat": "{{provider}} / {{request_kind}}", |
| 132 | + "refId": "A" |
| 133 | + } |
| 134 | + ] |
| 135 | + }, |
| 136 | + |
| 137 | + { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 14 }, "id": 20, "title": "GPU Trends", "type": "row" }, |
| 138 | + { |
| 139 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, |
| 140 | + "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "lineWidth": 2, "fillOpacity": 10 }, "unit": "percentunit", "max": 1, "min": 0 } }, |
| 141 | + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 15 }, |
| 142 | + "id": 21, |
| 143 | + "options": { "legend": { "calcs": ["mean", "max"], "displayMode": "table", "placement": "bottom" }, "tooltip": { "mode": "multi", "sort": "desc" } }, |
| 144 | + "title": "GPU Utilization Over Time", |
| 145 | + "type": "timeseries", |
| 146 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "expr": "nvidia_smi_utilization_gpu_ratio", "legendFormat": "util", "refId": "A" }] |
| 147 | + }, |
| 148 | + { |
| 149 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, |
| 150 | + "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "lineWidth": 2, "fillOpacity": 10 }, "unit": "bytes" } }, |
| 151 | + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 15 }, |
| 152 | + "id": 22, |
| 153 | + "options": { "legend": { "calcs": ["mean", "max"], "displayMode": "table", "placement": "bottom" }, "tooltip": { "mode": "multi", "sort": "desc" } }, |
| 154 | + "title": "VRAM Used vs Total", |
| 155 | + "type": "timeseries", |
| 156 | + "targets": [ |
| 157 | + { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "expr": "nvidia_smi_memory_used_bytes", "legendFormat": "used", "refId": "A" }, |
| 158 | + { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "expr": "nvidia_smi_memory_total_bytes", "legendFormat": "total", "refId": "B" } |
| 159 | + ] |
| 160 | + }, |
| 161 | + { |
| 162 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, |
| 163 | + "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "lineWidth": 2, "fillOpacity": 10 }, "unit": "celsius" } }, |
| 164 | + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 23 }, |
| 165 | + "id": 23, |
| 166 | + "options": { "legend": { "calcs": ["mean", "max"], "displayMode": "table", "placement": "bottom" }, "tooltip": { "mode": "multi", "sort": "desc" } }, |
| 167 | + "title": "GPU Temperature Over Time", |
| 168 | + "type": "timeseries", |
| 169 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "expr": "nvidia_smi_temperature_gpu", "legendFormat": "temp", "refId": "A" }] |
| 170 | + }, |
| 171 | + { |
| 172 | + "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, |
| 173 | + "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "lineWidth": 2, "fillOpacity": 10 }, "unit": "watt" } }, |
| 174 | + "gridPos": { "h": 8, "w": 12, "x": 12, "y": 23 }, |
| 175 | + "id": 24, |
| 176 | + "options": { "legend": { "calcs": ["mean", "max"], "displayMode": "table", "placement": "bottom" }, "tooltip": { "mode": "multi", "sort": "desc" } }, |
| 177 | + "title": "Power Draw Over Time", |
| 178 | + "type": "timeseries", |
| 179 | + "targets": [{ "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "expr": "nvidia_smi_power_draw_watts", "legendFormat": "power", "refId": "A" }] |
| 180 | + } |
| 181 | + ], |
| 182 | + "refresh": "30s", |
| 183 | + "schemaVersion": 38, |
| 184 | + "tags": ["gittensory", "gpu"], |
| 185 | + "templating": { |
| 186 | + "list": [ |
| 187 | + { "current": {}, "hide": 0, "includeAll": false, "name": "DS_PROMETHEUS", "options": [], "query": "prometheus", "refresh": 1, "type": "datasource" } |
| 188 | + ] |
| 189 | + }, |
| 190 | + "time": { "from": "now-6h", "to": "now" }, |
| 191 | + "timepicker": {}, |
| 192 | + "timezone": "browser", |
| 193 | + "title": "Gittensory — GPU Metrics", |
| 194 | + "uid": "gittensory-gpu", |
| 195 | + "version": 1 |
| 196 | +} |
0 commit comments