-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfastapi_dashboard.json
More file actions
72 lines (72 loc) · 1.79 KB
/
fastapi_dashboard.json
File metadata and controls
72 lines (72 loc) · 1.79 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"id": null,
"uid": "fastapi-monitoring-dashboard",
"title": "FastAPI Monitoring Dashboard",
"tags": ["FastAPI", "Monitoring"],
"timezone": "browser",
"schemaVersion": 36,
"version": 1,
"refresh": "10s",
"panels": [
{
"title": "Total Requests per Second",
"type": "graph",
"gridPos": { "x": 0, "y": 0, "w": 12, "h": 6 },
"targets": [
{
"expr": "rate(http_requests_total[5m])",
"legendFormat": "Requests/sec",
"datasource": "Prometheus"
}
]
},
{
"title": "95th Percentile Response Time",
"type": "graph",
"gridPos": { "x": 0, "y": 6, "w": 12, "h": 6 },
"targets": [
{
"expr": "histogram_quantile(0.95, rate(http_request_duration_seconds_bucket[5m]))",
"legendFormat": "95th Percentile",
"datasource": "Prometheus"
}
]
},
{
"title": "HTTP Status Codes",
"type": "piechart",
"gridPos": { "x": 12, "y": 0, "w": 12, "h": 6 },
"targets": [
{
"expr": "sum(rate(http_requests_total[5m])) by (status)",
"legendFormat": "{{status}}",
"datasource": "Prometheus"
}
]
},
{
"title": "Memory Usage",
"type": "graph",
"gridPos": { "x": 12, "y": 6, "w": 12, "h": 6 },
"targets": [
{
"expr": "process_resident_memory_bytes",
"legendFormat": "Memory Usage",
"datasource": "Prometheus"
}
]
},
{
"title": "CPU Usage",
"type": "graph",
"gridPos": { "x": 0, "y": 12, "w": 24, "h": 6 },
"targets": [
{
"expr": "rate(process_cpu_seconds_total[5m])",
"legendFormat": "CPU Usage",
"datasource": "Prometheus"
}
]
}
]
}