div18 commited on
Commit
6dee91d
·
1 Parent(s): 6ad7bd8

add dashboards back

Browse files
deploy/grafana/provisioning/dashboards/json/antiatropos-live.json ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "annotations": {
3
+ "list": [
4
+ {
5
+ "builtIn": 1,
6
+ "datasource": {
7
+ "type": "grafana",
8
+ "uid": "-- Grafana --"
9
+ },
10
+ "enable": true,
11
+ "hide": true,
12
+ "iconColor": "rgba(0, 211, 255, 1)",
13
+ "name": "Annotations & Alerts",
14
+ "type": "dashboard"
15
+ }
16
+ ]
17
+ },
18
+ "editable": true,
19
+ "fiscalYearStartMonth": 0,
20
+ "graphTooltip": 0,
21
+ "id": null,
22
+ "links": [],
23
+ "liveNow": false,
24
+ "panels": [
25
+ {
26
+ "datasource": {
27
+ "type": "prometheus",
28
+ "uid": "PBFA97CFB590B2093"
29
+ },
30
+ "fieldConfig": {
31
+ "defaults": {
32
+ "color": {
33
+ "mode": "palette-classic"
34
+ }
35
+ },
36
+ "overrides": []
37
+ },
38
+ "gridPos": {
39
+ "h": 7,
40
+ "w": 12,
41
+ "x": 0,
42
+ "y": 0
43
+ },
44
+ "id": 1,
45
+ "options": {
46
+ "legend": {
47
+ "calcs": [],
48
+ "displayMode": "list",
49
+ "placement": "bottom"
50
+ },
51
+ "tooltip": {
52
+ "mode": "single"
53
+ }
54
+ },
55
+ "targets": [
56
+ {
57
+ "expr": "sum by (action_type, ack_class) (rate(antiatropos_actions_total{task_id=~\"$task\",mode=~\"$mode\"}[1m]))",
58
+ "legendFormat": "{{action_type}} {{ack_class}}",
59
+ "refId": "A"
60
+ }
61
+ ],
62
+ "title": "Actions Per Second",
63
+ "type": "timeseries"
64
+ },
65
+ {
66
+ "datasource": {
67
+ "type": "prometheus",
68
+ "uid": "PBFA97CFB590B2093"
69
+ },
70
+ "fieldConfig": {
71
+ "defaults": {
72
+ "color": {
73
+ "mode": "palette-classic"
74
+ },
75
+ "min": 0,
76
+ "max": 1
77
+ },
78
+ "overrides": []
79
+ },
80
+ "gridPos": {
81
+ "h": 7,
82
+ "w": 12,
83
+ "x": 12,
84
+ "y": 0
85
+ },
86
+ "id": 2,
87
+ "options": {
88
+ "legend": {
89
+ "calcs": [],
90
+ "displayMode": "table",
91
+ "placement": "bottom"
92
+ },
93
+ "tooltip": {
94
+ "mode": "single"
95
+ }
96
+ },
97
+ "targets": [
98
+ {
99
+ "expr": "antiatropos_reward_normalized{task_id=~\"$task\",mode=~\"$mode\"}",
100
+ "legendFormat": "{{task_id}}/{{mode}} normalized",
101
+ "refId": "A"
102
+ }
103
+ ],
104
+ "title": "Normalized Reward [0,1]",
105
+ "type": "timeseries"
106
+ },
107
+ {
108
+ "datasource": {
109
+ "type": "prometheus",
110
+ "uid": "PBFA97CFB590B2093"
111
+ },
112
+ "fieldConfig": {
113
+ "defaults": {
114
+ "color": {
115
+ "mode": "palette-classic"
116
+ }
117
+ },
118
+ "overrides": []
119
+ },
120
+ "gridPos": {
121
+ "h": 7,
122
+ "w": 12,
123
+ "x": 0,
124
+ "y": 7
125
+ },
126
+ "id": 3,
127
+ "options": {
128
+ "legend": {
129
+ "calcs": [],
130
+ "displayMode": "table",
131
+ "placement": "bottom"
132
+ },
133
+ "tooltip": {
134
+ "mode": "single"
135
+ }
136
+ },
137
+ "targets": [
138
+ {
139
+ "expr": "antiatropos_reward_raw{task_id=~\"$task\",mode=~\"$mode\"}",
140
+ "legendFormat": "{{task_id}}/{{mode}} raw",
141
+ "refId": "A"
142
+ }
143
+ ],
144
+ "title": "Raw Reward",
145
+ "type": "timeseries"
146
+ },
147
+ {
148
+ "datasource": {
149
+ "type": "prometheus",
150
+ "uid": "PBFA97CFB590B2093"
151
+ },
152
+ "fieldConfig": {
153
+ "defaults": {
154
+ "color": {
155
+ "mode": "palette-classic"
156
+ }
157
+ },
158
+ "overrides": []
159
+ },
160
+ "gridPos": {
161
+ "h": 7,
162
+ "w": 12,
163
+ "x": 12,
164
+ "y": 7
165
+ },
166
+ "id": 4,
167
+ "options": {
168
+ "legend": {
169
+ "calcs": [],
170
+ "displayMode": "table",
171
+ "placement": "bottom"
172
+ },
173
+ "tooltip": {
174
+ "mode": "single"
175
+ }
176
+ },
177
+ "targets": [
178
+ {
179
+ "expr": "antiatropos_total_queue_backlog{task_id=~\"$task\",mode=~\"$mode\"}",
180
+ "legendFormat": "{{task_id}}/{{mode}} queue",
181
+ "refId": "A"
182
+ },
183
+ {
184
+ "expr": "antiatropos_average_latency_norm{task_id=~\"$task\",mode=~\"$mode\"}",
185
+ "legendFormat": "{{task_id}}/{{mode}} latency",
186
+ "refId": "B"
187
+ }
188
+ ],
189
+ "title": "Queue Backlog and Latency (Norm)",
190
+ "type": "timeseries"
191
+ },
192
+ {
193
+ "datasource": {
194
+ "type": "prometheus",
195
+ "uid": "PBFA97CFB590B2093"
196
+ },
197
+ "fieldConfig": {
198
+ "defaults": {
199
+ "color": {
200
+ "mode": "palette-classic"
201
+ }
202
+ },
203
+ "overrides": []
204
+ },
205
+ "gridPos": {
206
+ "h": 7,
207
+ "w": 12,
208
+ "x": 0,
209
+ "y": 14
210
+ },
211
+ "id": 5,
212
+ "options": {
213
+ "legend": {
214
+ "calcs": [],
215
+ "displayMode": "table",
216
+ "placement": "bottom"
217
+ },
218
+ "tooltip": {
219
+ "mode": "single"
220
+ }
221
+ },
222
+ "targets": [
223
+ {
224
+ "expr": "antiatropos_lyapunov_energy{task_id=~\"$task\",mode=~\"$mode\"}",
225
+ "legendFormat": "{{task_id}}/{{mode}}",
226
+ "refId": "A"
227
+ }
228
+ ],
229
+ "title": "Lyapunov Energy",
230
+ "type": "timeseries"
231
+ },
232
+ {
233
+ "datasource": {
234
+ "type": "prometheus",
235
+ "uid": "PBFA97CFB590B2093"
236
+ },
237
+ "fieldConfig": {
238
+ "defaults": {
239
+ "color": {
240
+ "mode": "palette-classic"
241
+ }
242
+ },
243
+ "overrides": []
244
+ },
245
+ "gridPos": {
246
+ "h": 7,
247
+ "w": 12,
248
+ "x": 12,
249
+ "y": 14
250
+ },
251
+ "id": 6,
252
+ "options": {
253
+ "legend": {
254
+ "calcs": [],
255
+ "displayMode": "table",
256
+ "placement": "bottom"
257
+ },
258
+ "tooltip": {
259
+ "mode": "single"
260
+ }
261
+ },
262
+ "targets": [
263
+ {
264
+ "expr": "histogram_quantile(0.95, sum(rate(antiatropos_executor_latency_ms_bucket{mode=~\"$mode\"}[2m])) by (le, mode))",
265
+ "legendFormat": "p95 {{mode}}",
266
+ "refId": "A"
267
+ },
268
+ {
269
+ "expr": "sum by (mode, error_code) (rate(antiatropos_executor_errors_total{mode=~\"$mode\"}[5m]))",
270
+ "legendFormat": "{{mode}} {{error_code}}",
271
+ "refId": "B"
272
+ }
273
+ ],
274
+ "title": "Executor Latency p95 and Errors/s",
275
+ "type": "timeseries"
276
+ }
277
+ ],
278
+ "refresh": "5s",
279
+ "schemaVersion": 39,
280
+ "style": "dark",
281
+ "tags": [
282
+ "antiatropos",
283
+ "sre",
284
+ "rl"
285
+ ],
286
+ "templating": {
287
+ "list": [
288
+ {
289
+ "datasource": {
290
+ "type": "prometheus",
291
+ "uid": "PBFA97CFB590B2093"
292
+ },
293
+ "definition": "label_values(antiatropos_steps_total, task_id)",
294
+ "includeAll": true,
295
+ "multi": true,
296
+ "name": "task",
297
+ "query": {
298
+ "qryType": 1,
299
+ "query": "label_values(antiatropos_steps_total, task_id)",
300
+ "refId": "TaskVar"
301
+ },
302
+ "refresh": 2,
303
+ "type": "query"
304
+ },
305
+ {
306
+ "datasource": {
307
+ "type": "prometheus",
308
+ "uid": "PBFA97CFB590B2093"
309
+ },
310
+ "definition": "label_values(antiatropos_steps_total, mode)",
311
+ "includeAll": true,
312
+ "multi": true,
313
+ "name": "mode",
314
+ "query": {
315
+ "qryType": 1,
316
+ "query": "label_values(antiatropos_steps_total, mode)",
317
+ "refId": "ModeVar"
318
+ },
319
+ "refresh": 2,
320
+ "type": "query"
321
+ }
322
+ ]
323
+ },
324
+ "time": {
325
+ "from": "now-15m",
326
+ "to": "now"
327
+ },
328
+ "timepicker": {},
329
+ "timezone": "",
330
+ "title": "AntiAtropos Live Control Plane",
331
+ "uid": "antiatropos-live",
332
+ "version": 2,
333
+ "weekStart": ""
334
+ }
deploy/grafana/provisioning/dashboards/json/kubernetes-overview.json ADDED
@@ -0,0 +1,276 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "annotations": {
3
+ "list": [
4
+ {
5
+ "builtIn": 1,
6
+ "datasource": {
7
+ "type": "grafana",
8
+ "uid": "-- Grafana --"
9
+ },
10
+ "enable": true,
11
+ "hide": true,
12
+ "iconColor": "rgba(0, 211, 255, 1)",
13
+ "name": "Annotations & Alerts",
14
+ "type": "dashboard"
15
+ }
16
+ ]
17
+ },
18
+ "editable": true,
19
+ "fiscalYearStartMonth": 0,
20
+ "graphTooltip": 0,
21
+ "id": null,
22
+ "links": [],
23
+ "liveNow": false,
24
+ "panels": [
25
+ {
26
+ "datasource": {
27
+ "type": "prometheus",
28
+ "uid": "PBFA97CFB590B2093"
29
+ },
30
+ "fieldConfig": {
31
+ "defaults": {
32
+ "unit": "short"
33
+ },
34
+ "overrides": []
35
+ },
36
+ "gridPos": {
37
+ "h": 6,
38
+ "w": 6,
39
+ "x": 0,
40
+ "y": 0
41
+ },
42
+ "id": 1,
43
+ "options": {
44
+ "colorMode": "value",
45
+ "graphMode": "area",
46
+ "justifyMode": "auto",
47
+ "orientation": "auto",
48
+ "reduceOptions": {
49
+ "calcs": ["lastNotNull"],
50
+ "fields": "",
51
+ "values": false
52
+ },
53
+ "textMode": "auto"
54
+ },
55
+ "targets": [
56
+ {
57
+ "expr": "sum(kube_deployment_spec_replicas{namespace=\"sre-sandbox\"})",
58
+ "refId": "A"
59
+ }
60
+ ],
61
+ "title": "Desired Replicas",
62
+ "type": "stat"
63
+ },
64
+ {
65
+ "datasource": {
66
+ "type": "prometheus",
67
+ "uid": "PBFA97CFB590B2093"
68
+ },
69
+ "fieldConfig": {
70
+ "defaults": {
71
+ "unit": "short"
72
+ },
73
+ "overrides": []
74
+ },
75
+ "gridPos": {
76
+ "h": 6,
77
+ "w": 6,
78
+ "x": 6,
79
+ "y": 0
80
+ },
81
+ "id": 2,
82
+ "options": {
83
+ "colorMode": "value",
84
+ "graphMode": "area",
85
+ "justifyMode": "auto",
86
+ "orientation": "auto",
87
+ "reduceOptions": {
88
+ "calcs": ["lastNotNull"],
89
+ "fields": "",
90
+ "values": false
91
+ },
92
+ "textMode": "auto"
93
+ },
94
+ "targets": [
95
+ {
96
+ "expr": "sum(kube_deployment_status_replicas_available{namespace=\"sre-sandbox\"})",
97
+ "refId": "A"
98
+ }
99
+ ],
100
+ "title": "Available Replicas",
101
+ "type": "stat"
102
+ },
103
+ {
104
+ "datasource": {
105
+ "type": "prometheus",
106
+ "uid": "PBFA97CFB590B2093"
107
+ },
108
+ "fieldConfig": {
109
+ "defaults": {
110
+ "unit": "short"
111
+ },
112
+ "overrides": []
113
+ },
114
+ "gridPos": {
115
+ "h": 6,
116
+ "w": 6,
117
+ "x": 12,
118
+ "y": 0
119
+ },
120
+ "id": 3,
121
+ "options": {
122
+ "colorMode": "value",
123
+ "graphMode": "area",
124
+ "justifyMode": "auto",
125
+ "orientation": "auto",
126
+ "reduceOptions": {
127
+ "calcs": ["lastNotNull"],
128
+ "fields": "",
129
+ "values": false
130
+ },
131
+ "textMode": "auto"
132
+ },
133
+ "targets": [
134
+ {
135
+ "expr": "count(kube_pod_status_phase{namespace=\"sre-sandbox\",phase=\"Running\"} == 1)",
136
+ "refId": "A"
137
+ }
138
+ ],
139
+ "title": "Running Pods",
140
+ "type": "stat"
141
+ },
142
+ {
143
+ "datasource": {
144
+ "type": "prometheus",
145
+ "uid": "PBFA97CFB590B2093"
146
+ },
147
+ "fieldConfig": {
148
+ "defaults": {
149
+ "unit": "short"
150
+ },
151
+ "overrides": []
152
+ },
153
+ "gridPos": {
154
+ "h": 6,
155
+ "w": 6,
156
+ "x": 18,
157
+ "y": 0
158
+ },
159
+ "id": 4,
160
+ "options": {
161
+ "colorMode": "value",
162
+ "graphMode": "area",
163
+ "justifyMode": "auto",
164
+ "orientation": "auto",
165
+ "reduceOptions": {
166
+ "calcs": ["lastNotNull"],
167
+ "fields": "",
168
+ "values": false
169
+ },
170
+ "textMode": "auto"
171
+ },
172
+ "targets": [
173
+ {
174
+ "expr": "sum(increase(kube_pod_container_status_restarts_total{namespace=\"sre-sandbox\"}[10m]))",
175
+ "refId": "A"
176
+ }
177
+ ],
178
+ "title": "Pod Restarts (10m)",
179
+ "type": "stat"
180
+ },
181
+ {
182
+ "datasource": {
183
+ "type": "prometheus",
184
+ "uid": "PBFA97CFB590B2093"
185
+ },
186
+ "fieldConfig": {
187
+ "defaults": {},
188
+ "overrides": []
189
+ },
190
+ "gridPos": {
191
+ "h": 9,
192
+ "w": 12,
193
+ "x": 0,
194
+ "y": 6
195
+ },
196
+ "id": 5,
197
+ "options": {
198
+ "legend": {
199
+ "calcs": [],
200
+ "displayMode": "table",
201
+ "placement": "bottom"
202
+ },
203
+ "tooltip": {
204
+ "mode": "single"
205
+ }
206
+ },
207
+ "targets": [
208
+ {
209
+ "expr": "kube_deployment_spec_replicas{namespace=\"sre-sandbox\"}",
210
+ "legendFormat": "{{deployment}} desired",
211
+ "refId": "A"
212
+ },
213
+ {
214
+ "expr": "kube_deployment_status_replicas_available{namespace=\"sre-sandbox\"}",
215
+ "legendFormat": "{{deployment}} available",
216
+ "refId": "B"
217
+ }
218
+ ],
219
+ "title": "Deployment Desired vs Available",
220
+ "type": "timeseries"
221
+ },
222
+ {
223
+ "datasource": {
224
+ "type": "prometheus",
225
+ "uid": "PBFA97CFB590B2093"
226
+ },
227
+ "fieldConfig": {
228
+ "defaults": {},
229
+ "overrides": []
230
+ },
231
+ "gridPos": {
232
+ "h": 9,
233
+ "w": 12,
234
+ "x": 12,
235
+ "y": 6
236
+ },
237
+ "id": 6,
238
+ "options": {
239
+ "legend": {
240
+ "calcs": [],
241
+ "displayMode": "table",
242
+ "placement": "bottom"
243
+ },
244
+ "tooltip": {
245
+ "mode": "single"
246
+ }
247
+ },
248
+ "targets": [
249
+ {
250
+ "expr": "sum by (phase) (kube_pod_status_phase{namespace=\"sre-sandbox\"} == 1)",
251
+ "legendFormat": "{{phase}}",
252
+ "refId": "A"
253
+ }
254
+ ],
255
+ "title": "Pod Phases",
256
+ "type": "timeseries"
257
+ }
258
+ ],
259
+ "refresh": "5s",
260
+ "schemaVersion": 39,
261
+ "style": "dark",
262
+ "tags": ["kubernetes", "sre", "antiatropos"],
263
+ "templating": {
264
+ "list": []
265
+ },
266
+ "time": {
267
+ "from": "now-30m",
268
+ "to": "now"
269
+ },
270
+ "timepicker": {},
271
+ "timezone": "",
272
+ "title": "Kubernetes Overview (sre-sandbox)",
273
+ "uid": "antiatropos-k8s-overview",
274
+ "version": 1,
275
+ "weekStart": ""
276
+ }