Created
May 12, 2025 11:29
-
-
Save initcron/ca57251c80bc2f4a2adde0a878ebc585 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "ML Model API - Full Observability Dashboard", | |
"timezone": "browser", | |
"refresh": "10s", | |
"schemaVersion": 30, | |
"version": 1, | |
"panels": [ | |
{ | |
"type": "timeseries", | |
"title": "Request Rate (Total per Endpoint)", | |
"targets": [ | |
{ | |
"expr": "sum(rate(http_requests_total[1m])) by (handler)", | |
"legendFormat": "{{handler}}", | |
"refId": "A" | |
} | |
], | |
"datasource": "Prometheus", | |
"gridPos": { | |
"x": 0, | |
"y": 0, | |
"w": 12, | |
"h": 8 | |
} | |
}, | |
{ | |
"type": "timeseries", | |
"title": "Latency (95th Percentile)", | |
"targets": [ | |
{ | |
"expr": "histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket[1m])) by (le, handler))", | |
"legendFormat": "{{handler}}", | |
"refId": "B" | |
} | |
], | |
"datasource": "Prometheus", | |
"gridPos": { | |
"x": 12, | |
"y": 0, | |
"w": 12, | |
"h": 8 | |
} | |
}, | |
{ | |
"type": "timeseries", | |
"title": "Error Rate (4xx/5xx Responses)", | |
"targets": [ | |
{ | |
"expr": "sum(rate(http_requests_total{status=~\"4..|5..\"}[1m])) by (handler)", | |
"legendFormat": "{{handler}}", | |
"refId": "C" | |
} | |
], | |
"datasource": "Prometheus", | |
"gridPos": { | |
"x": 0, | |
"y": 8, | |
"w": 12, | |
"h": 8 | |
} | |
}, | |
{ | |
"type": "timeseries", | |
"title": "Request Size (Bytes/sec)", | |
"targets": [ | |
{ | |
"expr": "sum(rate(http_request_size_bytes_sum[1m])) by (handler)", | |
"legendFormat": "{{handler}}", | |
"refId": "D" | |
} | |
], | |
"datasource": "Prometheus", | |
"gridPos": { | |
"x": 12, | |
"y": 8, | |
"w": 12, | |
"h": 8 | |
} | |
}, | |
{ | |
"type": "timeseries", | |
"title": "Response Size (Bytes/sec)", | |
"targets": [ | |
{ | |
"expr": "sum(rate(http_response_size_bytes_sum[1m])) by (handler)", | |
"legendFormat": "{{handler}}", | |
"refId": "E" | |
} | |
], | |
"datasource": "Prometheus", | |
"gridPos": { | |
"x": 0, | |
"y": 16, | |
"w": 12, | |
"h": 8 | |
} | |
}, | |
{ | |
"type": "timeseries", | |
"title": "In-Flight Requests", | |
"targets": [ | |
{ | |
"expr": "http_request_duration_seconds_count - ignoring(le) group_left sum(http_request_duration_seconds_bucket) by (handler)", | |
"legendFormat": "{{handler}}", | |
"refId": "F" | |
} | |
], | |
"datasource": "Prometheus", | |
"gridPos": { | |
"x": 12, | |
"y": 16, | |
"w": 12, | |
"h": 8 | |
} | |
} | |
], | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"type": "dashboard", | |
"name": "Annotations & Alerts", | |
"enable": true | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment