forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhealth-dashboard.json
More file actions
116 lines (116 loc) 路 3.44 KB
/
Copy pathhealth-dashboard.json
File metadata and controls
116 lines (116 loc) 路 3.44 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
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
113
114
115
116
{
"__inputs": [],
"__elements": {},
"__requires": [],
"title": "Infrastructure Health Dashboard",
"uid": "infra-health-dashboard",
"version": 1,
"schemaVersion": 39,
"tags": ["gistpin", "health"],
"timezone": "utc",
"panels": [
{
"title": "Overall Platform Health",
"type": "stat",
"gridPos": { "h": 6, "w": 4, "x": 0, "y": 0 },
"targets": [
{ "expr": "health:overall:score", "legendFormat": "Overall" }
],
"datasource": { "type": "prometheus", "uid": "prometheus" },
"fieldConfig": {
"defaults": {
"unit": "percent",
"thresholds": {
"steps": [
{ "value": 0, "color": "red" },
{ "value": 60, "color": "orange" },
{ "value": 80, "color": "green" }
]
},
"min": 0,
"max": 100
}
}
},
{
"title": "Availability Score",
"type": "gauge",
"gridPos": { "h": 6, "w": 4, "x": 4, "y": 0 },
"targets": [
{ "expr": "health:availability:score", "legendFormat": "Availability" }
],
"datasource": { "type": "prometheus", "uid": "prometheus" },
"fieldConfig": {
"defaults": {
"unit": "percent",
"min": 0,
"max": 100,
"thresholds": {
"steps": [
{ "value": 0, "color": "red" },
{ "value": 90, "color": "orange" },
{ "value": 99, "color": "green" }
]
}
}
}
},
{
"title": "Component Scores",
"type": "bargauge",
"gridPos": { "h": 6, "w": 8, "x": 8, "y": 0 },
"targets": [
{ "expr": "health:availability:score", "legendFormat": "Availability" },
{ "expr": "health:latency:score", "legendFormat": "Latency" },
{ "expr": "health:error_rate:score", "legendFormat": "Error Rate" },
{ "expr": "health:resource_usage:score", "legendFormat": "Resource Usage" }
],
"datasource": { "type": "prometheus", "uid": "prometheus" },
"fieldConfig": {
"defaults": { "unit": "percent", "min": 0, "max": 100 }
}
},
{
"title": "Health Score Trend",
"type": "timeseries",
"gridPos": { "h": 10, "w": 24, "x": 0, "y": 6 },
"targets": [
{ "expr": "health:overall:score", "legendFormat": "Overall" },
{ "expr": "health:availability:score", "legendFormat": "Availability" },
{ "expr": "health:latency:score", "legendFormat": "Latency" },
{ "expr": "health:error_rate:score", "legendFormat": "Error Rate" }
],
"datasource": { "type": "prometheus", "uid": "prometheus" },
"fieldConfig": {
"defaults": {
"unit": "percent",
"min": 0,
"max": 100,
"thresholds": {
"steps": [
{ "value": 0, "color": "red" },
{ "value": 60, "color": "orange" },
{ "value": 80, "color": "green" }
]
}
}
}
},
{
"title": "Historical Trend (7 days)",
"type": "timeseries",
"gridPos": { "h": 8, "w": 24, "x": 0, "y": 16 },
"targets": [
{ "expr": "avg_over_time(health:overall:score[1d])", "legendFormat": "Daily Avg" }
],
"datasource": { "type": "prometheus", "uid": "prometheus" },
"fieldConfig": {
"defaults": {
"unit": "percent",
"min": 0,
"max": 100
}
}
}
]
}