Skip to content

Commit 468a9d3

Browse files
authored
Fix latency chart on Vertex AI Endpoints dashboard (#1212)
The old chart was incorrect (title said "p50 Prediction Latency" but it was actually aggregating by p99). Now we have three charts -- p50 grouped by endpoint_id, p95 grouped by endpoint_id, p99 grouped by endpoint_id -- all in a dropdown group. See b/481102698.
1 parent 2cee9a4 commit 468a9d3

4 files changed

Lines changed: 95 additions & 2 deletions

File tree

-7.12 KB
Loading
-215 KB
Loading
87.9 KB
Loading

dashboards/google-vertex-ai/vertex-ai-endpoints.json

Lines changed: 95 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,14 +290,108 @@
290290
}
291291
},
292292
{
293-
"xPos": 24,
294293
"yPos": 4,
294+
"xPos": 24,
295+
"height": 16,
295296
"width": 24,
297+
"widget": {
298+
"singleViewGroup": {
299+
"displayType": "DROPDOWN"
300+
}
301+
}
302+
},
303+
{
304+
"yPos": 4,
305+
"xPos": 24,
296306
"height": 16,
307+
"width": 24,
297308
"widget": {
298309
"title": "p50 Prediction Latency by endpoint_id",
299310
"xyChart": {
300311
"chartOptions": {
312+
"displayHorizontal": false,
313+
"mode": "COLOR"
314+
},
315+
"dataSets": [
316+
{
317+
"minAlignmentPeriod": "60s",
318+
"plotType": "LINE",
319+
"targetAxis": "Y1",
320+
"timeSeriesQuery": {
321+
"timeSeriesFilter": {
322+
"aggregation": {
323+
"alignmentPeriod": "60s",
324+
"crossSeriesReducer": "REDUCE_PERCENTILE_50",
325+
"groupByFields": [
326+
"resource.label.\"endpoint_id\"",
327+
"resource.label.\"location\""
328+
],
329+
"perSeriesAligner": "ALIGN_DELTA"
330+
},
331+
"filter": "metric.type=\"aiplatform.googleapis.com/prediction/online/prediction_latencies\" resource.type=\"aiplatform.googleapis.com/Endpoint\" ${endpoint_id} ${location}"
332+
}
333+
}
334+
}
335+
],
336+
"thresholds": [],
337+
"timeshiftDuration": "0s",
338+
"yAxis": {
339+
"scale": "LINEAR"
340+
}
341+
}
342+
}
343+
},
344+
{
345+
"yPos": 4,
346+
"xPos": 24,
347+
"height": 16,
348+
"width": 24,
349+
"widget": {
350+
"title": "p95 Prediction Latency by endpoint_id",
351+
"xyChart": {
352+
"chartOptions": {
353+
"displayHorizontal": false,
354+
"mode": "COLOR"
355+
},
356+
"dataSets": [
357+
{
358+
"minAlignmentPeriod": "60s",
359+
"plotType": "LINE",
360+
"targetAxis": "Y1",
361+
"timeSeriesQuery": {
362+
"timeSeriesFilter": {
363+
"aggregation": {
364+
"alignmentPeriod": "60s",
365+
"crossSeriesReducer": "REDUCE_PERCENTILE_95",
366+
"groupByFields": [
367+
"resource.label.\"endpoint_id\"",
368+
"resource.label.\"location\""
369+
],
370+
"perSeriesAligner": "ALIGN_DELTA"
371+
},
372+
"filter": "metric.type=\"aiplatform.googleapis.com/prediction/online/prediction_latencies\" resource.type=\"aiplatform.googleapis.com/Endpoint\" ${endpoint_id} ${location}"
373+
}
374+
}
375+
}
376+
],
377+
"thresholds": [],
378+
"timeshiftDuration": "0s",
379+
"yAxis": {
380+
"scale": "LINEAR"
381+
}
382+
}
383+
}
384+
},
385+
{
386+
"yPos": 4,
387+
"xPos": 24,
388+
"height": 16,
389+
"width": 24,
390+
"widget": {
391+
"title": "p99 Prediction Latency by endpoint_id",
392+
"xyChart": {
393+
"chartOptions": {
394+
"displayHorizontal": false,
301395
"mode": "COLOR"
302396
},
303397
"dataSets": [
@@ -324,7 +418,6 @@
324418
"thresholds": [],
325419
"timeshiftDuration": "0s",
326420
"yAxis": {
327-
"label": "",
328421
"scale": "LINEAR"
329422
}
330423
}

0 commit comments

Comments
 (0)