grafana.json 24 KB
Newer Older
Yudi Xue's avatar
Yudi Xue committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": 1,
  "links": [],
  "panels": [
    {
      "datasource": {
        "default": true,
27
        "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
87
88
        "x": 0,
        "y": 0
Yudi Xue's avatar
Yudi Xue committed
89
      },
90
      "id": 14,
Yudi Xue's avatar
Yudi Xue committed
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
109
          "disableTextWrap": false,
Yudi Xue's avatar
Yudi Xue committed
110
          "editorMode": "code",
111
112
113
          "expr": "histogram_quantile(0.99, sum by (le) (rate(sglang:e2e_request_latency_seconds_bucket[$__rate_interval])))\r\n",
          "fullMetaSearch": false,
          "includeNullMetadata": true,
Yudi Xue's avatar
Yudi Xue committed
114
          "instant": false,
115
          "legendFormat": "P99",
Yudi Xue's avatar
Yudi Xue committed
116
          "range": true,
117
118
119
120
121
122
123
          "refId": "A",
          "useBackend": false
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
Yudi Xue's avatar
Yudi Xue committed
124
          },
125
126
127
128
129
130
131
132
133
134
135
          "disableTextWrap": false,
          "editorMode": "code",
          "expr": "histogram_quantile(0.9, sum by (le) (rate(sglang:e2e_request_latency_seconds_bucket[$__rate_interval])))\r\n",
          "fullMetaSearch": false,
          "hide": false,
          "includeNullMetadata": true,
          "instant": false,
          "legendFormat": "P90",
          "range": true,
          "refId": "B",
          "useBackend": false
Yudi Xue's avatar
Yudi Xue committed
136
        },
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
          "expr": "histogram_quantile(0.5, sum by (le) (rate(sglang:e2e_request_latency_seconds_bucket[$__rate_interval])))\r\n",
          "fullMetaSearch": false,
          "hide": false,
          "includeNullMetadata": true,
          "instant": false,
          "legendFormat": "P95",
          "range": true,
          "refId": "C",
          "useBackend": false
Yudi Xue's avatar
Yudi Xue committed
153
154
155
156
157
158
159
160
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
161
          "expr": "avg(rate(sglang:e2e_request_latency_seconds_sum[$__rate_interval]) /  rate(sglang:e2e_request_latency_seconds_count[$__rate_interval]))\r\n",
Yudi Xue's avatar
Yudi Xue committed
162
          "fullMetaSearch": false,
163
          "hide": false,
Yudi Xue's avatar
Yudi Xue committed
164
165
          "includeNullMetadata": true,
          "instant": false,
166
          "legendFormat": "P50",
Yudi Xue's avatar
Yudi Xue committed
167
          "range": true,
168
          "refId": "D",
Yudi Xue's avatar
Yudi Xue committed
169
170
171
          "useBackend": false
        }
      ],
172
      "title": "End-to-End Request Latency",
Yudi Xue's avatar
Yudi Xue committed
173
174
175
176
177
      "type": "timeseries"
    },
    {
      "datasource": {
        "default": true,
178
        "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "scaleDistribution": {
              "type": "linear"
            }
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
199
        "y": 0
Yudi Xue's avatar
Yudi Xue committed
200
      },
201
      "id": 17,
Yudi Xue's avatar
Yudi Xue committed
202
      "options": {
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
        "calculate": true,
        "cellGap": 1,
        "color": {
          "exponent": 0.5,
          "fill": "dark-orange",
          "mode": "scheme",
          "reverse": false,
          "scale": "exponential",
          "scheme": "Spectral",
          "steps": 64
        },
        "exemplars": {
          "color": "rgba(255,0,255,0.7)"
        },
        "filterValues": {
218
          "le": 1e-09
219
        },
Yudi Xue's avatar
Yudi Xue committed
220
        "legend": {
221
222
223
224
          "show": true
        },
        "rowsFrame": {
          "layout": "auto"
Yudi Xue's avatar
Yudi Xue committed
225
226
227
        },
        "tooltip": {
          "mode": "single",
228
229
230
231
232
233
          "showColorScale": true,
          "yHistogram": false
        },
        "yAxis": {
          "axisPlacement": "left",
          "reverse": false
Yudi Xue's avatar
Yudi Xue committed
234
235
        }
      },
236
      "pluginVersion": "11.2.0",
Yudi Xue's avatar
Yudi Xue committed
237
238
239
240
241
242
243
244
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
245
          "expr": "rate(sglang:e2e_request_latency_seconds_bucket{model_name=~\"$model_name\"}[$__rate_interval])\r\n",
Yudi Xue's avatar
Yudi Xue committed
246
247
248
          "fullMetaSearch": false,
          "includeNullMetadata": true,
          "instant": false,
249
          "legendFormat": "{{le}}",
Yudi Xue's avatar
Yudi Xue committed
250
251
252
253
254
          "range": true,
          "refId": "A",
          "useBackend": false
        }
      ],
255
256
      "title": "End-to-End Request Latency Heatmap",
      "type": "heatmap"
Yudi Xue's avatar
Yudi Xue committed
257
258
259
260
    },
    {
      "datasource": {
        "default": true,
261
        "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
322
        "y": 8
Yudi Xue's avatar
Yudi Xue committed
323
      },
324
      "id": 20,
Yudi Xue's avatar
Yudi Xue committed
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
345
          "expr": "histogram_quantile(0.99, sum by (le) (rate(sglang:time_to_first_token_seconds_bucket[$__rate_interval])))\r\n",
Yudi Xue's avatar
Yudi Xue committed
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
          "fullMetaSearch": false,
          "includeNullMetadata": true,
          "instant": false,
          "legendFormat": "P99",
          "range": true,
          "refId": "A",
          "useBackend": false
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
361
          "expr": "histogram_quantile(0.9, sum by (le) (rate(sglang:time_to_first_token_seconds_bucket[$__rate_interval])))\r\n",
Yudi Xue's avatar
Yudi Xue committed
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
          "fullMetaSearch": false,
          "hide": false,
          "includeNullMetadata": true,
          "instant": false,
          "legendFormat": "P90",
          "range": true,
          "refId": "B",
          "useBackend": false
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
378
          "expr": "histogram_quantile(0.5, sum by (le) (rate(sglang:time_to_first_token_seconds_bucket[$__rate_interval])))\r\n",
Yudi Xue's avatar
Yudi Xue committed
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
          "fullMetaSearch": false,
          "hide": false,
          "includeNullMetadata": true,
          "instant": false,
          "legendFormat": "P95",
          "range": true,
          "refId": "C",
          "useBackend": false
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
395
          "expr": "avg(rate(sglang:time_to_first_token_seconds_bucket[$__rate_interval]) /  rate(sglang:time_to_first_token_seconds_bucket[$__rate_interval]))\r\n",
Yudi Xue's avatar
Yudi Xue committed
396
397
398
399
400
401
402
403
          "fullMetaSearch": false,
          "hide": false,
          "includeNullMetadata": true,
          "instant": false,
          "legendFormat": "P50",
          "range": true,
          "refId": "D",
          "useBackend": false
404
405
406
407
408
409
410
411
        }
      ],
      "title": "End-to-End Request Latency",
      "type": "timeseries"
    },
    {
      "datasource": {
        "default": true,
412
        "type": "prometheus"
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "scaleDistribution": {
              "type": "linear"
            }
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 8
      },
      "id": 19,
      "options": {
        "calculate": true,
        "cellGap": 1,
        "color": {
          "exponent": 0.5,
          "fill": "dark-orange",
          "mode": "scheme",
          "reverse": false,
          "scale": "exponential",
          "scheme": "Spectral",
          "steps": 64
        },
        "exemplars": {
          "color": "rgba(255,0,255,0.7)"
        },
        "filterValues": {
452
          "le": 1e-09
453
454
455
456
457
458
459
460
461
462
463
        },
        "legend": {
          "show": true
        },
        "rowsFrame": {
          "layout": "auto"
        },
        "tooltip": {
          "mode": "single",
          "showColorScale": true,
          "yHistogram": false
Yudi Xue's avatar
Yudi Xue committed
464
        },
465
466
467
468
469
470
471
472
        "yAxis": {
          "axisPlacement": "left",
          "reverse": false,
          "unit": "s"
        }
      },
      "pluginVersion": "11.2.0",
      "targets": [
Yudi Xue's avatar
Yudi Xue committed
473
474
475
476
477
478
479
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
480
          "expr": "rate(sglang:time_to_first_token_seconds_bucket{model_name=~\"$model_name\"}[$__rate_interval])\r\n",
Yudi Xue's avatar
Yudi Xue committed
481
482
483
          "fullMetaSearch": false,
          "includeNullMetadata": true,
          "instant": false,
484
          "legendFormat": "{{le}}",
Yudi Xue's avatar
Yudi Xue committed
485
          "range": true,
486
          "refId": "A",
Yudi Xue's avatar
Yudi Xue committed
487
488
489
          "useBackend": false
        }
      ],
490
491
      "title": "Time-To-First-Token Seconds Heatmap",
      "type": "heatmap"
Yudi Xue's avatar
Yudi Xue committed
492
493
494
495
    },
    {
      "datasource": {
        "default": true,
496
        "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
556
557
        "x": 0,
        "y": 16
Yudi Xue's avatar
Yudi Xue committed
558
      },
559
      "id": 7,
Yudi Xue's avatar
Yudi Xue committed
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
578
          "disableTextWrap": false,
Yudi Xue's avatar
Yudi Xue committed
579
          "editorMode": "code",
580
581
582
          "expr": "sglang:num_running_reqs",
          "fullMetaSearch": false,
          "includeNullMetadata": true,
Yudi Xue's avatar
Yudi Xue committed
583
          "instant": false,
584
585
          "interval": "",
          "legendFormat": "{{instance}}",
Yudi Xue's avatar
Yudi Xue committed
586
          "range": true,
587
588
          "refId": "A",
          "useBackend": false
Yudi Xue's avatar
Yudi Xue committed
589
590
        }
      ],
591
      "title": "Num Running Requests",
Yudi Xue's avatar
Yudi Xue committed
592
593
594
595
596
      "type": "timeseries"
    },
    {
      "datasource": {
        "default": true,
597
        "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
657
658
        "x": 12,
        "y": 16
Yudi Xue's avatar
Yudi Xue committed
659
      },
660
      "id": 18,
Yudi Xue's avatar
Yudi Xue committed
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "editorMode": "code",
680
          "expr": "sglang:gen_throughput",
Yudi Xue's avatar
Yudi Xue committed
681
          "instant": false,
682
          "legendFormat": "{{instance}}",
Yudi Xue's avatar
Yudi Xue committed
683
          "range": true,
684
          "refId": "A"
Yudi Xue's avatar
Yudi Xue committed
685
686
        }
      ],
687
      "title": "Token Generation Throughput (Tokens / S)",
Yudi Xue's avatar
Yudi Xue committed
688
689
690
691
692
      "type": "timeseries"
    },
    {
      "datasource": {
        "default": true,
693
        "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
753
754
        "x": 0,
        "y": 24
Yudi Xue's avatar
Yudi Xue committed
755
      },
756
      "id": 11,
Yudi Xue's avatar
Yudi Xue committed
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
777
          "expr": "sglang:cache_hit_rate",
Yudi Xue's avatar
Yudi Xue committed
778
779
780
          "fullMetaSearch": false,
          "includeNullMetadata": true,
          "instant": false,
781
          "legendFormat": "{{instance}}",
Yudi Xue's avatar
Yudi Xue committed
782
783
784
785
786
          "range": true,
          "refId": "A",
          "useBackend": false
        }
      ],
787
      "title": "Cache Hit Rate",
Yudi Xue's avatar
Yudi Xue committed
788
789
790
791
792
      "type": "timeseries"
    },
    {
      "datasource": {
        "default": true,
793
        "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
794
795
796
      },
      "fieldConfig": {
        "defaults": {
797
798
          "color": {
            "mode": "palette-classic"
Yudi Xue's avatar
Yudi Xue committed
799
800
          },
          "custom": {
801
802
803
804
805
806
807
808
809
810
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
Yudi Xue's avatar
Yudi Xue committed
811
812
813
814
815
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
816
817
818
819
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
Yudi Xue's avatar
Yudi Xue committed
820
821
            "scaleDistribution": {
              "type": "linear"
822
823
824
825
826
827
828
829
830
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
Yudi Xue's avatar
Yudi Xue committed
831
            }
832
833
834
835
836
837
838
839
840
841
842
843
844
845
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
Yudi Xue's avatar
Yudi Xue committed
846
847
848
849
850
851
852
853
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
854
        "y": 24
Yudi Xue's avatar
Yudi Xue committed
855
      },
856
      "id": 8,
Yudi Xue's avatar
Yudi Xue committed
857
858
      "options": {
        "legend": {
859
860
861
862
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
Yudi Xue's avatar
Yudi Xue committed
863
864
865
        },
        "tooltip": {
          "mode": "single",
866
          "sort": "none"
Yudi Xue's avatar
Yudi Xue committed
867
868
869
870
871
872
873
874
875
876
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
877
          "expr": "sglang:num_queue_reqs",
Yudi Xue's avatar
Yudi Xue committed
878
879
880
          "fullMetaSearch": false,
          "includeNullMetadata": true,
          "instant": false,
881
          "legendFormat": "{{instance}}",
Yudi Xue's avatar
Yudi Xue committed
882
883
884
885
886
          "range": true,
          "refId": "A",
          "useBackend": false
        }
      ],
887
888
      "title": "Number Queued Requests",
      "type": "timeseries"
Yudi Xue's avatar
Yudi Xue committed
889
890
891
892
893
894
895
896
897
898
899
900
901
902
    }
  ],
  "refresh": "5s",
  "schemaVersion": 39,
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "127.0.0.1:30000",
          "value": "127.0.0.1:30000"
        },
        "datasource": {
903
          "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
        },
        "definition": "label_values(instance)",
        "hide": 0,
        "includeAll": false,
        "label": "instance",
        "multi": false,
        "name": "instance",
        "options": [],
        "query": {
          "qryType": 1,
          "query": "label_values(instance)",
          "refId": "PrometheusVariableQueryEditor-VariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "current": {
925
926
927
          "selected": false,
          "text": "meta-llama/Llama-3.1-8B-Instruct",
          "value": "meta-llama/Llama-3.1-8B-Instruct"
Yudi Xue's avatar
Yudi Xue committed
928
        },
929
        "datasource": {
930
          "type": "prometheus"
931
932
933
        },
        "definition": "label_values(model_name)",
        "hide": 0,
Yudi Xue's avatar
Yudi Xue committed
934
        "includeAll": false,
935
        "label": "model name",
Yudi Xue's avatar
Yudi Xue committed
936
        "multi": false,
937
        "name": "model_name",
Yudi Xue's avatar
Yudi Xue committed
938
939
940
        "options": [],
        "query": {
          "qryType": 1,
941
          "query": "label_values(model_name)",
Yudi Xue's avatar
Yudi Xue committed
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
          "refId": "PrometheusVariableQueryEditor-VariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-30m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "browser",
  "title": "SGLang Dashboard",
959
  "uid": "sglang-dashboard",
960
  "version": 5,
Yudi Xue's avatar
Yudi Xue committed
961
962
  "weekStart": ""
}