Skip to content

Commit 8a6e387

Browse files
authored
Merge pull request #26 from stackhpc/fix/grafana-dashboard-improvements
Add total requests panel to Grafana dashboard
2 parents 294ac78 + 8027018 commit 8a6e387

File tree

1 file changed

+113
-40
lines changed

1 file changed

+113
-40
lines changed

chart/templates/api/config-map-grafana-dashboard.yml

Lines changed: 113 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ data:
4545
"axisBorderShow": false,
4646
"axisCenteredZero": false,
4747
"axisColorMode": "text",
48-
"axisLabel": "Request Rate",
48+
"axisLabel": "Requests per minute",
4949
"axisPlacement": "auto",
50-
"axisWidth": 3,
50+
"axisWidth": 50,
5151
"barAlignment": 0,
5252
"drawStyle": "line",
5353
"fillOpacity": 0,
@@ -87,8 +87,7 @@ data:
8787
"value": 80
8888
}
8989
]
90-
},
91-
"unitScale": true
90+
}
9291
},
9392
"overrides": []
9493
},
@@ -125,7 +124,7 @@ data:
125124
"refId": "A"
126125
}
127126
],
128-
"title": "API Requests",
127+
"title": "API Requests per Minute",
129128
"type": "timeseries"
130129
},
131130
{
@@ -142,8 +141,9 @@ data:
142141
"axisBorderShow": false,
143142
"axisCenteredZero": false,
144143
"axisColorMode": "text",
145-
"axisLabel": "Tokens / second",
144+
"axisLabel": "Number of requests per minute",
146145
"axisPlacement": "auto",
146+
"axisWidth": 50,
147147
"barAlignment": 0,
148148
"drawStyle": "line",
149149
"fillOpacity": 0,
@@ -183,16 +183,110 @@ data:
183183
"value": 80
184184
}
185185
]
186+
}
187+
},
188+
"overrides": []
189+
},
190+
"gridPos": {
191+
"h": 12,
192+
"w": 24,
193+
"x": 0,
194+
"y": 12
195+
},
196+
"id": 8,
197+
"options": {
198+
"legend": {
199+
"calcs": [],
200+
"displayMode": "list",
201+
"placement": "bottom",
202+
"showLegend": true
203+
},
204+
"tooltip": {
205+
"mode": "single",
206+
"sort": "none"
207+
}
208+
},
209+
"targets": [
210+
{
211+
"datasource": {
212+
"type": "prometheus",
213+
"uid": "prometheus"
186214
},
187-
"unitScale": true
215+
"editorMode": "code",
216+
"expr": "sum by (container, namespace, method, path) (vllm:request_success_total)",
217+
"instant": false,
218+
"legendFormat": "__auto",
219+
"range": true,
220+
"refId": "A"
221+
}
222+
],
223+
"title": "Total API Requests",
224+
"type": "timeseries"
225+
},
226+
{
227+
"datasource": {
228+
"type": "prometheus",
229+
"uid": "prometheus"
230+
},
231+
"fieldConfig": {
232+
"defaults": {
233+
"color": {
234+
"mode": "palette-classic"
235+
},
236+
"custom": {
237+
"axisBorderShow": false,
238+
"axisCenteredZero": false,
239+
"axisColorMode": "text",
240+
"axisLabel": "Tokens / second",
241+
"axisPlacement": "auto",
242+
"barAlignment": 0,
243+
"drawStyle": "line",
244+
"fillOpacity": 0,
245+
"gradientMode": "none",
246+
"hideFrom": {
247+
"legend": false,
248+
"tooltip": false,
249+
"viz": false
250+
},
251+
"insertNulls": false,
252+
"lineInterpolation": "linear",
253+
"lineWidth": 1,
254+
"pointSize": 5,
255+
"scaleDistribution": {
256+
"type": "linear"
257+
},
258+
"showPoints": "auto",
259+
"spanNulls": false,
260+
"stacking": {
261+
"group": "A",
262+
"mode": "none"
263+
},
264+
"thresholdsStyle": {
265+
"mode": "off"
266+
}
267+
},
268+
"mappings": [],
269+
"thresholds": {
270+
"mode": "absolute",
271+
"steps": [
272+
{
273+
"color": "green",
274+
"value": null
275+
},
276+
{
277+
"color": "red",
278+
"value": 80
279+
}
280+
]
281+
}
188282
},
189283
"overrides": []
190284
},
191285
"gridPos": {
192286
"h": 8,
193287
"w": 12,
194288
"x": 0,
195-
"y": 12
289+
"y": 24
196290
},
197291
"id": 2,
198292
"options": {
@@ -279,16 +373,15 @@ data:
279373
"value": 80
280374
}
281375
]
282-
},
283-
"unitScale": true
376+
}
284377
},
285378
"overrides": []
286379
},
287380
"gridPos": {
288381
"h": 8,
289382
"w": 12,
290383
"x": 12,
291-
"y": 12
384+
"y": 24
292385
},
293386
"id": 4,
294387
"options": {
@@ -375,16 +468,15 @@ data:
375468
"value": 80
376469
}
377470
]
378-
},
379-
"unitScale": true
471+
}
380472
},
381473
"overrides": []
382474
},
383475
"gridPos": {
384476
"h": 8,
385477
"w": 12,
386478
"x": 0,
387-
"y": 20
479+
"y": 32
388480
},
389481
"id": 3,
390482
"options": {
@@ -471,16 +563,15 @@ data:
471563
"value": 80
472564
}
473565
]
474-
},
475-
"unitScale": true
566+
}
476567
},
477568
"overrides": []
478569
},
479570
"gridPos": {
480571
"h": 8,
481572
"w": 12,
482573
"x": 12,
483-
"y": 20
574+
"y": 32
484575
},
485576
"id": 5,
486577
"options": {
@@ -567,16 +658,15 @@ data:
567658
"value": 80
568659
}
569660
]
570-
},
571-
"unitScale": true
661+
}
572662
},
573663
"overrides": []
574664
},
575665
"gridPos": {
576666
"h": 8,
577667
"w": 12,
578668
"x": 0,
579-
"y": 28
669+
"y": 40
580670
},
581671
"id": 1,
582672
"options": {
@@ -667,16 +757,15 @@ data:
667757
"value": 80
668758
}
669759
]
670-
},
671-
"unitScale": true
760+
}
672761
},
673762
"overrides": []
674763
},
675764
"gridPos": {
676765
"h": 8,
677766
"w": 12,
678767
"x": 12,
679-
"y": 28
768+
"y": 40
680769
},
681770
"id": 6,
682771
"options": {
@@ -708,22 +797,6 @@ data:
708797
"title": "GPU Power Draw",
709798
"type": "timeseries"
710799
}
711-
],
712-
"refresh": "",
713-
"schemaVersion": 39,
714-
"tags": [],
715-
"templating": {
716-
"list": []
717-
},
718-
"time": {
719-
"from": "now-30m",
720-
"to": "now"
721-
},
722-
"timepicker": {},
723-
"timezone": "",
724-
"title": "LLM Dashboard",
725-
"uid": "c4114a95-8172-4a8b-99c8-963ba7d31385",
726-
"version": 1,
727-
"weekStart": ""
800+
]
728801
}
729802
{{- end -}}

0 commit comments

Comments
 (0)