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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"title": "Grafatui Test Dashboard - All Visualizations",
"templating": {
"list": [
{
"name": "instance",
"current": {
"text": "localhost:9090",
"value": "localhost:9090"
}
}
]
},
"panels": [
{
"type": "graph",
"title": "1. Graph - CPU Usage",
"gridPos": {
"x": 0,
"y": 0,
"w": 8,
"h": 8
},
"targets": [
{
"expr": "rate(process_cpu_seconds_total{instance=\"$instance\"}[1m])",
"legendFormat": "CPU {{job}}"
}
]
},
{
"type": "gauge",
"title": "2. Gauge - Memory %",
"gridPos": {
"x": 8,
"y": 0,
"w": 8,
"h": 8
},
"targets": [
{
"expr": "process_resident_memory_bytes{instance=\"$instance\"} / 1024 / 1024",
"legendFormat": "Memory MB"
}
]
},
{
"type": "stat",
"title": "3. Stat - Uptime",
"gridPos": {
"x": 16,
"y": 0,
"w": 8,
"h": 8
},
"targets": [
{
"expr": "time() - process_start_time_seconds{instance=\"$instance\"}",
"legendFormat": "Uptime (s)"
}
]
},
{
"type": "bargauge",
"title": "4. Bar Gauge - Request Rate",
"gridPos": {
"x": 0,
"y": 8,
"w": 8,
"h": 8
},
"targets": [
{
"expr": "rate(prometheus_http_requests_total{instance=\"$instance\"}[1m])",
"legendFormat": "{{handler}}"
}
]
},
{
"type": "table",
"title": "5. Table - Series List",
"gridPos": {
"x": 8,
"y": 8,
"w": 8,
"h": 8
},
"targets": [
{
"expr": "up{instance=\"$instance\"}",
"legendFormat": "{{job}}"
}
]
},
{
"type": "heatmap",
"title": "6. Heatmap - Request Duration",
"gridPos": {
"x": 16,
"y": 8,
"w": 8,
"h": 8
},
"targets": [
{
"expr": "rate(prometheus_http_request_duration_seconds_sum{instance=\"$instance\"}[1m])",
"legendFormat": "{{handler}}"
}
]
}
]
}