-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathotel_mvp.json
More file actions
51 lines (51 loc) · 1.36 KB
/
otel_mvp.json
File metadata and controls
51 lines (51 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"schemaVersion": 39,
"title": "OTel MVP – Logs • Traces • Metrics",
"panels": [
{
"type": "timeseries",
"title": "Requests /s",
"gridPos": {"x": 0, "y": 0, "w": 12, "h": 8},
"targets": [
{
"datasource": {"type": "prometheus", "uid": "prometheus"},
"expr": "sum(rate(app_requests_total[1m]))",
"legendFormat": "req/s"
}
]
},
{
"type": "timeseries",
"title": "Latency p95 (ms)",
"gridPos": {"x": 12, "y": 0, "w": 12, "h": 8},
"targets": [
{
"datasource": {"type": "prometheus", "uid": "prometheus"},
"expr": "histogram_quantile(0.95, sum(rate(app_request_duration_ms_bucket[5m])) by (le))",
"legendFormat": "p95"
}
]
},
{
"type": "stat",
"title": "Errors /min",
"gridPos": {"x": 0, "y": 8, "w": 6, "h": 6},
"targets": [
{
"datasource": {"type": "prometheus", "uid": "prometheus"},
"expr": "sum(rate(app_request_errors_total[1m])) * 60"
}
]
},
{
"type": "logs",
"title": "Logs (space-app)",
"gridPos": {"x": 6, "y": 8, "w": 18, "h": 12},
"datasource": {"type": "loki", "uid": "loki"},
"targets": [
{"expr": "{service_name=\"space-app\"}"}
]
}
],
"time": {"from": "now-2h", "to": "now"}
}