-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathsimplex.json
More file actions
430 lines (430 loc) · 12.7 KB
/
simplex.json
File metadata and controls
430 lines (430 loc) · 12.7 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
{
"annotations": { "list": [] },
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"links": [],
"panels": [
{
"title": "Orders Detected",
"description": "Total number of new intent orders discovered on-chain by the event monitor.",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 0, "y": 0 },
"targets": [
{
"expr": "simplex_orders_detected_total",
"legendFormat": "detected",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "blue", "value": null }
]
}
},
"overrides": []
}
},
{
"title": "Orders Filled",
"description": "Total number of orders this filler successfully filled on the destination chain.",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 4, "y": 0 },
"targets": [
{
"expr": "simplex_orders_filled_total",
"legendFormat": "filled",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null }
]
}
},
"overrides": []
}
},
{
"title": "Orders Executed",
"description": "Total number of order execution attempts, including both successes and failures.",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 8, "y": 0 },
"targets": [
{
"expr": "sum(simplex_orders_executed_total)",
"legendFormat": "executed",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null }
]
}
},
"overrides": []
}
},
{
"title": "Orders Skipped",
"description": "Total number of orders skipped because no strategy found them profitable to fill.",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 12, "y": 0 },
"targets": [
{
"expr": "simplex_orders_skipped_total",
"legendFormat": "skipped",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "orange", "value": null }
]
}
},
"overrides": []
}
},
{
"title": "Bids Placed",
"description": "Total number of bids submitted to Hyperbridge's solver selection system.",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 16, "y": 0 },
"targets": [
{
"expr": "simplex_bids_submitted_total",
"legendFormat": "placed",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null }
]
}
},
"overrides": []
}
},
{
"title": "Pending Bids",
"description": "Number of bids awaiting retraction from Hyperbridge storage. All bids are retracted after the order is filled on-chain, regardless of which filler won.",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 20, "y": 0 },
"targets": [
{
"expr": "simplex_bids_pending",
"legendFormat": "pending",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "yellow", "value": null }
]
}
},
"overrides": []
}
},
{
"title": "Order Processing Duration (p50 / p99)",
"description": "End-to-end latency from order detection to execution result, broken down by phase: confirmation (waiting for source chain confirmations), evaluation (strategy profitability calculation), queue_wait (time in the per-chain sequential queue), and execution (the actual fill transaction).",
"type": "timeseries",
"gridPos": { "h": 8, "w": 24, "x": 0, "y": 4 },
"targets": [
{
"expr": "histogram_quantile(0.50, sum by (le) (rate(simplex_order_processing_duration_seconds_bucket[5m])))",
"legendFormat": "total p50",
"refId": "A"
},
{
"expr": "histogram_quantile(0.99, sum by (le) (rate(simplex_order_processing_duration_seconds_bucket[5m])))",
"legendFormat": "total p99",
"refId": "B"
},
{
"expr": "histogram_quantile(0.50, sum by (le, phase) (rate(simplex_order_phase_duration_seconds_bucket[5m])))",
"legendFormat": "{{phase}} p50",
"refId": "C"
},
{
"expr": "histogram_quantile(0.99, sum by (le, phase) (rate(simplex_order_phase_duration_seconds_bucket[5m])))",
"legendFormat": "{{phase}} p99",
"refId": "D"
}
],
"fieldConfig": {
"defaults": {
"custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 10 },
"unit": "s"
},
"overrides": []
}
},
{
"title": "Total Order Volume Processed (USD)",
"description": "Cumulative USD value of all orders successfully filled, broken down by source chain.",
"type": "timeseries",
"gridPos": { "h": 8, "w": 24, "x": 0, "y": 12 },
"targets": [
{
"expr": "sum by (chain_id) (simplex_order_volume_usd_total)",
"legendFormat": "chain {{chain_id}}",
"instant": false,
"range": true,
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 15, "stacking": { "mode": "none" } },
"unit": "currencyUSD",
"decimals": 2
},
"overrides": []
}
},
{
"title": "Cumulative Profit (USD)",
"description": "Cumulative USD profit earned from the bid/ask spread and fee surplus on filled orders, broken down by source chain.",
"type": "timeseries",
"gridPos": { "h": 8, "w": 24, "x": 0, "y": 20 },
"targets": [
{
"expr": "sum by (chain_id) (simplex_order_profit_usd_total)",
"legendFormat": "chain {{chain_id}}",
"instant": false,
"range": true,
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 15 },
"unit": "currencyUSD",
"decimals": 2
},
"overrides": []
}
},
{
"title": "USDC Balance",
"description": "Current USDC balance held by the filler on each chain. Decreases when filling orders, increases after rebalancing.",
"type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 28 },
"targets": [
{
"expr": "simplex_balance_usdc",
"legendFormat": "chain {{chain_id}}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 15 },
"unit": "currencyUSD",
"decimals": 2
},
"overrides": []
}
},
{
"title": "USDT Balance",
"description": "Current USDT balance held by the filler on each chain. Decreases when filling orders, increases after rebalancing.",
"type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 28 },
"targets": [
{
"expr": "simplex_balance_usdt",
"legendFormat": "chain {{chain_id}}",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 15 },
"unit": "currencyUSD",
"decimals": 2
},
"overrides": []
}
},
{
"title": "Native Token Balance",
"description": "Native gas token balance (e.g. ETH) on each chain. Used to pay for fill transaction gas fees.",
"type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 36 },
"targets": [
{
"expr": "simplex_balance_native",
"legendFormat": "{{symbol}} (chain {{chain_id}})",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 15 },
"decimals": 4
},
"overrides": []
}
},
{
"title": "Non-USD Token Balance",
"description": "Balance of non-USD tokens held by the filler for FX strategy orders, labelled by symbol.",
"type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 36 },
"targets": [
{
"expr": "simplex_balance_exotic",
"legendFormat": "{{symbol}} (chain {{chain_id}})",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 15 },
"decimals": 4
},
"overrides": []
}
},
{
"title": "Hyperbridge Substrate Balance",
"description": "Filler's balance on the Hyperbridge substrate chain. Free balance is available for bid deposits; reserved balance is locked in active bids.",
"type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 44 },
"targets": [
{
"expr": "simplex_hyperbridge_balance_free",
"legendFormat": "free",
"refId": "A"
},
{
"expr": "simplex_hyperbridge_balance_reserved",
"legendFormat": "reserved",
"refId": "B"
}
],
"fieldConfig": {
"defaults": {
"custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 15 },
"decimals": 4
},
"overrides": []
}
},
{
"title": "Execution Success Rate",
"description": "Percentage of order execution attempts that succeeded, calculated over a 5-minute rolling window.",
"type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 44 },
"targets": [
{
"expr": "sum(rate(simplex_orders_executed_total{success=\"true\"}[5m])) / sum(rate(simplex_orders_executed_total[5m])) * 100",
"legendFormat": "success %",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 10 },
"unit": "percent",
"min": 0,
"max": 100,
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "red", "value": null },
{ "color": "yellow", "value": 80 },
{ "color": "green", "value": 95 }
]
}
},
"overrides": []
}
},
{
"title": "Process Memory",
"description": "RSS is total physical memory used by the process. Heap used is the portion of V8's heap actively holding JavaScript objects.",
"type": "timeseries",
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 52 },
"targets": [
{
"expr": "simplex_process_resident_memory_bytes",
"legendFormat": "RSS",
"refId": "A"
},
{
"expr": "simplex_nodejs_heap_size_used_bytes",
"legendFormat": "heap used",
"refId": "B"
}
],
"fieldConfig": {
"defaults": {
"custom": { "drawStyle": "line", "lineWidth": 2, "fillOpacity": 10 },
"unit": "bytes"
},
"overrides": []
}
},
{
"title": "Uptime",
"description": "Time since the simplex filler process was last started.",
"type": "stat",
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 52 },
"targets": [
{
"expr": "simplex_uptime_seconds",
"legendFormat": "uptime",
"refId": "A"
}
],
"fieldConfig": {
"defaults": {
"unit": "s",
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": null }
]
}
},
"overrides": []
}
}
],
"schemaVersion": 39,
"tags": ["simplex", "hyperbridge"],
"templating": { "list": [] },
"time": { "from": "now-6h", "to": "now" },
"timepicker": {},
"timezone": "browser",
"title": "Simplex Filler",
"uid": "simplex-filler",
"version": 1
}