Skip to content

Commit 2de9d1c

Browse files
committed
docs(grafana): sample dashboards for API latency & backend hot-path (refs #7)
1 parent 1aa958e commit 2de9d1c

2 files changed

Lines changed: 128 additions & 0 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"__inputs": [],
3+
"__requires": [],
4+
"annotations": {
5+
"list": []
6+
},
7+
"editable": true,
8+
"gnetId": null,
9+
"graphTooltip": 0,
10+
"id": null,
11+
"iteration": 1650000000000,
12+
"links": [],
13+
"panels": [
14+
{
15+
"datasource": "Prometheus",
16+
"fieldConfig": {
17+
"defaults": {
18+
"unit": "s"
19+
},
20+
"overrides": []
21+
},
22+
"gridPos": {
23+
"h": 9,
24+
"w": 24,
25+
"x": 0,
26+
"y": 0
27+
},
28+
"id": 1,
29+
"options": {
30+
"showHeader": true
31+
},
32+
"title": "HTTP Request Duration p95 by Route",
33+
"type": "timeseries",
34+
"targets": [
35+
{
36+
"expr": "histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket[5m])) by (le, handler))",
37+
"legendFormat": "{{handler}}",
38+
"refId": "A"
39+
}
40+
]
41+
}
42+
],
43+
"refresh": "10s",
44+
"schemaVersion": 36,
45+
"style": "dark",
46+
"tags": ["killrvideo", "latency"],
47+
"templating": {
48+
"list": []
49+
},
50+
"time": {
51+
"from": "now-30m",
52+
"to": "now"
53+
},
54+
"timepicker": {},
55+
"timezone": "browser",
56+
"title": "KillrVideo – API Latency by Route",
57+
"uid": "kv-api-latency",
58+
"version": 1
59+
}

docs/grafana/backend_hot_path.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"schemaVersion": 36,
3+
"title": "KillrVideo – Backend Hot-Path Latency (p95)",
4+
"uid": "kv-hotpath",
5+
"timezone": "browser",
6+
"panels": [
7+
{
8+
"type": "timeseries",
9+
"title": "Astra DB Query p95",
10+
"id": 1,
11+
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 0},
12+
"datasource": "Prometheus",
13+
"fieldConfig": {"defaults": {"unit": "s"}},
14+
"targets": [
15+
{
16+
"expr": "histogram_quantile(0.95, sum(rate(astra_db_query_duration_seconds_bucket[5m])) by (le))",
17+
"refId": "A"
18+
}
19+
]
20+
},
21+
{
22+
"type": "timeseries",
23+
"title": "YouTube Fetch p95",
24+
"id": 2,
25+
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 8},
26+
"datasource": "Prometheus",
27+
"fieldConfig": {"defaults": {"unit": "s"}},
28+
"targets": [
29+
{
30+
"expr": "histogram_quantile(0.95, sum(rate(youtube_fetch_duration_seconds_bucket[5m])) by (le, method))",
31+
"legendFormat": "{{method}}",
32+
"refId": "A"
33+
}
34+
]
35+
},
36+
{
37+
"type": "timeseries",
38+
"title": "Vector Search p95",
39+
"id": 3,
40+
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 16},
41+
"datasource": "Prometheus",
42+
"fieldConfig": {"defaults": {"unit": "s"}},
43+
"targets": [
44+
{
45+
"expr": "histogram_quantile(0.95, sum(rate(vector_search_duration_seconds_bucket[5m])) by (le))",
46+
"refId": "A"
47+
}
48+
]
49+
},
50+
{
51+
"type": "timeseries",
52+
"title": "Recommendation Generation p95",
53+
"id": 4,
54+
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 24},
55+
"datasource": "Prometheus",
56+
"fieldConfig": {"defaults": {"unit": "s"}},
57+
"targets": [
58+
{
59+
"expr": "histogram_quantile(0.95, sum(rate(recommendation_generation_duration_seconds_bucket[5m])) by (le))",
60+
"refId": "A"
61+
}
62+
]
63+
}
64+
],
65+
"time": {"from": "now-30m", "to": "now"},
66+
"refresh": "10s",
67+
"tags": ["killrvideo", "performance"],
68+
"editable": true
69+
}

0 commit comments

Comments
 (0)