okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge branch 'f-1402-d2' into f-14021be32e9c7

main
20.9 KiB1033 linesraw
1{
2 "__inputs": [
3  {
4   "name": "DS_PROMETHEUS",
5   "label": "Prometheus",
6   "type": "datasource",
7   "pluginId": "prometheus",
8   "pluginName": "Prometheus"
9  }
10 ],
11 "title": "Strata (and vLLM)",
12 "uid": "strata-serving",
13 "tags": [
14  "strata",
15  "vllm",
16  "llm"
17 ],
18 "timezone": "",
19 "schemaVersion": 39,
20 "version": 1,
21 "refresh": "30s",
22 "time": {
23  "from": "now-6h",
24  "to": "now"
25 },
26 "editable": true,
27 "templating": {
28  "list": [
29   {
30    "name": "model",
31    "label": "Model",
32    "type": "query",
33    "datasource": {
34     "type": "prometheus",
35     "uid": "${DS_PROMETHEUS}"
36    },
37    "refresh": 2,
38    "includeAll": true,
39    "multi": true,
40    "allValue": ".*",
41    "current": {
42     "selected": true,
43     "text": [
44      "All"
45     ],
46     "value": [
47      "$__all"
48     ]
49    },
50    "query": {
51     "query": "label_values(vllm:generation_tokens_total, model_name)",
52     "refId": "model"
53    },
54    "definition": "label_values(vllm:generation_tokens_total, model_name)",
55    "sort": 1
56   },
57   {
58    "name": "instance",
59    "label": "Instance",
60    "type": "query",
61    "datasource": {
62     "type": "prometheus",
63     "uid": "${DS_PROMETHEUS}"
64    },
65    "refresh": 2,
66    "includeAll": true,
67    "multi": true,
68    "allValue": ".*",
69    "current": {
70     "selected": true,
71     "text": [
72      "All"
73     ],
74     "value": [
75      "$__all"
76     ]
77    },
78    "query": {
79     "query": "label_values(vllm:generation_tokens_total{model_name=~\"$model\"}, instance)",
80     "refId": "instance"
81    },
82    "definition": "label_values(vllm:generation_tokens_total{model_name=~\"$model\"}, instance)",
83    "sort": 1
84   }
85  ]
86 },
87 "panels": [
88  {
89   "id": 1,
90   "type": "row",
91   "title": "Requests and throughput (vLLM names: the same panels read a vLLM server)",
92   "collapsed": false,
93   "gridPos": {
94    "h": 1,
95    "w": 24,
96    "x": 0,
97    "y": 0
98   },
99   "panels": []
100  },
101  {
102   "id": 2,
103   "type": "timeseries",
104   "title": "Requests running / waiting",
105   "description": "",
106   "datasource": {
107    "type": "prometheus",
108    "uid": "${DS_PROMETHEUS}"
109   },
110   "gridPos": {
111    "h": 7,
112    "w": 12,
113    "x": 0,
114    "y": 1
115   },
116   "targets": [
117    {
118     "refId": "A",
119     "datasource": {
120      "type": "prometheus",
121      "uid": "${DS_PROMETHEUS}"
122     },
123     "expr": "sum by (model_name) (vllm:num_requests_running{model_name=~\"$model\",instance=~\"$instance\"})",
124     "legendFormat": "{{model_name}} running"
125    },
126    {
127     "refId": "B",
128     "datasource": {
129      "type": "prometheus",
130      "uid": "${DS_PROMETHEUS}"
131     },
132     "expr": "sum by (model_name) (vllm:num_requests_waiting{model_name=~\"$model\",instance=~\"$instance\"})",
133     "legendFormat": "{{model_name}} waiting"
134    }
135   ],
136   "fieldConfig": {
137    "defaults": {
138     "unit": "none",
139     "custom": {
140      "fillOpacity": 10,
141      "showPoints": "never"
142     }
143    },
144    "overrides": []
145   },
146   "options": {
147    "legend": {
148     "displayMode": "list",
149     "placement": "bottom"
150    },
151    "tooltip": {
152     "mode": "multi"
153    }
154   }
155  },
156  {
157   "id": 3,
158   "type": "timeseries",
159   "title": "Tokens per second",
160   "description": "",
161   "datasource": {
162    "type": "prometheus",
163    "uid": "${DS_PROMETHEUS}"
164   },
165   "gridPos": {
166    "h": 7,
167    "w": 12,
168    "x": 12,
169    "y": 1
170   },
171   "targets": [
172    {
173     "refId": "A",
174     "datasource": {
175      "type": "prometheus",
176      "uid": "${DS_PROMETHEUS}"
177     },
178     "expr": "sum by (model_name) (rate(vllm:generation_tokens_total{model_name=~\"$model\",instance=~\"$instance\"}[1m]))",
179     "legendFormat": "{{model_name}} generated"
180    },
181    {
182     "refId": "B",
183     "datasource": {
184      "type": "prometheus",
185      "uid": "${DS_PROMETHEUS}"
186     },
187     "expr": "sum by (model_name) (rate(vllm:prompt_tokens_total{model_name=~\"$model\",instance=~\"$instance\"}[1m]))",
188     "legendFormat": "{{model_name}} prompt"
189    }
190   ],
191   "fieldConfig": {
192    "defaults": {
193     "unit": "suffix: tok/s",
194     "custom": {
195      "fillOpacity": 10,
196      "showPoints": "never"
197     }
198    },
199    "overrides": []
200   },
201   "options": {
202    "legend": {
203     "displayMode": "list",
204     "placement": "bottom"
205    },
206    "tooltip": {
207     "mode": "multi"
208    }
209   }
210  },
211  {
212   "id": 4,
213   "type": "timeseries",
214   "title": "Time to first token (p50 / p95)",
215   "description": "",
216   "datasource": {
217    "type": "prometheus",
218    "uid": "${DS_PROMETHEUS}"
219   },
220   "gridPos": {
221    "h": 7,
222    "w": 12,
223    "x": 0,
224    "y": 8
225   },
226   "targets": [
227    {
228     "refId": "A",
229     "datasource": {
230      "type": "prometheus",
231      "uid": "${DS_PROMETHEUS}"
232     },
233     "expr": "histogram_quantile(0.95, sum by (le, model_name) (rate(vllm:time_to_first_token_seconds_bucket{model_name=~\"$model\",instance=~\"$instance\"}[5m])))",
234     "legendFormat": "{{model_name}} p95"
235    },
236    {
237     "refId": "B",
238     "datasource": {
239      "type": "prometheus",
240      "uid": "${DS_PROMETHEUS}"
241     },
242     "expr": "histogram_quantile(0.5, sum by (le, model_name) (rate(vllm:time_to_first_token_seconds_bucket{model_name=~\"$model\",instance=~\"$instance\"}[5m])))",
243     "legendFormat": "{{model_name}} p50"
244    }
245   ],
246   "fieldConfig": {
247    "defaults": {
248     "unit": "s",
249     "custom": {
250      "fillOpacity": 10,
251      "showPoints": "never"
252     }
253    },
254    "overrides": []
255   },
256   "options": {
257    "legend": {
258     "displayMode": "list",
259     "placement": "bottom"
260    },
261    "tooltip": {
262     "mode": "multi"
263    }
264   }
265  },
266  {
267   "id": 5,
268   "type": "timeseries",
269   "title": "Time between tokens (p50 / p95)",
270   "description": "Strata observes the mean gap of each request (the engine reports its decode time, not each token's).",
271   "datasource": {
272    "type": "prometheus",
273    "uid": "${DS_PROMETHEUS}"
274   },
275   "gridPos": {
276    "h": 7,
277    "w": 12,
278    "x": 12,
279    "y": 8
280   },
281   "targets": [
282    {
283     "refId": "A",
284     "datasource": {
285      "type": "prometheus",
286      "uid": "${DS_PROMETHEUS}"
287     },
288     "expr": "histogram_quantile(0.95, sum by (le, model_name) (rate(vllm:inter_token_latency_seconds_bucket{model_name=~\"$model\",instance=~\"$instance\"}[5m])))",
289     "legendFormat": "{{model_name}} p95"
290    },
291    {
292     "refId": "B",
293     "datasource": {
294      "type": "prometheus",
295      "uid": "${DS_PROMETHEUS}"
296     },
297     "expr": "histogram_quantile(0.5, sum by (le, model_name) (rate(vllm:inter_token_latency_seconds_bucket{model_name=~\"$model\",instance=~\"$instance\"}[5m])))",
298     "legendFormat": "{{model_name}} p50"
299    }
300   ],
301   "fieldConfig": {
302    "defaults": {
303     "unit": "s",
304     "custom": {
305      "fillOpacity": 10,
306      "showPoints": "never"
307     }
308    },
309    "overrides": []
310   },
311   "options": {
312    "legend": {
313     "displayMode": "list",
314     "placement": "bottom"
315    },
316    "tooltip": {
317     "mode": "multi"
318    }
319   }
320  },
321  {
322   "id": 6,
323   "type": "timeseries",
324   "title": "Request duration (p50 / p95)",
325   "description": "",
326   "datasource": {
327    "type": "prometheus",
328    "uid": "${DS_PROMETHEUS}"
329   },
330   "gridPos": {
331    "h": 7,
332    "w": 12,
333    "x": 0,
334    "y": 15
335   },
336   "targets": [
337    {
338     "refId": "A",
339     "datasource": {
340      "type": "prometheus",
341      "uid": "${DS_PROMETHEUS}"
342     },
343     "expr": "histogram_quantile(0.95, sum by (le, model_name) (rate(vllm:e2e_request_latency_seconds_bucket{model_name=~\"$model\",instance=~\"$instance\"}[5m])))",
344     "legendFormat": "{{model_name}} p95"
345    },
346    {
347     "refId": "B",
348     "datasource": {
349      "type": "prometheus",
350      "uid": "${DS_PROMETHEUS}"
351     },
352     "expr": "histogram_quantile(0.5, sum by (le, model_name) (rate(vllm:e2e_request_latency_seconds_bucket{model_name=~\"$model\",instance=~\"$instance\"}[5m])))",
353     "legendFormat": "{{model_name}} p50"
354    }
355   ],
356   "fieldConfig": {
357    "defaults": {
358     "unit": "s",
359     "custom": {
360      "fillOpacity": 10,
361      "showPoints": "never"
362     }
363    },
364    "overrides": []
365   },
366   "options": {
367    "legend": {
368     "displayMode": "list",
369     "placement": "bottom"
370    },
371    "tooltip": {
372     "mode": "multi"
373    }
374   }
375  },
376  {
377   "id": 7,
378   "type": "timeseries",
379   "title": "Speed of one answer",
380   "description": "1 / the mean time between tokens: what one user sees, against the total above.",
381   "datasource": {
382    "type": "prometheus",
383    "uid": "${DS_PROMETHEUS}"
384   },
385   "gridPos": {
386    "h": 7,
387    "w": 12,
388    "x": 12,
389    "y": 15
390   },
391   "targets": [
392    {
393     "refId": "A",
394     "datasource": {
395      "type": "prometheus",
396      "uid": "${DS_PROMETHEUS}"
397     },
398     "expr": "sum by (model_name) (rate(vllm:inter_token_latency_seconds_count{model_name=~\"$model\",instance=~\"$instance\"}[5m])) / sum by (model_name) (rate(vllm:inter_token_latency_seconds_sum{model_name=~\"$model\",instance=~\"$instance\"}[5m]))",
399     "legendFormat": "{{model_name}}"
400    }
401   ],
402   "fieldConfig": {
403    "defaults": {
404     "unit": "suffix: tok/s",
405     "custom": {
406      "fillOpacity": 10,
407      "showPoints": "never"
408     }
409    },
410    "overrides": []
411   },
412   "options": {
413    "legend": {
414     "displayMode": "list",
415     "placement": "bottom"
416    },
417    "tooltip": {
418     "mode": "multi"
419    }
420   }
421  },
422  {
423   "id": 8,
424   "type": "timeseries",
425   "title": "Prompt tokens served from the cache",
426   "description": "Strata: the prompt cache and parked conversations; vLLM: its prefix-cache blocks.",
427   "datasource": {
428    "type": "prometheus",
429    "uid": "${DS_PROMETHEUS}"
430   },
431   "gridPos": {
432    "h": 7,
433    "w": 12,
434    "x": 0,
435    "y": 22
436   },
437   "targets": [
438    {
439     "refId": "A",
440     "datasource": {
441      "type": "prometheus",
442      "uid": "${DS_PROMETHEUS}"
443     },
444     "expr": "sum by (model_name) (rate(vllm:prefix_cache_hits_total{model_name=~\"$model\",instance=~\"$instance\"}[15m])) / sum by (model_name) (rate(vllm:prefix_cache_queries_total{model_name=~\"$model\",instance=~\"$instance\"}[15m]))",
445     "legendFormat": "{{model_name}}"
446    }
447   ],
448   "fieldConfig": {
449    "defaults": {
450     "unit": "percentunit",
451     "custom": {
452      "fillOpacity": 10,
453      "showPoints": "never"
454     }
455    },
456    "overrides": []
457   },
458   "options": {
459    "legend": {
460     "displayMode": "list",
461     "placement": "bottom"
462    },
463    "tooltip": {
464     "mode": "multi"
465    }
466   }
467  },
468  {
469   "id": 9,
470   "type": "timeseries",
471   "title": "MTP drafts accepted",
472   "description": "",
473   "datasource": {
474    "type": "prometheus",
475    "uid": "${DS_PROMETHEUS}"
476   },
477   "gridPos": {
478    "h": 7,
479    "w": 12,
480    "x": 12,
481    "y": 22
482   },
483   "targets": [
484    {
485     "refId": "A",
486     "datasource": {
487      "type": "prometheus",
488      "uid": "${DS_PROMETHEUS}"
489     },
490     "expr": "sum by (model_name) (rate(vllm:spec_decode_num_accepted_tokens_total{model_name=~\"$model\",instance=~\"$instance\"}[15m])) / sum by (model_name) (rate(vllm:spec_decode_num_draft_tokens_total{model_name=~\"$model\",instance=~\"$instance\"}[15m]))",
491     "legendFormat": "{{model_name}}"
492    }
493   ],
494   "fieldConfig": {
495    "defaults": {
496     "unit": "percentunit",
497     "custom": {
498      "fillOpacity": 10,
499      "showPoints": "never"
500     }
501    },
502    "overrides": []
503   },
504   "options": {
505    "legend": {
506     "displayMode": "list",
507     "placement": "bottom"
508    },
509    "tooltip": {
510     "mode": "multi"
511    }
512   }
513  },
514  {
515   "id": 10,
516   "type": "timeseries",
517   "title": "Requests finished per minute",
518   "description": "",
519   "datasource": {
520    "type": "prometheus",
521    "uid": "${DS_PROMETHEUS}"
522   },
523   "gridPos": {
524    "h": 7,
525    "w": 12,
526    "x": 0,
527    "y": 29
528   },
529   "targets": [
530    {
531     "refId": "A",
532     "datasource": {
533      "type": "prometheus",
534      "uid": "${DS_PROMETHEUS}"
535     },
536     "expr": "sum by (model_name) (rate(vllm:request_success_total{model_name=~\"$model\",instance=~\"$instance\"}[5m])) * 60",
537     "legendFormat": "{{model_name}}"
538    }
539   ],
540   "fieldConfig": {
541    "defaults": {
542     "unit": "suffix: req/min",
543     "custom": {
544      "fillOpacity": 10,
545      "showPoints": "never"
546     }
547    },
548    "overrides": []
549   },
550   "options": {
551    "legend": {
552     "displayMode": "list",
553     "placement": "bottom"
554    },
555    "tooltip": {
556     "mode": "multi"
557    }
558   }
559  },
560  {
561   "id": 11,
562   "type": "timeseries",
563   "title": "Context in use",
564   "description": "",
565   "datasource": {
566    "type": "prometheus",
567    "uid": "${DS_PROMETHEUS}"
568   },
569   "gridPos": {
570    "h": 7,
571    "w": 12,
572    "x": 12,
573    "y": 29
574   },
575   "targets": [
576    {
577     "refId": "A",
578     "datasource": {
579      "type": "prometheus",
580      "uid": "${DS_PROMETHEUS}"
581     },
582     "expr": "max by (model_name) (vllm:kv_cache_usage_perc{model_name=~\"$model\",instance=~\"$instance\"})",
583     "legendFormat": "{{model_name}}"
584    }
585   ],
586   "fieldConfig": {
587    "defaults": {
588     "unit": "percentunit",
589     "custom": {
590      "fillOpacity": 10,
591      "showPoints": "never"
592     }
593    },
594    "overrides": []
595   },
596   "options": {
597    "legend": {
598     "displayMode": "list",
599     "placement": "bottom"
600    },
601    "tooltip": {
602     "mode": "multi"
603    }
604   }
605  },
606  {
607   "id": 12,
608   "type": "row",
609   "title": "Strata engine (strata: names, after the /metrics JSON keys)",
610   "collapsed": false,
611   "gridPos": {
612    "h": 1,
613    "w": 24,
614    "x": 0,
615    "y": 36
616   },
617   "panels": []
618  },
619  {
620   "id": 13,
621   "type": "timeseries",
622   "title": "Engine state",
623   "description": "",
624   "datasource": {
625    "type": "prometheus",
626    "uid": "${DS_PROMETHEUS}"
627   },
628   "gridPos": {
629    "h": 7,
630    "w": 12,
631    "x": 0,
632    "y": 37
633   },
634   "targets": [
635    {
636     "refId": "A",
637     "datasource": {
638      "type": "prometheus",
639      "uid": "${DS_PROMETHEUS}"
640     },
641     "expr": "max by (state) (strata:live_state{model_name=~\"$model\",instance=~\"$instance\"}) > 0",
642     "legendFormat": "{{state}}"
643    }
644   ],
645   "fieldConfig": {
646    "defaults": {
647     "unit": "none",
648     "custom": {
649      "fillOpacity": 60,
650      "showPoints": "never",
651      "stacking": {
652       "mode": "normal"
653      }
654     }
655    },
656    "overrides": []
657   },
658   "options": {
659    "legend": {
660     "displayMode": "list",
661     "placement": "bottom"
662    },
663    "tooltip": {
664     "mode": "multi"
665    }
666   }
667  },
668  {
669   "id": 14,
670   "type": "timeseries",
671   "title": "Batch slots by state",
672   "description": "\"parallel\": N / --batch only.",
673   "datasource": {
674    "type": "prometheus",
675    "uid": "${DS_PROMETHEUS}"
676   },
677   "gridPos": {
678    "h": 7,
679    "w": 12,
680    "x": 12,
681    "y": 37
682   },
683   "targets": [
684    {
685     "refId": "A",
686     "datasource": {
687      "type": "prometheus",
688      "uid": "${DS_PROMETHEUS}"
689     },
690     "expr": "sum by (state) (strata:live_slots{model_name=~\"$model\",instance=~\"$instance\"})",
691     "legendFormat": "{{state}}"
692    }
693   ],
694   "fieldConfig": {
695    "defaults": {
696     "unit": "none",
697     "custom": {
698      "fillOpacity": 60,
699      "showPoints": "never",
700      "stacking": {
701       "mode": "normal"
702      }
703     }
704    },
705    "overrides": []
706   },
707   "options": {
708    "legend": {
709     "displayMode": "list",
710     "placement": "bottom"
711    },
712    "tooltip": {
713     "mode": "multi"
714    }
715   }
716  },
717  {
718   "id": 15,
719   "type": "timeseries",
720   "title": "Engine rates",
721   "description": "",
722   "datasource": {
723    "type": "prometheus",
724    "uid": "${DS_PROMETHEUS}"
725   },
726   "gridPos": {
727    "h": 7,
728    "w": 12,
729    "x": 0,
730    "y": 44
731   },
732   "targets": [
733    {
734     "refId": "A",
735     "datasource": {
736      "type": "prometheus",
737      "uid": "${DS_PROMETHEUS}"
738     },
739     "expr": "max(strata:live_tok_s{model_name=~\"$model\",instance=~\"$instance\"})",
740     "legendFormat": "decode tok/s"
741    },
742    {
743     "refId": "B",
744     "datasource": {
745      "type": "prometheus",
746      "uid": "${DS_PROMETHEUS}"
747     },
748     "expr": "max(strata:live_prefill_tok_s_mean{model_name=~\"$model\",instance=~\"$instance\"})",
749     "legendFormat": "prompt tok/s"
750    }
751   ],
752   "fieldConfig": {
753    "defaults": {
754     "unit": "suffix: tok/s",
755     "custom": {
756      "fillOpacity": 10,
757      "showPoints": "never"
758     }
759    },
760    "overrides": []
761   },
762   "options": {
763    "legend": {
764     "displayMode": "list",
765     "placement": "bottom"
766    },
767    "tooltip": {
768     "mode": "multi"
769    }
770   }
771  },
772  {
773   "id": 16,
774   "type": "timeseries",
775   "title": "Expert cache hit rate (last request)",
776   "description": "Experts found in VRAM. Below ~90 % the CPU and the PCIe link compute the rest and decode slows down.",
777   "datasource": {
778    "type": "prometheus",
779    "uid": "${DS_PROMETHEUS}"
780   },
781   "gridPos": {
782    "h": 7,
783    "w": 12,
784    "x": 12,
785    "y": 44
786   },
787   "targets": [
788    {
789     "refId": "A",
790     "datasource": {
791      "type": "prometheus",
792      "uid": "${DS_PROMETHEUS}"
793     },
794     "expr": "max(strata:last_hit_rate{model_name=~\"$model\",instance=~\"$instance\"})",
795     "legendFormat": "hit rate"
796    }
797   ],
798   "fieldConfig": {
799    "defaults": {
800     "unit": "percentunit",
801     "custom": {
802      "fillOpacity": 10,
803      "showPoints": "never"
804     }
805    },
806    "overrides": []
807   },
808   "options": {
809    "legend": {
810     "displayMode": "list",
811     "placement": "bottom"
812    },
813    "tooltip": {
814     "mode": "multi"
815    }
816   }
817  },
818  {
819   "id": 17,
820   "type": "timeseries",
821   "title": "Engine time: prompts / decoding",
822   "description": "Seconds of work per second: 1 = busy all the time (more with requests running together).",
823   "datasource": {
824    "type": "prometheus",
825    "uid": "${DS_PROMETHEUS}"
826   },
827   "gridPos": {
828    "h": 7,
829    "w": 12,
830    "x": 0,
831    "y": 51
832   },
833   "targets": [
834    {
835     "refId": "A",
836     "datasource": {
837      "type": "prometheus",
838      "uid": "${DS_PROMETHEUS}"
839     },
840     "expr": "sum(rate(strata:totals_prompt_seconds_total{model_name=~\"$model\",instance=~\"$instance\"}[5m]))",
841     "legendFormat": "reading prompts"
842    },
843    {
844     "refId": "B",
845     "datasource": {
846      "type": "prometheus",
847      "uid": "${DS_PROMETHEUS}"
848     },
849     "expr": "sum(rate(strata:totals_decode_seconds_total{model_name=~\"$model\",instance=~\"$instance\"}[5m]))",
850     "legendFormat": "decoding"
851    }
852   ],
853   "fieldConfig": {
854    "defaults": {
855     "unit": "percentunit",
856     "custom": {
857      "fillOpacity": 60,
858      "showPoints": "never",
859      "stacking": {
860       "mode": "normal"
861      }
862     }
863    },
864    "overrides": []
865   },
866   "options": {
867    "legend": {
868     "displayMode": "list",
869     "placement": "bottom"
870    },
871    "tooltip": {
872     "mode": "multi"
873    }
874   }
875  },
876  {
877   "id": 18,
878   "type": "timeseries",
879   "title": "GPU busy, per card",
880   "description": "",
881   "datasource": {
882    "type": "prometheus",
883    "uid": "${DS_PROMETHEUS}"
884   },
885   "gridPos": {
886    "h": 7,
887    "w": 12,
888    "x": 12,
889    "y": 51
890   },
891   "targets": [
892    {
893     "refId": "A",
894     "datasource": {
895      "type": "prometheus",
896      "uid": "${DS_PROMETHEUS}"
897     },
898     "expr": "max by (gpu) (strata:gpu_util{model_name=~\"$model\",instance=~\"$instance\"})",
899     "legendFormat": "GPU {{gpu}}"
900    }
901   ],
902   "fieldConfig": {
903    "defaults": {
904     "unit": "percent",
905     "custom": {
906      "fillOpacity": 10,
907      "showPoints": "never"
908     }
909    },
910    "overrides": []
911   },
912   "options": {
913    "legend": {
914     "displayMode": "list",
915     "placement": "bottom"
916    },
917    "tooltip": {
918     "mode": "multi"
919    }
920   }
921  },
922  {
923   "id": 19,
924   "type": "timeseries",
925   "title": "GPU memory, per card",
926   "description": "",
927   "datasource": {
928    "type": "prometheus",
929    "uid": "${DS_PROMETHEUS}"
930   },
931   "gridPos": {
932    "h": 7,
933    "w": 12,
934    "x": 0,
935    "y": 58
936   },
937   "targets": [
938    {
939     "refId": "A",
940     "datasource": {
941      "type": "prometheus",
942      "uid": "${DS_PROMETHEUS}"
943     },
944     "expr": "max by (gpu) (strata:gpu_mem_used_bytes{model_name=~\"$model\",instance=~\"$instance\"})",
945     "legendFormat": "GPU {{gpu}} used"
946    },
947    {
948     "refId": "B",
949     "datasource": {
950      "type": "prometheus",
951      "uid": "${DS_PROMETHEUS}"
952     },
953     "expr": "max by (gpu) (strata:gpu_mem_total_bytes{model_name=~\"$model\",instance=~\"$instance\"})",
954     "legendFormat": "GPU {{gpu}} total"
955    }
956   ],
957   "fieldConfig": {
958    "defaults": {
959     "unit": "bytes",
960     "custom": {
961      "fillOpacity": 10,
962      "showPoints": "never"
963     }
964    },
965    "overrides": []
966   },
967   "options": {
968    "legend": {
969     "displayMode": "list",
970     "placement": "bottom"
971    },
972    "tooltip": {
973     "mode": "multi"
974    }
975   }
976  },
977  {
978   "id": 20,
979   "type": "timeseries",
980   "title": "Host RAM",
981   "description": "",
982   "datasource": {
983    "type": "prometheus",
984    "uid": "${DS_PROMETHEUS}"
985   },
986   "gridPos": {
987    "h": 7,
988    "w": 12,
989    "x": 12,
990    "y": 58
991   },
992   "targets": [
993    {
994     "refId": "A",
995     "datasource": {
996      "type": "prometheus",
997      "uid": "${DS_PROMETHEUS}"
998     },
999     "expr": "max(strata:ram_used_bytes{model_name=~\"$model\",instance=~\"$instance\"})",
1000     "legendFormat": "used"
1001    },
1002    {
1003     "refId": "B",
1004     "datasource": {
1005      "type": "prometheus",
1006      "uid": "${DS_PROMETHEUS}"
1007     },
1008     "expr": "max(strata:ram_total_bytes{model_name=~\"$model\",instance=~\"$instance\"})",
1009     "legendFormat": "total"
1010    }
1011   ],
1012   "fieldConfig": {
1013    "defaults": {
1014     "unit": "bytes",
1015     "custom": {
1016      "fillOpacity": 10,
1017      "showPoints": "never"
1018     }
1019    },
1020    "overrides": []
1021   },
1022   "options": {
1023    "legend": {
1024     "displayMode": "list",
1025     "placement": "bottom"
1026    },
1027    "tooltip": {
1028     "mode": "multi"
1029    }
1030   }
1031  }
1032 ]
1033}