Skip to content

Commit 2fe4cb9

Browse files
committed
docs(grafana): Astra DB operations dashboard (refs #7)
1 parent 2de9d1c commit 2fe4cb9

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

docs/grafana/astra_db_calls.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"schemaVersion": 36,
3+
"title": "KillrVideo – Astra DB Operations",
4+
"uid": "kv-astra-db",
5+
"timezone": "browser",
6+
"tags": ["killrvideo", "database"],
7+
"panels": [
8+
{
9+
"type": "timeseries",
10+
"title": "Astra DB Query p95 by Operation",
11+
"id": 1,
12+
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 0},
13+
"datasource": "Prometheus",
14+
"fieldConfig": {"defaults": {"unit": "s"}},
15+
"targets": [
16+
{
17+
"expr": "histogram_quantile(0.95, sum(rate(astra_db_query_duration_seconds_bucket[5m])) by (le, operation))",
18+
"legendFormat": "{{operation}}",
19+
"refId": "A"
20+
}
21+
]
22+
},
23+
{
24+
"type": "timeseries",
25+
"title": "Astra DB Query Rate (ops/s)",
26+
"id": 2,
27+
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 8},
28+
"datasource": "Prometheus",
29+
"fieldConfig": {"defaults": {"unit": "ops"}},
30+
"targets": [
31+
{
32+
"expr": "sum(rate(astra_db_query_duration_seconds_count[1m])) by (operation)",
33+
"legendFormat": "{{operation}}",
34+
"refId": "A"
35+
}
36+
]
37+
},
38+
{
39+
"type": "timeseries",
40+
"title": "Astra DB Query Average Duration",
41+
"id": 3,
42+
"gridPos": {"h": 8, "w": 24, "x": 0, "y": 16},
43+
"datasource": "Prometheus",
44+
"fieldConfig": {"defaults": {"unit": "s"}},
45+
"targets": [
46+
{
47+
"expr": "rate(astra_db_query_duration_seconds_sum[5m]) / rate(astra_db_query_duration_seconds_count[5m])",
48+
"legendFormat": "avg (all ops)",
49+
"refId": "A"
50+
}
51+
]
52+
}
53+
],
54+
"time": {"from": "now-30m", "to": "now"},
55+
"refresh": "10s",
56+
"editable": true
57+
}

0 commit comments

Comments
 (0)