grafana.json 24.5 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
{
  "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,
mac0ne's avatar
mac0ne committed
21
  "id": 8,
Yudi Xue's avatar
Yudi Xue committed
22
23
24
25
26
  "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
      },
      "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": [
              {
mac0ne's avatar
mac0ne committed
72
                "color": "green"
Yudi Xue's avatar
Yudi Xue committed
73
74
75
76
77
78
79
80
81
82
83
84
85
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
86
87
        "x": 0,
        "y": 0
Yudi Xue's avatar
Yudi Xue committed
88
      },
89
      "id": 14,
Yudi Xue's avatar
Yudi Xue committed
90
91
92
93
94
95
96
97
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
mac0ne's avatar
mac0ne committed
98
          "hideZeros": false,
Yudi Xue's avatar
Yudi Xue committed
99
100
101
102
          "mode": "single",
          "sort": "none"
        }
      },
mac0ne's avatar
mac0ne committed
103
      "pluginVersion": "11.6.0",
Yudi Xue's avatar
Yudi Xue committed
104
105
106
107
108
109
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
110
          "disableTextWrap": false,
Yudi Xue's avatar
Yudi Xue committed
111
          "editorMode": "code",
112
113
114
          "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
115
          "instant": false,
116
          "legendFormat": "P99",
Yudi Xue's avatar
Yudi Xue committed
117
          "range": true,
118
119
120
121
122
123
124
          "refId": "A",
          "useBackend": false
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
Yudi Xue's avatar
Yudi Xue committed
125
          },
126
127
128
129
130
131
132
133
134
135
136
          "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
137
        },
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
        {
          "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
154
155
156
157
158
159
160
161
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
162
          "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
163
          "fullMetaSearch": false,
164
          "hide": false,
Yudi Xue's avatar
Yudi Xue committed
165
166
          "includeNullMetadata": true,
          "instant": false,
167
          "legendFormat": "P50",
Yudi Xue's avatar
Yudi Xue committed
168
          "range": true,
169
          "refId": "D",
Yudi Xue's avatar
Yudi Xue committed
170
171
172
          "useBackend": false
        }
      ],
173
      "title": "End-to-End Request Latency",
Yudi Xue's avatar
Yudi Xue committed
174
175
176
177
178
      "type": "timeseries"
    },
    {
      "datasource": {
        "default": true,
179
        "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "scaleDistribution": {
              "type": "linear"
            }
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
200
        "y": 0
Yudi Xue's avatar
Yudi Xue committed
201
      },
202
      "id": 17,
mac0ne's avatar
mac0ne committed
203
      "maxDataPoints": 30,
Yudi Xue's avatar
Yudi Xue committed
204
      "options": {
mac0ne's avatar
mac0ne committed
205
206
207
208
209
210
211
212
        "calculate": false,
        "calculation": {
          "yBuckets": {
            "scale": {
              "type": "linear"
            }
          }
        },
213
        "cellGap": 1,
mac0ne's avatar
mac0ne committed
214
        "cellValues": {},
215
216
217
218
219
220
221
222
223
224
225
226
227
        "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": {
mac0ne's avatar
mac0ne committed
228
          "le": 1e-9
229
        },
Yudi Xue's avatar
Yudi Xue committed
230
        "legend": {
231
232
233
234
          "show": true
        },
        "rowsFrame": {
          "layout": "auto"
Yudi Xue's avatar
Yudi Xue committed
235
236
237
        },
        "tooltip": {
          "mode": "single",
238
239
240
241
242
          "showColorScale": true,
          "yHistogram": false
        },
        "yAxis": {
          "axisPlacement": "left",
mac0ne's avatar
mac0ne committed
243
244
          "reverse": false,
          "unit": "secs"
Yudi Xue's avatar
Yudi Xue committed
245
246
        }
      },
mac0ne's avatar
mac0ne committed
247
      "pluginVersion": "11.6.0",
Yudi Xue's avatar
Yudi Xue committed
248
249
250
251
252
253
254
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
mac0ne's avatar
mac0ne committed
255
256
257
          "editorMode": "builder",
          "expr": "sum(increase(sglang:e2e_request_latency_seconds_bucket{model_name=~\"$model_name\"}[$__rate_interval])) by (le)\r\n",
          "format": "heatmap",
Yudi Xue's avatar
Yudi Xue committed
258
259
260
          "fullMetaSearch": false,
          "includeNullMetadata": true,
          "instant": false,
261
          "legendFormat": "{{le}}",
Yudi Xue's avatar
Yudi Xue committed
262
263
264
265
266
          "range": true,
          "refId": "A",
          "useBackend": false
        }
      ],
mac0ne's avatar
mac0ne committed
267
      "title": "End-to-End Request Latency(s) Heatmap",
268
      "type": "heatmap"
Yudi Xue's avatar
Yudi Xue committed
269
270
271
272
    },
    {
      "datasource": {
        "default": true,
273
        "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
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
      },
      "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": [
              {
mac0ne's avatar
mac0ne committed
318
                "color": "green"
Yudi Xue's avatar
Yudi Xue committed
319
320
321
322
323
324
325
326
327
328
329
330
331
332
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
333
        "y": 8
Yudi Xue's avatar
Yudi Xue committed
334
      },
335
      "id": 20,
Yudi Xue's avatar
Yudi Xue committed
336
337
338
339
340
341
342
343
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
mac0ne's avatar
mac0ne committed
344
          "hideZeros": false,
Yudi Xue's avatar
Yudi Xue committed
345
346
347
348
          "mode": "single",
          "sort": "none"
        }
      },
mac0ne's avatar
mac0ne committed
349
      "pluginVersion": "11.6.0",
Yudi Xue's avatar
Yudi Xue committed
350
351
352
353
354
355
356
357
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
358
          "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
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
          "fullMetaSearch": false,
          "includeNullMetadata": true,
          "instant": false,
          "legendFormat": "P99",
          "range": true,
          "refId": "A",
          "useBackend": false
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
374
          "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
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
          "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",
yuhui's avatar
yuhui committed
391
          "expr": "histogram_quantile(0.95, sum by (le) (rate(sglang:time_to_first_token_seconds_bucket[$__rate_interval])))\r\n",
Yudi Xue's avatar
Yudi Xue committed
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
          "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",
408
          "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
409
410
411
412
413
414
415
416
          "fullMetaSearch": false,
          "hide": false,
          "includeNullMetadata": true,
          "instant": false,
          "legendFormat": "P50",
          "range": true,
          "refId": "D",
          "useBackend": false
417
418
        }
      ],
mac0ne's avatar
mac0ne committed
419
      "title": "Time-To-First-Token Latency",
420
421
422
423
424
      "type": "timeseries"
    },
    {
      "datasource": {
        "default": true,
425
        "type": "prometheus"
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
      },
      "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,
mac0ne's avatar
mac0ne committed
449
      "maxDataPoints": 30,
450
      "options": {
mac0ne's avatar
mac0ne committed
451
452
453
454
455
456
457
458
459
460
461
462
463
        "calculate": false,
        "calculation": {
          "xBuckets": {
            "value": ""
          },
          "yBuckets": {
            "mode": "size",
            "scale": {
              "type": "linear"
            },
            "value": ""
          }
        },
464
465
466
467
468
469
470
471
472
473
474
475
476
477
        "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": {
mac0ne's avatar
mac0ne committed
478
          "le": 1e-9
479
480
481
482
483
484
485
486
487
488
489
        },
        "legend": {
          "show": true
        },
        "rowsFrame": {
          "layout": "auto"
        },
        "tooltip": {
          "mode": "single",
          "showColorScale": true,
          "yHistogram": false
Yudi Xue's avatar
Yudi Xue committed
490
        },
491
492
        "yAxis": {
          "axisPlacement": "left",
mac0ne's avatar
mac0ne committed
493
          "reverse": false
494
495
        }
      },
mac0ne's avatar
mac0ne committed
496
      "pluginVersion": "11.6.0",
497
      "targets": [
Yudi Xue's avatar
Yudi Xue committed
498
499
500
501
502
503
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
mac0ne's avatar
mac0ne committed
504
505
506
507
          "editorMode": "builder",
          "exemplar": false,
          "expr": "sum by(le) (increase(sglang:time_to_first_token_seconds_bucket{model_name=~\"$model_name\"}[$__rate_interval]))",
          "format": "heatmap",
Yudi Xue's avatar
Yudi Xue committed
508
509
510
          "fullMetaSearch": false,
          "includeNullMetadata": true,
          "instant": false,
mac0ne's avatar
mac0ne committed
511
          "interval": "",
512
          "legendFormat": "{{le}}",
Yudi Xue's avatar
Yudi Xue committed
513
          "range": true,
514
          "refId": "A",
Yudi Xue's avatar
Yudi Xue committed
515
516
517
          "useBackend": false
        }
      ],
518
519
      "title": "Time-To-First-Token Seconds Heatmap",
      "type": "heatmap"
Yudi Xue's avatar
Yudi Xue committed
520
521
522
523
    },
    {
      "datasource": {
        "default": true,
524
        "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
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
556
557
558
559
560
561
562
563
564
565
566
567
568
      },
      "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": [
              {
mac0ne's avatar
mac0ne committed
569
                "color": "green"
Yudi Xue's avatar
Yudi Xue committed
570
571
572
573
574
575
576
577
578
579
580
581
582
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
583
584
        "x": 0,
        "y": 16
Yudi Xue's avatar
Yudi Xue committed
585
      },
586
      "id": 7,
Yudi Xue's avatar
Yudi Xue committed
587
588
589
590
591
592
593
594
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
mac0ne's avatar
mac0ne committed
595
          "hideZeros": false,
Yudi Xue's avatar
Yudi Xue committed
596
597
598
599
          "mode": "single",
          "sort": "none"
        }
      },
mac0ne's avatar
mac0ne committed
600
      "pluginVersion": "11.6.0",
Yudi Xue's avatar
Yudi Xue committed
601
602
603
604
605
606
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
607
          "disableTextWrap": false,
Yudi Xue's avatar
Yudi Xue committed
608
          "editorMode": "code",
609
610
611
          "expr": "sglang:num_running_reqs",
          "fullMetaSearch": false,
          "includeNullMetadata": true,
Yudi Xue's avatar
Yudi Xue committed
612
          "instant": false,
613
614
          "interval": "",
          "legendFormat": "{{instance}}",
Yudi Xue's avatar
Yudi Xue committed
615
          "range": true,
616
617
          "refId": "A",
          "useBackend": false
Yudi Xue's avatar
Yudi Xue committed
618
619
        }
      ],
620
      "title": "Num Running Requests",
Yudi Xue's avatar
Yudi Xue committed
621
622
623
624
625
      "type": "timeseries"
    },
    {
      "datasource": {
        "default": true,
626
        "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
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
657
658
659
660
661
662
663
664
665
666
667
668
669
670
      },
      "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": [
              {
mac0ne's avatar
mac0ne committed
671
                "color": "green"
Yudi Xue's avatar
Yudi Xue committed
672
673
674
675
676
677
678
679
680
681
682
683
684
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
685
686
        "x": 12,
        "y": 16
Yudi Xue's avatar
Yudi Xue committed
687
      },
688
      "id": 18,
Yudi Xue's avatar
Yudi Xue committed
689
690
691
692
693
694
695
696
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
mac0ne's avatar
mac0ne committed
697
          "hideZeros": false,
Yudi Xue's avatar
Yudi Xue committed
698
699
700
701
          "mode": "single",
          "sort": "none"
        }
      },
mac0ne's avatar
mac0ne committed
702
      "pluginVersion": "11.6.0",
Yudi Xue's avatar
Yudi Xue committed
703
704
705
706
707
708
709
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "editorMode": "code",
710
          "expr": "sglang:gen_throughput",
Yudi Xue's avatar
Yudi Xue committed
711
          "instant": false,
712
          "legendFormat": "{{instance}}",
Yudi Xue's avatar
Yudi Xue committed
713
          "range": true,
714
          "refId": "A"
Yudi Xue's avatar
Yudi Xue committed
715
716
        }
      ],
717
      "title": "Token Generation Throughput (Tokens / S)",
Yudi Xue's avatar
Yudi Xue committed
718
719
720
721
722
      "type": "timeseries"
    },
    {
      "datasource": {
        "default": true,
723
        "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
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
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
      },
      "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": [
              {
mac0ne's avatar
mac0ne committed
768
                "color": "green"
Yudi Xue's avatar
Yudi Xue committed
769
770
771
772
773
774
775
776
777
778
779
780
781
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
782
783
        "x": 0,
        "y": 24
Yudi Xue's avatar
Yudi Xue committed
784
      },
785
      "id": 11,
Yudi Xue's avatar
Yudi Xue committed
786
787
788
789
790
791
792
793
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
mac0ne's avatar
mac0ne committed
794
          "hideZeros": false,
Yudi Xue's avatar
Yudi Xue committed
795
796
797
798
          "mode": "single",
          "sort": "none"
        }
      },
mac0ne's avatar
mac0ne committed
799
      "pluginVersion": "11.6.0",
Yudi Xue's avatar
Yudi Xue committed
800
801
802
803
804
805
806
807
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
808
          "expr": "sglang:cache_hit_rate",
Yudi Xue's avatar
Yudi Xue committed
809
810
811
          "fullMetaSearch": false,
          "includeNullMetadata": true,
          "instant": false,
812
          "legendFormat": "{{instance}}",
Yudi Xue's avatar
Yudi Xue committed
813
814
815
816
817
          "range": true,
          "refId": "A",
          "useBackend": false
        }
      ],
818
      "title": "Cache Hit Rate",
Yudi Xue's avatar
Yudi Xue committed
819
820
821
822
823
      "type": "timeseries"
    },
    {
      "datasource": {
        "default": true,
824
        "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
825
826
827
      },
      "fieldConfig": {
        "defaults": {
828
829
          "color": {
            "mode": "palette-classic"
Yudi Xue's avatar
Yudi Xue committed
830
831
          },
          "custom": {
832
833
834
835
836
837
838
839
840
841
            "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
842
843
844
845
846
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
847
848
849
850
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
Yudi Xue's avatar
Yudi Xue committed
851
852
            "scaleDistribution": {
              "type": "linear"
853
854
855
856
857
858
859
860
861
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
Yudi Xue's avatar
Yudi Xue committed
862
            }
863
864
865
866
867
868
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
mac0ne's avatar
mac0ne committed
869
                "color": "green"
870
871
872
873
874
875
              },
              {
                "color": "red",
                "value": 80
              }
            ]
Yudi Xue's avatar
Yudi Xue committed
876
877
878
879
880
881
882
883
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
884
        "y": 24
Yudi Xue's avatar
Yudi Xue committed
885
      },
886
      "id": 8,
Yudi Xue's avatar
Yudi Xue committed
887
888
      "options": {
        "legend": {
889
890
891
892
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
Yudi Xue's avatar
Yudi Xue committed
893
894
        },
        "tooltip": {
mac0ne's avatar
mac0ne committed
895
          "hideZeros": false,
Yudi Xue's avatar
Yudi Xue committed
896
          "mode": "single",
897
          "sort": "none"
Yudi Xue's avatar
Yudi Xue committed
898
899
        }
      },
mac0ne's avatar
mac0ne committed
900
      "pluginVersion": "11.6.0",
Yudi Xue's avatar
Yudi Xue committed
901
902
903
904
905
906
907
908
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "ddyfngn31dg5cf"
          },
          "disableTextWrap": false,
          "editorMode": "code",
909
          "expr": "sglang:num_queue_reqs",
Yudi Xue's avatar
Yudi Xue committed
910
911
912
          "fullMetaSearch": false,
          "includeNullMetadata": true,
          "instant": false,
913
          "legendFormat": "{{instance}}",
Yudi Xue's avatar
Yudi Xue committed
914
915
916
917
918
          "range": true,
          "refId": "A",
          "useBackend": false
        }
      ],
919
920
      "title": "Number Queued Requests",
      "type": "timeseries"
Yudi Xue's avatar
Yudi Xue committed
921
922
    }
  ],
mac0ne's avatar
mac0ne committed
923
  "preload": false,
Yudi Xue's avatar
Yudi Xue committed
924
  "refresh": "5s",
mac0ne's avatar
mac0ne committed
925
  "schemaVersion": 41,
Yudi Xue's avatar
Yudi Xue committed
926
927
928
929
930
931
932
933
934
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "text": "127.0.0.1:30000",
          "value": "127.0.0.1:30000"
        },
        "datasource": {
935
          "type": "prometheus"
Yudi Xue's avatar
Yudi Xue committed
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
        },
        "definition": "label_values(instance)",
        "includeAll": false,
        "label": "instance",
        "name": "instance",
        "options": [],
        "query": {
          "qryType": 1,
          "query": "label_values(instance)",
          "refId": "PrometheusVariableQueryEditor-VariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "type": "query"
      },
      {
        "current": {
953
954
          "text": "meta-llama/Llama-3.1-8B-Instruct",
          "value": "meta-llama/Llama-3.1-8B-Instruct"
Yudi Xue's avatar
Yudi Xue committed
955
        },
956
        "datasource": {
957
          "type": "prometheus"
958
959
        },
        "definition": "label_values(model_name)",
Yudi Xue's avatar
Yudi Xue committed
960
        "includeAll": false,
961
962
        "label": "model name",
        "name": "model_name",
Yudi Xue's avatar
Yudi Xue committed
963
964
965
        "options": [],
        "query": {
          "qryType": 1,
966
          "query": "label_values(model_name)",
Yudi Xue's avatar
Yudi Xue committed
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
          "refId": "PrometheusVariableQueryEditor-VariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-30m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "browser",
  "title": "SGLang Dashboard",
982
  "uid": "sglang-dashboard",
mac0ne's avatar
mac0ne committed
983
  "version": 11
Yudi Xue's avatar
Yudi Xue committed
984
}