@aztec/telemetry-client 0.0.1-commit.fcb71a6 → 0.0.1-commit.ff7989d6c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dest/attributes.d.ts +9 -1
  2. package/dest/attributes.d.ts.map +1 -1
  3. package/dest/attributes.js +4 -0
  4. package/dest/bench.d.ts +3 -1
  5. package/dest/bench.d.ts.map +1 -1
  6. package/dest/bench.js +24 -14
  7. package/dest/l1_metrics.d.ts +2 -2
  8. package/dest/l1_metrics.d.ts.map +1 -1
  9. package/dest/l1_metrics.js +4 -20
  10. package/dest/lmdb_metrics.d.ts +3 -3
  11. package/dest/lmdb_metrics.d.ts.map +1 -1
  12. package/dest/lmdb_metrics.js +4 -20
  13. package/dest/metric-utils.d.ts +24 -0
  14. package/dest/metric-utils.d.ts.map +1 -0
  15. package/dest/metric-utils.js +59 -0
  16. package/dest/metrics.d.ts +283 -224
  17. package/dest/metrics.d.ts.map +1 -1
  18. package/dest/metrics.js +1434 -222
  19. package/dest/nodejs_metrics_monitor.d.ts +3 -5
  20. package/dest/nodejs_metrics_monitor.d.ts.map +1 -1
  21. package/dest/nodejs_metrics_monitor.js +19 -40
  22. package/dest/noop.d.ts +6 -3
  23. package/dest/noop.d.ts.map +1 -1
  24. package/dest/noop.js +32 -1
  25. package/dest/otel.d.ts +5 -3
  26. package/dest/otel.d.ts.map +1 -1
  27. package/dest/otel.js +51 -4
  28. package/dest/otel_resource.d.ts +1 -1
  29. package/dest/otel_resource.d.ts.map +1 -1
  30. package/dest/otel_resource.js +14 -2
  31. package/dest/prom_otel_adapter.d.ts +4 -4
  32. package/dest/prom_otel_adapter.d.ts.map +1 -1
  33. package/dest/prom_otel_adapter.js +19 -10
  34. package/dest/start.d.ts +3 -2
  35. package/dest/start.d.ts.map +1 -1
  36. package/dest/start.js +2 -2
  37. package/dest/telemetry.d.ts +37 -25
  38. package/dest/telemetry.d.ts.map +1 -1
  39. package/dest/telemetry.js +46 -23
  40. package/dest/wrappers/l2_block_stream.d.ts +2 -2
  41. package/dest/wrappers/l2_block_stream.d.ts.map +1 -1
  42. package/dest/wrappers/l2_block_stream.js +385 -11
  43. package/package.json +4 -4
  44. package/src/attributes.ts +12 -0
  45. package/src/bench.ts +27 -15
  46. package/src/l1_metrics.ts +5 -20
  47. package/src/lmdb_metrics.ts +5 -26
  48. package/src/metric-utils.ts +75 -0
  49. package/src/metrics.ts +1491 -250
  50. package/src/nodejs_metrics_monitor.ts +18 -51
  51. package/src/noop.ts +61 -3
  52. package/src/otel.ts +76 -6
  53. package/src/otel_resource.ts +19 -2
  54. package/src/prom_otel_adapter.ts +16 -23
  55. package/src/start.ts +6 -3
  56. package/src/telemetry.ts +105 -66
  57. package/src/wrappers/l2_block_stream.ts +4 -1
package/dest/metrics.js CHANGED
@@ -4,227 +4,1439 @@
4
4
  * Prefix metric names with `aztec` and use dots `.` to separate namespaces.
5
5
  *
6
6
  * @see {@link https://opentelemetry.io/docs/specs/semconv/general/metrics/ | OpenTelemetry Metrics} for naming conventions.
7
- */ export const BLOB_SINK_STORE_REQUESTS = 'aztec.blob_sink.store_request_count';
8
- export const BLOB_SINK_RETRIEVE_REQUESTS = 'aztec.blob_sink.retrieve_request_count';
9
- export const BLOB_SINK_OBJECTS_IN_BLOB_STORE = 'aztec.blob_sink.objects_in_blob_store';
10
- export const BLOB_SINK_BLOB_SIZE = 'aztec.blob_sink.blob_size';
11
- export const BLOB_SINK_ARCHIVE_BLOB_REQUEST_COUNT = 'aztec.blob_sink.archive.block_request_count';
12
- export const BLOB_SINK_ARCHIVE_BLOCK_REQUEST_COUNT = 'aztec.blob_sink.archive.blob_request_count';
13
- export const BLOB_SINK_ARCHIVE_BLOB_COUNT = 'aztec.blob_sink.archive.blob_count';
14
- /** How long it takes to simulate a circuit */ export const CIRCUIT_SIMULATION_DURATION = 'aztec.circuit.simulation.duration';
15
- export const CIRCUIT_SIMULATION_INPUT_SIZE = 'aztec.circuit.simulation.input_size';
16
- export const CIRCUIT_SIMULATION_OUTPUT_SIZE = 'aztec.circuit.simulation.output_size';
17
- export const CIRCUIT_WITNESS_GEN_DURATION = 'aztec.circuit.witness_generation.duration';
18
- export const CIRCUIT_WITNESS_GEN_INPUT_SIZE = 'aztec.circuit.witness_generation.input_size';
19
- export const CIRCUIT_WITNESS_GEN_OUTPUT_SIZE = 'aztec.circuit.witness_generation.output_size';
20
- export const CIRCUIT_PROVING_DURATION = 'aztec.circuit.proving.duration';
21
- export const CIRCUIT_PROVING_INPUT_SIZE = 'aztec.circuit.proving.input_size';
22
- export const CIRCUIT_PROVING_PROOF_SIZE = 'aztec.circuit.proving.proof_size';
23
- export const CIRCUIT_PUBLIC_INPUTS_COUNT = 'aztec.circuit.public_inputs_count';
24
- export const CIRCUIT_GATE_COUNT = 'aztec.circuit.gate_count';
25
- export const CIRCUIT_SIZE = 'aztec.circuit.size';
26
- export const MEMPOOL_TX_COUNT = 'aztec.mempool.tx_count';
27
- export const MEMPOOL_TX_SIZE = 'aztec.mempool.tx_size';
28
- export const MEMPOOL_TX_ADDED_COUNT = 'aztec.mempool.tx_added_count';
29
- export const MEMPOOL_TX_MINED_DELAY = 'aztec.mempool.tx_mined_delay';
30
- export const DB_NUM_ITEMS = 'aztec.db.num_items';
31
- export const DB_MAP_SIZE = 'aztec.db.map_size';
32
- export const DB_PHYSICAL_FILE_SIZE = 'aztec.db.physical_file_size';
33
- export const DB_USED_SIZE = 'aztec.db.used_size';
34
- export const MEMPOOL_ATTESTATIONS_COUNT = 'aztec.mempool.attestations_count';
35
- export const MEMPOOL_ATTESTATIONS_SIZE = 'aztec.mempool.attestations_size';
36
- export const MEMPOOL_ATTESTATIONS_ADDED_COUNT = 'aztec.mempool.attestations_added_count';
37
- export const MEMPOOL_ATTESTATIONS_MINED_DELAY = 'aztec.mempool.attestations_mined_delay';
38
- export const ARCHIVER_L1_BLOCK_HEIGHT = 'aztec.archiver.l1_block_height';
39
- export const ARCHIVER_BLOCK_HEIGHT = 'aztec.archiver.block_height';
40
- export const ARCHIVER_ROLLUP_PROOF_DELAY = 'aztec.archiver.rollup_proof_delay';
41
- export const ARCHIVER_ROLLUP_PROOF_COUNT = 'aztec.archiver.rollup_proof_count';
42
- export const ARCHIVER_MANA_PER_BLOCK = 'aztec.archiver.block.mana_count';
43
- export const ARCHIVER_TXS_PER_BLOCK = 'aztec.archiver.block.tx_count';
44
- export const ARCHIVER_SYNC_PER_BLOCK = 'aztec.archiver.block.sync_per_item_duration';
45
- export const ARCHIVER_SYNC_BLOCK_COUNT = 'aztec.archiver.block.sync_count';
46
- export const ARCHIVER_SYNC_PER_MESSAGE = 'aztec.archiver.message.sync_per_item_duration';
47
- export const ARCHIVER_SYNC_MESSAGE_COUNT = 'aztec.archiver.message.sync_count';
48
- export const ARCHIVER_PRUNE_DURATION = 'aztec.archiver.prune_duration';
49
- export const ARCHIVER_PRUNE_COUNT = 'aztec.archiver.prune_count';
50
- export const ARCHIVER_TOTAL_TXS = 'aztec.archiver.tx_count';
51
- export const ARCHIVER_BLOCK_PROPOSAL_TX_TARGET_COUNT = 'aztec.archiver.block_proposal_tx_target_count';
52
- export const NODE_RECEIVE_TX_DURATION = 'aztec.node.receive_tx.duration';
53
- export const NODE_RECEIVE_TX_COUNT = 'aztec.node.receive_tx.count';
54
- export const NODE_SNAPSHOT_DURATION = 'aztec.node.snapshot_duration';
55
- export const NODE_SNAPSHOT_ERROR_COUNT = 'aztec.node.snapshot_error_count';
56
- export const SEQUENCER_STATE_TRANSITION_BUFFER_DURATION = 'aztec.sequencer.state_transition_buffer.duration';
57
- export const SEQUENCER_BLOCK_BUILD_DURATION = 'aztec.sequencer.block.build_duration';
58
- export const SEQUENCER_BLOCK_BUILD_MANA_PER_SECOND = 'aztec.sequencer.block.build_mana_per_second';
59
- export const SEQUENCER_BLOCK_COUNT = 'aztec.sequencer.block.count';
60
- export const SEQUENCER_CURRENT_BLOCK_REWARDS = 'aztec.sequencer.current_block_rewards';
61
- export const SEQUENCER_SLOT_COUNT = 'aztec.sequencer.slot.total_count';
62
- export const SEQUENCER_FILLED_SLOT_COUNT = 'aztec.sequencer.slot.filled_count';
63
- export const SEQUENCER_BLOCK_ATTESTATION_DELAY = 'aztec.sequencer.block.attestation_delay';
64
- export const SEQUENCER_COLLECTED_ATTESTATIONS_COUNT = 'aztec.sequencer.attestations.collected_count';
65
- export const SEQUENCER_REQUIRED_ATTESTATIONS_COUNT = 'aztec.sequencer.attestations.required_count';
66
- export const SEQUENCER_COLLECT_ATTESTATIONS_DURATION = 'aztec.sequencer.attestations.collect_duration';
67
- export const SEQUENCER_COLLECT_ATTESTATIONS_TIME_ALLOWANCE = 'aztec.sequencer.attestations.collect_allowance';
68
- export const SEQUENCER_BLOCK_PROPOSAL_FAILED_COUNT = 'aztec.sequencer.block.proposal_failed_count';
69
- export const SEQUENCER_BLOCK_PROPOSAL_SUCCESS_COUNT = 'aztec.sequencer.block.proposal_success_count';
70
- export const SEQUENCER_BLOCK_PROPOSAL_PRECHECK_FAILED_COUNT = 'aztec.sequencer.block.proposal_precheck_failed_count';
71
- export const SEQUENCER_SLASHING_ATTEMPTS_COUNT = 'aztec.sequencer.slashing.attempts_count';
72
- export const SEQUENCER_CHECKPOINT_SUCCESS_COUNT = 'aztec.sequencer.checkpoint.success_count';
7
+ */ import { ValueType } from '@opentelemetry/api';
8
+ export const BLOB_SINK_STORE_REQUESTS = {
9
+ name: 'aztec.blob_sink.store_request_count',
10
+ description: 'Number of blob store requests',
11
+ valueType: ValueType.INT
12
+ };
13
+ export const BLOB_SINK_RETRIEVE_REQUESTS = {
14
+ name: 'aztec.blob_sink.retrieve_request_count',
15
+ description: 'Number of blob retrieve requests',
16
+ valueType: ValueType.INT
17
+ };
18
+ export const BLOB_SINK_OBJECTS_IN_BLOB_STORE = {
19
+ name: 'aztec.blob_sink.objects_in_blob_store',
20
+ description: 'Number of objects in the blob store',
21
+ valueType: ValueType.INT
22
+ };
23
+ export const BLOB_SINK_BLOB_SIZE = {
24
+ name: 'aztec.blob_sink.blob_size',
25
+ description: 'Size of blobs',
26
+ unit: 'By',
27
+ valueType: ValueType.INT
28
+ };
29
+ export const BLOB_SINK_ARCHIVE_BLOB_REQUEST_COUNT = {
30
+ name: 'aztec.blob_sink.archive.block_request_count',
31
+ description: 'Number of archive blob requests',
32
+ valueType: ValueType.INT
33
+ };
34
+ export const BLOB_SINK_ARCHIVE_BLOCK_REQUEST_COUNT = {
35
+ name: 'aztec.blob_sink.archive.blob_request_count',
36
+ description: 'Number of archive block requests',
37
+ valueType: ValueType.INT
38
+ };
39
+ export const BLOB_SINK_ARCHIVE_BLOB_COUNT = {
40
+ name: 'aztec.blob_sink.archive.blob_count',
41
+ description: 'Number of blobs in archive',
42
+ valueType: ValueType.INT
43
+ };
44
+ export const CIRCUIT_SIMULATION_DURATION = {
45
+ name: 'aztec.circuit.simulation.duration',
46
+ description: 'Records how long it takes to simulate a circuit',
47
+ unit: 'ms',
48
+ valueType: ValueType.INT
49
+ };
50
+ export const CIRCUIT_SIMULATION_INPUT_SIZE = {
51
+ name: 'aztec.circuit.simulation.input_size',
52
+ description: 'Size of the input to the circuit simulation',
53
+ unit: 'By',
54
+ valueType: ValueType.INT
55
+ };
56
+ export const CIRCUIT_SIMULATION_OUTPUT_SIZE = {
57
+ name: 'aztec.circuit.simulation.output_size',
58
+ description: 'Size of the output of the circuit simulation',
59
+ unit: 'By',
60
+ valueType: ValueType.INT
61
+ };
62
+ export const CIRCUIT_WITNESS_GEN_DURATION = {
63
+ name: 'aztec.circuit.witness_generation.duration',
64
+ description: 'Records how long it takes to generate the partial witness for a circuit',
65
+ unit: 's',
66
+ valueType: ValueType.DOUBLE
67
+ };
68
+ export const CIRCUIT_WITNESS_GEN_INPUT_SIZE = {
69
+ name: 'aztec.circuit.witness_generation.input_size',
70
+ description: 'Records the size of the input to the witness generation',
71
+ unit: 'By',
72
+ valueType: ValueType.INT
73
+ };
74
+ export const CIRCUIT_WITNESS_GEN_OUTPUT_SIZE = {
75
+ name: 'aztec.circuit.witness_generation.output_size',
76
+ description: 'Records the size of the output of the witness generation',
77
+ unit: 'By',
78
+ valueType: ValueType.INT
79
+ };
80
+ export const CIRCUIT_PROVING_DURATION = {
81
+ name: 'aztec.circuit.proving.duration',
82
+ description: 'Records how long it takes to prove a circuit',
83
+ unit: 's',
84
+ valueType: ValueType.DOUBLE
85
+ };
86
+ export const CIRCUIT_PROVING_INPUT_SIZE = {
87
+ name: 'aztec.circuit.proving.input_size',
88
+ description: 'Size of the input to the circuit proving',
89
+ unit: 'By',
90
+ valueType: ValueType.INT
91
+ };
92
+ export const CIRCUIT_PROVING_PROOF_SIZE = {
93
+ name: 'aztec.circuit.proving.proof_size',
94
+ description: 'Records the size of the proof generated for a circuit',
95
+ unit: 'By',
96
+ valueType: ValueType.INT
97
+ };
98
+ export const CIRCUIT_PUBLIC_INPUTS_COUNT = {
99
+ name: 'aztec.circuit.public_inputs_count',
100
+ description: 'Records the number of public inputs in a circuit',
101
+ valueType: ValueType.INT
102
+ };
103
+ export const CIRCUIT_GATE_COUNT = {
104
+ name: 'aztec.circuit.gate_count',
105
+ description: 'Records the gate count of a circuit',
106
+ valueType: ValueType.INT
107
+ };
108
+ export const CIRCUIT_SIZE = {
109
+ name: 'aztec.circuit.size',
110
+ description: 'Records the size of the circuit in gates',
111
+ valueType: ValueType.INT
112
+ };
113
+ export const MEMPOOL_TX_COUNT = {
114
+ name: 'aztec.mempool.tx_count',
115
+ description: 'The current number of transactions in the mempool',
116
+ valueType: ValueType.INT
117
+ };
118
+ export const MEMPOOL_TX_SIZE = {
119
+ name: 'aztec.mempool.tx_size',
120
+ description: 'The size of transactions in the mempool',
121
+ unit: 'By',
122
+ valueType: ValueType.INT
123
+ };
124
+ export const MEMPOOL_TX_ADDED_COUNT = {
125
+ name: 'aztec.mempool.tx_added_count',
126
+ description: 'The number of transactions added to the mempool',
127
+ valueType: ValueType.INT
128
+ };
129
+ export const MEMPOOL_TX_MINED_DELAY = {
130
+ name: 'aztec.mempool.tx_mined_delay',
131
+ description: 'Delay between transaction added and evicted from the mempool',
132
+ unit: 'ms',
133
+ valueType: ValueType.INT
134
+ };
135
+ export const MEMPOOL_TX_POOL_V2_EVICTED_COUNT = {
136
+ name: 'aztec.mempool.tx_pool_v2.evicted_count',
137
+ description: 'The number of transactions evicted from the tx pool',
138
+ valueType: ValueType.INT
139
+ };
140
+ export const MEMPOOL_TX_POOL_V2_IGNORED_COUNT = {
141
+ name: 'aztec.mempool.tx_pool_v2.ignored_count',
142
+ description: 'The number of transactions ignored in addPendingTxs',
143
+ valueType: ValueType.INT
144
+ };
145
+ export const MEMPOOL_TX_POOL_V2_REJECTED_COUNT = {
146
+ name: 'aztec.mempool.tx_pool_v2.rejected_count',
147
+ description: 'The number of transactions rejected in addPendingTxs',
148
+ valueType: ValueType.INT
149
+ };
150
+ export const MEMPOOL_TX_POOL_V2_SOFT_DELETED_HITS = {
151
+ name: 'aztec.mempool.tx_pool_v2.soft_deleted_hits',
152
+ description: 'The number of transactions found in the soft-deleted pool',
153
+ valueType: ValueType.INT
154
+ };
155
+ export const MEMPOOL_TX_POOL_V2_MISSING_ON_PROTECT = {
156
+ name: 'aztec.mempool.tx_pool_v2.missing_on_protect',
157
+ description: 'The number of truly missing transactions in protectTxs',
158
+ valueType: ValueType.INT
159
+ };
160
+ export const MEMPOOL_TX_POOL_V2_MISSING_PREVIOUSLY_EVICTED = {
161
+ name: 'aztec.mempool.tx_pool_v2.missing_previously_evicted',
162
+ description: 'The number of truly missing transactions in protectTxs that were previously evicted',
163
+ valueType: ValueType.INT
164
+ };
165
+ export const MEMPOOL_TX_POOL_V2_METADATA_MEMORY = {
166
+ name: 'aztec.mempool.tx_pool_v2.metadata_memory',
167
+ description: 'Estimated total memory consumed by in-memory transaction metadata',
168
+ unit: 'By',
169
+ valueType: ValueType.INT
170
+ };
171
+ export const MEMPOOL_TX_POOL_V2_DUPLICATE_ADD = {
172
+ name: 'aztec.mempool.tx_pool_v2.duplicate_add',
173
+ description: 'Transactions received via addPendingTxs that were already in the pool',
174
+ valueType: ValueType.INT
175
+ };
176
+ export const MEMPOOL_TX_POOL_V2_ALREADY_PROTECTED_ADD = {
177
+ name: 'aztec.mempool.tx_pool_v2.already_protected_add',
178
+ description: 'Transactions received via addPendingTxs that were already pre-protected',
179
+ valueType: ValueType.INT
180
+ };
181
+ export const DB_NUM_ITEMS = {
182
+ name: 'aztec.db.num_items',
183
+ description: 'LMDB Num Items',
184
+ valueType: ValueType.INT
185
+ };
186
+ export const DB_MAP_SIZE = {
187
+ name: 'aztec.db.map_size',
188
+ description: 'LMDB Map Size',
189
+ unit: 'By',
190
+ valueType: ValueType.INT
191
+ };
192
+ export const DB_PHYSICAL_FILE_SIZE = {
193
+ name: 'aztec.db.physical_file_size',
194
+ description: 'LMDB Physical File Size',
195
+ unit: 'By',
196
+ valueType: ValueType.INT
197
+ };
198
+ export const DB_USED_SIZE = {
199
+ name: 'aztec.db.used_size',
200
+ description: 'LMDB Used Size',
201
+ unit: 'By',
202
+ valueType: ValueType.INT
203
+ };
204
+ export const MEMPOOL_ATTESTATIONS_COUNT = {
205
+ name: 'aztec.mempool.attestations_count',
206
+ description: 'The current number of attestations in the mempool',
207
+ valueType: ValueType.INT
208
+ };
209
+ export const MEMPOOL_ATTESTATIONS_SIZE = {
210
+ name: 'aztec.mempool.attestations_size',
211
+ description: 'The size of attestations in the mempool',
212
+ unit: 'By',
213
+ valueType: ValueType.INT
214
+ };
215
+ export const MEMPOOL_ATTESTATIONS_ADDED_COUNT = {
216
+ name: 'aztec.mempool.attestations_added_count',
217
+ description: 'The number of attestations added to the mempool',
218
+ valueType: ValueType.INT
219
+ };
220
+ export const MEMPOOL_ATTESTATIONS_MINED_DELAY = {
221
+ name: 'aztec.mempool.attestations_mined_delay',
222
+ description: 'Delay between attestation added and evicted from the mempool',
223
+ unit: 'ms',
224
+ valueType: ValueType.INT
225
+ };
226
+ export const ARCHIVER_L1_BLOCK_HEIGHT = {
227
+ name: 'aztec.archiver.l1_block_height',
228
+ description: 'The height of the latest L1 block processed by the archiver',
229
+ valueType: ValueType.INT
230
+ };
231
+ export const ARCHIVER_BLOCK_HEIGHT = {
232
+ name: 'aztec.archiver.block_height',
233
+ description: 'The height of the latest block processed by the archiver',
234
+ valueType: ValueType.INT
235
+ };
236
+ export const ARCHIVER_CHECKPOINT_HEIGHT = {
237
+ name: 'aztec.archiver.checkpoint_height',
238
+ description: 'The height of the latest checkpoint processed by the archiver',
239
+ valueType: ValueType.INT
240
+ };
241
+ export const ARCHIVER_ROLLUP_PROOF_DELAY = {
242
+ name: 'aztec.archiver.rollup_proof_delay',
243
+ description: 'Time after a block is submitted until its proof is published',
244
+ unit: 'ms',
245
+ valueType: ValueType.INT
246
+ };
247
+ export const ARCHIVER_ROLLUP_PROOF_COUNT = {
248
+ name: 'aztec.archiver.rollup_proof_count',
249
+ description: 'Number of proofs submitted',
250
+ valueType: ValueType.INT
251
+ };
252
+ export const ARCHIVER_MANA_PER_BLOCK = {
253
+ name: 'aztec.archiver.block.mana_count',
254
+ description: 'The mana consumed by blocks',
255
+ unit: 'Mmana',
256
+ valueType: ValueType.DOUBLE
257
+ };
258
+ export const ARCHIVER_TXS_PER_BLOCK = {
259
+ name: 'aztec.archiver.block.tx_count',
260
+ description: 'The block tx count',
261
+ unit: 'tx',
262
+ valueType: ValueType.INT
263
+ };
264
+ export const ARCHIVER_SYNC_PER_BLOCK = {
265
+ name: 'aztec.archiver.block.sync_per_item_duration',
266
+ description: 'Duration to sync a block',
267
+ unit: 'ms',
268
+ valueType: ValueType.INT
269
+ };
270
+ export const ARCHIVER_SYNC_BLOCK_COUNT = {
271
+ name: 'aztec.archiver.block.sync_count',
272
+ description: 'Number of blocks synced from L1',
273
+ valueType: ValueType.INT
274
+ };
275
+ export const ARCHIVER_SYNC_PER_MESSAGE = {
276
+ name: 'aztec.archiver.message.sync_per_item_duration',
277
+ description: 'Duration to sync a message',
278
+ unit: 'ms',
279
+ valueType: ValueType.INT
280
+ };
281
+ export const ARCHIVER_SYNC_MESSAGE_COUNT = {
282
+ name: 'aztec.archiver.message.sync_count',
283
+ description: 'Number of L1 to L2 messages synced',
284
+ valueType: ValueType.INT
285
+ };
286
+ export const ARCHIVER_PRUNE_DURATION = {
287
+ name: 'aztec.archiver.prune_duration',
288
+ description: 'Duration of a prune operation',
289
+ unit: 'ms',
290
+ valueType: ValueType.INT
291
+ };
292
+ export const ARCHIVER_PRUNE_COUNT = {
293
+ name: 'aztec.archiver.prune_count',
294
+ description: 'Number of prunes detected',
295
+ valueType: ValueType.INT
296
+ };
297
+ export const ARCHIVER_TOTAL_TXS = {
298
+ name: 'aztec.archiver.tx_count',
299
+ description: 'The total number of transactions',
300
+ valueType: ValueType.INT
301
+ };
302
+ export const ARCHIVER_BLOCK_PROPOSAL_TX_TARGET_COUNT = {
303
+ name: 'aztec.archiver.block_proposal_tx_target_count',
304
+ description: 'Number of block proposals by tx target',
305
+ valueType: ValueType.INT
306
+ };
307
+ export const NODE_RECEIVE_TX_DURATION = {
308
+ name: 'aztec.node.receive_tx.duration',
309
+ description: 'The duration of the receiveTx method',
310
+ unit: 'ms',
311
+ valueType: ValueType.INT
312
+ };
313
+ export const NODE_RECEIVE_TX_COUNT = {
314
+ name: 'aztec.node.receive_tx.count',
315
+ description: 'Number of transactions received',
316
+ valueType: ValueType.INT
317
+ };
318
+ export const NODE_SNAPSHOT_DURATION = {
319
+ name: 'aztec.node.snapshot_duration',
320
+ description: 'How long taking a snapshot takes',
321
+ unit: 'ms',
322
+ valueType: ValueType.INT
323
+ };
324
+ export const NODE_SNAPSHOT_ERROR_COUNT = {
325
+ name: 'aztec.node.snapshot_error_count',
326
+ description: 'How many snapshot errors have happened',
327
+ valueType: ValueType.INT
328
+ };
329
+ export const SEQUENCER_STATE_TRANSITION_BUFFER_DURATION = {
330
+ name: 'aztec.sequencer.state_transition_buffer.duration',
331
+ description: 'The time difference between when the sequencer needed to transition to a new state and when it actually did',
332
+ unit: 'ms',
333
+ valueType: ValueType.INT
334
+ };
335
+ export const SEQUENCER_BLOCK_BUILD_DURATION = {
336
+ name: 'aztec.sequencer.block.build_duration',
337
+ description: 'Duration to build a block',
338
+ unit: 'ms',
339
+ valueType: ValueType.INT
340
+ };
341
+ export const SEQUENCER_BLOCK_BUILD_MANA_PER_SECOND = {
342
+ name: 'aztec.sequencer.block.build_mana_per_second',
343
+ description: 'Mana per second when building a block',
344
+ unit: 'mana/s',
345
+ valueType: ValueType.INT
346
+ };
347
+ export const SEQUENCER_BLOCK_COUNT = {
348
+ name: 'aztec.sequencer.block.count',
349
+ description: 'Number of blocks built by this sequencer',
350
+ valueType: ValueType.INT
351
+ };
352
+ export const SEQUENCER_CURRENT_SLOT_REWARDS = {
353
+ name: 'aztec.sequencer.current_slot_rewards',
354
+ description: 'The rewards earned per filled slot',
355
+ valueType: ValueType.DOUBLE
356
+ };
357
+ export const SEQUENCER_SLOT_COUNT = {
358
+ name: 'aztec.sequencer.slot.total_count',
359
+ description: 'The number of slots this sequencer was selected for',
360
+ valueType: ValueType.INT
361
+ };
362
+ export const SEQUENCER_FILLED_SLOT_COUNT = {
363
+ name: 'aztec.sequencer.slot.filled_count',
364
+ description: 'The number of slots this sequencer has filled',
365
+ valueType: ValueType.INT
366
+ };
367
+ export const SEQUENCER_CHECKPOINT_ATTESTATION_DELAY = {
368
+ name: 'aztec.sequencer.checkpoint.attestation_delay',
369
+ description: 'The time difference between checkpoint proposal and minimal attestation count reached',
370
+ unit: 'ms',
371
+ valueType: ValueType.INT
372
+ };
373
+ export const SEQUENCER_COLLECTED_ATTESTATIONS_COUNT = {
374
+ name: 'aztec.sequencer.attestations.collected_count',
375
+ description: 'The number of attestations collected for a checkpoint proposal',
376
+ valueType: ValueType.INT
377
+ };
378
+ export const SEQUENCER_REQUIRED_ATTESTATIONS_COUNT = {
379
+ name: 'aztec.sequencer.attestations.required_count',
380
+ description: 'The minimum number of attestations required to publish a checkpoint',
381
+ valueType: ValueType.INT
382
+ };
383
+ export const SEQUENCER_COLLECT_ATTESTATIONS_DURATION = {
384
+ name: 'aztec.sequencer.attestations.collect_duration',
385
+ description: 'The time spent collecting attestations from committee members',
386
+ unit: 'ms',
387
+ valueType: ValueType.INT
388
+ };
389
+ export const SEQUENCER_COLLECT_ATTESTATIONS_TIME_ALLOWANCE = {
390
+ name: 'aztec.sequencer.attestations.collect_allowance',
391
+ description: 'Maximum amount of time to collect attestations',
392
+ unit: 'ms',
393
+ valueType: ValueType.INT
394
+ };
395
+ export const SEQUENCER_BLOCK_PROPOSAL_FAILED_COUNT = {
396
+ name: 'aztec.sequencer.block.proposal_failed_count',
397
+ description: 'The number of times block proposal failed (including validation builds)',
398
+ valueType: ValueType.INT
399
+ };
400
+ export const SEQUENCER_CHECKPOINT_PROPOSAL_SUCCESS_COUNT = {
401
+ name: 'aztec.sequencer.checkpoint.proposal_success_count',
402
+ description: 'The number of times checkpoint proposal succeeded',
403
+ valueType: ValueType.INT
404
+ };
405
+ export const SEQUENCER_CHECKPOINT_PRECHECK_FAILED_COUNT = {
406
+ name: 'aztec.sequencer.checkpoint.precheck_failed_count',
407
+ description: 'The number of times checkpoint pre-build checks failed',
408
+ valueType: ValueType.INT
409
+ };
410
+ export const SEQUENCER_CHECKPOINT_PROPOSAL_FAILED_COUNT = {
411
+ name: 'aztec.sequencer.checkpoint.proposal_failed_count',
412
+ description: 'The number of times checkpoint proposal failed',
413
+ valueType: ValueType.INT
414
+ };
415
+ export const SEQUENCER_CHECKPOINT_BUILD_DURATION = {
416
+ name: 'aztec.sequencer.checkpoint.build_duration',
417
+ description: 'Total duration to build all blocks in a checkpoint',
418
+ unit: 'ms',
419
+ valueType: ValueType.INT
420
+ };
421
+ export const SEQUENCER_CHECKPOINT_BLOCK_COUNT = {
422
+ name: 'aztec.sequencer.checkpoint.block_count',
423
+ description: 'Number of blocks built in a checkpoint',
424
+ valueType: ValueType.INT
425
+ };
426
+ export const SEQUENCER_CHECKPOINT_TX_COUNT = {
427
+ name: 'aztec.sequencer.checkpoint.tx_count',
428
+ description: 'Total number of transactions across all blocks in a checkpoint',
429
+ unit: 'tx',
430
+ valueType: ValueType.INT
431
+ };
432
+ export const SEQUENCER_CHECKPOINT_TOTAL_MANA = {
433
+ name: 'aztec.sequencer.checkpoint.total_mana',
434
+ description: 'Total L2 mana used across all blocks in a checkpoint',
435
+ unit: 'mana',
436
+ valueType: ValueType.INT
437
+ };
438
+ export const SEQUENCER_SLASHING_ATTEMPTS_COUNT = {
439
+ name: 'aztec.sequencer.slashing.attempts_count',
440
+ description: 'The number of slashing action attempts',
441
+ valueType: ValueType.INT
442
+ };
443
+ export const SEQUENCER_CHECKPOINT_SUCCESS_COUNT = {
444
+ name: 'aztec.sequencer.checkpoint.success_count',
445
+ description: 'The number of times checkpoint publishing succeeded',
446
+ valueType: ValueType.INT
447
+ };
73
448
  // Fisherman fee analysis metrics
74
- export const FISHERMAN_FEE_ANALYSIS_WOULD_BE_INCLUDED = 'aztec.fisherman.fee_analysis.would_be_included';
75
- export const FISHERMAN_FEE_ANALYSIS_TIME_BEFORE_BLOCK = 'aztec.fisherman.fee_analysis.time_before_block';
76
- export const FISHERMAN_FEE_ANALYSIS_PENDING_BLOB_TX_COUNT = 'aztec.fisherman.fee_analysis.pending_blob_tx_count';
77
- export const FISHERMAN_FEE_ANALYSIS_INCLUDED_BLOB_TX_COUNT = 'aztec.fisherman.fee_analysis.included_blob_tx_count';
78
- export const FISHERMAN_FEE_ANALYSIS_CALCULATED_PRIORITY_FEE = 'aztec.fisherman.fee_analysis.calculated_priority_fee';
79
- export const FISHERMAN_FEE_ANALYSIS_PRIORITY_FEE_DELTA = 'aztec.fisherman.fee_analysis.priority_fee_delta';
80
- export const FISHERMAN_FEE_ANALYSIS_ESTIMATED_COST = 'aztec.fisherman.fee_analysis.estimated_cost';
81
- export const FISHERMAN_FEE_ANALYSIS_ESTIMATED_OVERPAYMENT = 'aztec.fisherman.fee_analysis.estimated_overpayment';
82
- export const FISHERMAN_FEE_ANALYSIS_MINED_BLOB_TX_PRIORITY_FEE = 'aztec.fisherman.fee_analysis.mined_blob_tx_priority_fee';
83
- export const FISHERMAN_FEE_ANALYSIS_MINED_BLOB_TX_TOTAL_COST = 'aztec.fisherman.fee_analysis.mined_blob_tx_total_cost';
84
- export const VALIDATOR_INVALID_ATTESTATION_RECEIVED_COUNT = 'aztec.validator.invalid_attestation_received_count';
85
- export const L1_PUBLISHER_GAS_PRICE = 'aztec.l1_publisher.gas_price';
86
- export const L1_PUBLISHER_TX_COUNT = 'aztec.l1_publisher.tx_count';
87
- export const L1_PUBLISHER_TX_DURATION = 'aztec.l1_publisher.tx_duration';
88
- export const L1_PUBLISHER_TX_GAS = 'aztec.l1_publisher.tx_gas';
89
- export const L1_PUBLISHER_TX_CALLDATA_SIZE = 'aztec.l1_publisher.tx_calldata_size';
90
- export const L1_PUBLISHER_TX_CALLDATA_GAS = 'aztec.l1_publisher.tx_calldata_gas';
91
- export const L1_PUBLISHER_TX_BLOBDATA_GAS_USED = 'aztec.l1_publisher.tx_blobdata_gas_used';
92
- export const L1_PUBLISHER_TX_BLOBDATA_GAS_COST = 'aztec.l1_publisher.tx_blobdata_gas_cost';
93
- export const L1_PUBLISHER_BLOB_COUNT = 'aztec.l1_publisher.blob_count';
94
- export const L1_PUBLISHER_BLOB_INCLUSION_BLOCKS = 'aztec.l1_publisher.blob_inclusion_blocks';
95
- export const L1_PUBLISHER_BLOB_TX_SUCCESS = 'aztec.l1_publisher.blob_tx_success';
96
- export const L1_PUBLISHER_BLOB_TX_FAILURE = 'aztec.l1_publisher.blob_tx_failure';
97
- export const L1_PUBLISHER_BALANCE = 'aztec.l1_publisher.balance';
98
- export const L1_PUBLISHER_TX_TOTAL_FEE = 'aztec.l1_publisher.tx_total_fee';
99
- export const L1_BLOCK_HEIGHT = 'aztec.l1.block_height';
100
- export const L1_BALANCE_ETH = 'aztec.l1.balance';
101
- export const L1_GAS_PRICE_WEI = 'aztec.l1.gas_price';
102
- export const L1_BLOB_BASE_FEE_WEI = 'aztec.l1.blob_base_fee';
103
- export const L1_TX_MINED_DURATION = 'aztec.l1_tx.mined_duration';
104
- export const L1_TX_MINED_COUNT = 'aztec.l1_tx.mined_count';
105
- export const L1_TX_REVERTED_COUNT = 'aztec.l1_tx.reverted_count';
106
- export const L1_TX_CANCELLED_COUNT = 'aztec.l1_tx.cancelled_count';
107
- export const L1_TX_NOT_MINED_COUNT = 'aztec.l1_tx.not_mined_count';
108
- export const L1_TX_ATTEMPTS_UNTIL_MINED = 'aztec.l1_tx.attempts_until_mined';
109
- export const L1_TX_MAX_PRIORITY_FEE = 'aztec.l1_tx.max_priority_fee';
110
- export const L1_TX_MAX_FEE = 'aztec.l1_tx.max_fee';
111
- export const L1_TX_BLOB_FEE = 'aztec.l1_tx.blob_fee';
112
- export const PEER_MANAGER_GOODBYES_SENT = 'aztec.peer_manager.goodbyes_sent';
113
- export const PEER_MANAGER_GOODBYES_RECEIVED = 'aztec.peer_manager.goodbyes_received';
114
- export const PEER_MANAGER_PEER_COUNT = 'aztec.peer_manager.peer_count';
115
- export const PEER_MANAGER_LOW_SCORE_DISCONNECTS = 'aztec.peer_manager.low_score_disconnects';
116
- export const PEER_MANAGER_PEER_CONNECTION_DURATION = 'aztec.peer_manager.peer_connection_duration';
117
- export const P2P_PEER_STATE_COUNT = 'aztec.p2p.peer_state_count';
118
- export const P2P_REQ_RESP_SENT_REQUESTS = 'aztec.p2p.req_resp.sent_requests';
119
- export const P2P_REQ_RESP_RECEIVED_REQUESTS = 'aztec.p2p.req_resp.received_requests';
120
- export const P2P_REQ_RESP_FAILED_OUTBOUND_REQUESTS = 'aztec.p2p.req_resp.failed_outbound_requests';
121
- export const P2P_REQ_RESP_FAILED_INBOUND_REQUESTS = 'aztec.p2p.req_resp.failed_inbound_requests';
122
- export const P2P_GOSSIP_MESSAGE_VALIDATION_DURATION = 'aztec.p2p.gossip.message_validation_duration';
123
- export const P2P_GOSSIP_MESSAGE_PREVALIDATION_COUNT = 'aztec.p2p.gossip.message_validation_count';
124
- export const P2P_GOSSIP_MESSAGE_LATENCY = 'aztec.p2p.gossip.message_latency';
125
- export const P2P_GOSSIP_TX_RECEIVED_COUNT = 'aztec.p2p.gossip.tx_received_count';
126
- export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_MIN = 'aztec.p2p.gossip.agg_message_latency_min';
127
- export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_MAX = 'aztec.p2p.gossip.agg_message_latency_max';
128
- export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_P50 = 'aztec.p2p.gossip.agg_message_latency_p50';
129
- export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_P90 = 'aztec.p2p.gossip.agg_message_latency_p90';
130
- export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_AVG = 'aztec.p2p.gossip.agg_message_latency_avg';
131
- export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_MIN = 'aztec.p2p.gossip.agg_message_validation_duration_min';
132
- export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_MAX = 'aztec.p2p.gossip.agg_message_validation_duration_max';
133
- export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_P50 = 'aztec.p2p.gossip.agg_message_validation_duration_p50';
134
- export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_P90 = 'aztec.p2p.gossip.agg_message_validation_duration_p90';
135
- export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_AVG = 'aztec.p2p.gossip.agg_message_validation_duration_avg';
136
- export const PUBLIC_PROCESSOR_TX_DURATION = 'aztec.public_processor.tx_duration';
137
- export const PUBLIC_PROCESSOR_TX_COUNT = 'aztec.public_processor.tx_count';
138
- export const PUBLIC_PROCESSOR_TX_PHASE_COUNT = 'aztec.public_processor.tx_phase_count';
139
- export const PUBLIC_PROCESSOR_TX_GAS = 'aztec.public_processor.tx_gas';
140
- export const PUBLIC_PROCESSOR_PHASE_DURATION = 'aztec.public_processor.phase_duration';
141
- export const PUBLIC_PROCESSOR_PHASE_COUNT = 'aztec.public_processor.phase_count';
142
- export const PUBLIC_PROCESSOR_DEPLOY_BYTECODE_SIZE = 'aztec.public_processor.deploy_bytecode_size';
143
- export const PUBLIC_PROCESSOR_TOTAL_GAS = 'aztec.public_processor.total_gas';
144
- export const PUBLIC_PROCESSOR_TOTAL_GAS_HISTOGRAM = 'aztec.public_processor.total_gas_histogram';
145
- export const PUBLIC_PROCESSOR_GAS_RATE = 'aztec.public_processor.gas_rate';
146
- export const PUBLIC_PROCESSOR_TREE_INSERTION = 'aztec.public_processor.tree_insertion';
449
+ export const FISHERMAN_FEE_ANALYSIS_WOULD_BE_INCLUDED = {
450
+ name: 'aztec.fisherman.fee_analysis.would_be_included',
451
+ description: 'Whether the transaction would have been included in the block',
452
+ valueType: ValueType.INT
453
+ };
454
+ export const FISHERMAN_FEE_ANALYSIS_TIME_BEFORE_BLOCK = {
455
+ name: 'aztec.fisherman.fee_analysis.time_before_block',
456
+ description: 'Time in ms between fee analysis and block being mined',
457
+ unit: 'ms',
458
+ valueType: ValueType.INT
459
+ };
460
+ export const FISHERMAN_FEE_ANALYSIS_PENDING_BLOB_TX_COUNT = {
461
+ name: 'aztec.fisherman.fee_analysis.pending_blob_tx_count',
462
+ description: 'Number of blob transactions seen in the pending block',
463
+ valueType: ValueType.INT
464
+ };
465
+ export const FISHERMAN_FEE_ANALYSIS_INCLUDED_BLOB_TX_COUNT = {
466
+ name: 'aztec.fisherman.fee_analysis.included_blob_tx_count',
467
+ description: 'Number of blob transactions that got included in the mined block',
468
+ valueType: ValueType.INT
469
+ };
470
+ export const FISHERMAN_FEE_ANALYSIS_CALCULATED_PRIORITY_FEE = {
471
+ name: 'aztec.fisherman.fee_analysis.calculated_priority_fee',
472
+ description: 'Priority fee calculated by each strategy',
473
+ unit: 'gwei',
474
+ valueType: ValueType.DOUBLE
475
+ };
476
+ export const FISHERMAN_FEE_ANALYSIS_PRIORITY_FEE_DELTA = {
477
+ name: 'aztec.fisherman.fee_analysis.priority_fee_delta',
478
+ description: 'Difference between our priority fee and minimum included priority fee',
479
+ unit: 'gwei',
480
+ valueType: ValueType.DOUBLE
481
+ };
482
+ export const FISHERMAN_FEE_ANALYSIS_ESTIMATED_COST = {
483
+ name: 'aztec.fisherman.fee_analysis.estimated_cost',
484
+ description: 'Estimated total cost in ETH for the transaction with this strategy',
485
+ unit: 'eth',
486
+ valueType: ValueType.DOUBLE
487
+ };
488
+ export const FISHERMAN_FEE_ANALYSIS_ESTIMATED_OVERPAYMENT = {
489
+ name: 'aztec.fisherman.fee_analysis.estimated_overpayment',
490
+ description: 'Estimated overpayment in ETH vs minimum required for inclusion',
491
+ unit: 'eth',
492
+ valueType: ValueType.DOUBLE
493
+ };
494
+ export const FISHERMAN_FEE_ANALYSIS_MINED_BLOB_TX_PRIORITY_FEE = {
495
+ name: 'aztec.fisherman.fee_analysis.mined_blob_tx_priority_fee',
496
+ description: 'Priority fee per gas for blob transactions in mined blocks',
497
+ unit: 'gwei',
498
+ valueType: ValueType.DOUBLE
499
+ };
500
+ export const FISHERMAN_FEE_ANALYSIS_MINED_BLOB_TX_TOTAL_COST = {
501
+ name: 'aztec.fisherman.fee_analysis.mined_blob_tx_total_cost',
502
+ description: 'Total cost in ETH for blob transactions in mined blocks',
503
+ unit: 'eth',
504
+ valueType: ValueType.DOUBLE
505
+ };
506
+ export const FISHERMAN_FEE_ANALYSIS_PENDING_BLOB_COUNT = {
507
+ name: 'aztec.fisherman.fee_analysis.pending_blob_count',
508
+ description: 'Total number of blobs in pending blob transactions',
509
+ unit: 'blobs',
510
+ valueType: ValueType.INT
511
+ };
512
+ export const FISHERMAN_FEE_ANALYSIS_INCLUDED_BLOB_COUNT = {
513
+ name: 'aztec.fisherman.fee_analysis.included_blob_count',
514
+ description: 'Total number of blobs included in the mined block',
515
+ unit: 'blobs',
516
+ valueType: ValueType.INT
517
+ };
518
+ export const FISHERMAN_FEE_ANALYSIS_BLOCK_BLOBS_FULL = {
519
+ name: 'aztec.fisherman.fee_analysis.block_blobs_full',
520
+ description: 'Whether the mined block reached 100% blob capacity',
521
+ valueType: ValueType.INT
522
+ };
523
+ export const FISHERMAN_FEE_ANALYSIS_MAX_BLOB_CAPACITY = {
524
+ name: 'aztec.fisherman.fee_analysis.max_blob_capacity',
525
+ description: 'Maximum blob capacity for the analyzed block based on L1 upgrade schedule',
526
+ unit: 'blobs',
527
+ valueType: ValueType.INT
528
+ };
529
+ export const VALIDATOR_INVALID_ATTESTATION_RECEIVED_COUNT = {
530
+ name: 'aztec.validator.invalid_attestation_received_count',
531
+ description: 'Number of invalid attestations received',
532
+ valueType: ValueType.INT
533
+ };
534
+ export const L1_PUBLISHER_GAS_PRICE = {
535
+ name: 'aztec.l1_publisher.gas_price',
536
+ description: 'The gas price used for transactions',
537
+ unit: 'gwei',
538
+ valueType: ValueType.DOUBLE
539
+ };
540
+ export const L1_PUBLISHER_TX_COUNT = {
541
+ name: 'aztec.l1_publisher.tx_count',
542
+ description: 'The number of transactions processed'
543
+ };
544
+ export const L1_PUBLISHER_TX_DURATION = {
545
+ name: 'aztec.l1_publisher.tx_duration',
546
+ description: 'The duration of transaction processing',
547
+ unit: 'ms',
548
+ valueType: ValueType.INT
549
+ };
550
+ export const L1_PUBLISHER_TX_GAS = {
551
+ name: 'aztec.l1_publisher.tx_gas',
552
+ description: 'The gas consumed by transactions',
553
+ unit: 'gas',
554
+ valueType: ValueType.INT
555
+ };
556
+ export const L1_PUBLISHER_TX_CALLDATA_SIZE = {
557
+ name: 'aztec.l1_publisher.tx_calldata_size',
558
+ description: 'The size of the calldata in transactions',
559
+ unit: 'By',
560
+ valueType: ValueType.INT
561
+ };
562
+ export const L1_PUBLISHER_TX_CALLDATA_GAS = {
563
+ name: 'aztec.l1_publisher.tx_calldata_gas',
564
+ description: 'The gas consumed by the calldata in transactions',
565
+ unit: 'gas',
566
+ valueType: ValueType.INT
567
+ };
568
+ export const L1_PUBLISHER_TX_BLOBDATA_GAS_USED = {
569
+ name: 'aztec.l1_publisher.tx_blobdata_gas_used',
570
+ description: 'The amount of blob gas used in transactions',
571
+ unit: 'gas',
572
+ valueType: ValueType.INT
573
+ };
574
+ export const L1_PUBLISHER_TX_BLOBDATA_GAS_COST = {
575
+ name: 'aztec.l1_publisher.tx_blobdata_gas_cost',
576
+ description: 'The gas cost of blobs in transactions',
577
+ unit: 'gwei',
578
+ valueType: ValueType.INT
579
+ };
580
+ export const L1_PUBLISHER_BLOB_COUNT = {
581
+ name: 'aztec.l1_publisher.blob_count',
582
+ description: 'Number of blobs in L1 transactions',
583
+ unit: 'blobs',
584
+ valueType: ValueType.INT
585
+ };
586
+ export const L1_PUBLISHER_BLOB_INCLUSION_BLOCKS = {
587
+ name: 'aztec.l1_publisher.blob_inclusion_blocks',
588
+ description: 'Number of L1 blocks between blob tx submission and inclusion',
589
+ unit: 'blocks',
590
+ valueType: ValueType.INT
591
+ };
592
+ export const L1_PUBLISHER_BLOB_TX_SUCCESS = {
593
+ name: 'aztec.l1_publisher.blob_tx_success',
594
+ description: 'Number of successful L1 transactions with blobs'
595
+ };
596
+ export const L1_PUBLISHER_BLOB_TX_FAILURE = {
597
+ name: 'aztec.l1_publisher.blob_tx_failure',
598
+ description: 'Number of failed L1 transactions with blobs'
599
+ };
600
+ export const L1_PUBLISHER_BALANCE = {
601
+ name: 'aztec.l1_publisher.balance',
602
+ description: 'The balance of the sender address',
603
+ unit: 'eth',
604
+ valueType: ValueType.DOUBLE
605
+ };
606
+ export const L1_PUBLISHER_TX_TOTAL_FEE = {
607
+ name: 'aztec.l1_publisher.tx_total_fee',
608
+ description: 'How much L1 tx costs',
609
+ unit: 'eth',
610
+ valueType: ValueType.DOUBLE
611
+ };
612
+ export const L1_BLOCK_HEIGHT = {
613
+ name: 'aztec.l1.block_height',
614
+ description: 'The current L1 block height',
615
+ valueType: ValueType.INT
616
+ };
617
+ export const L1_BALANCE_ETH = {
618
+ name: 'aztec.l1.balance',
619
+ description: 'ETH balance of an address',
620
+ unit: 'eth',
621
+ valueType: ValueType.DOUBLE
622
+ };
623
+ export const L1_GAS_PRICE_WEI = {
624
+ name: 'aztec.l1.gas_price',
625
+ description: 'Current L1 gas price',
626
+ unit: 'wei',
627
+ valueType: ValueType.INT
628
+ };
629
+ export const L1_BLOB_BASE_FEE_WEI = {
630
+ name: 'aztec.l1.blob_base_fee',
631
+ description: 'Current L1 blob base fee',
632
+ unit: 'wei',
633
+ valueType: ValueType.INT
634
+ };
635
+ export const L1_TX_MINED_DURATION = {
636
+ name: 'aztec.l1_tx.mined_duration',
637
+ description: 'Duration from L1 tx submission to mining',
638
+ unit: 'ms',
639
+ valueType: ValueType.INT
640
+ };
641
+ export const L1_TX_MINED_COUNT = {
642
+ name: 'aztec.l1_tx.mined_count',
643
+ description: 'Number of L1 transactions mined',
644
+ valueType: ValueType.INT
645
+ };
646
+ export const L1_TX_REVERTED_COUNT = {
647
+ name: 'aztec.l1_tx.reverted_count',
648
+ description: 'Number of L1 transactions reverted',
649
+ valueType: ValueType.INT
650
+ };
651
+ export const L1_TX_CANCELLED_COUNT = {
652
+ name: 'aztec.l1_tx.cancelled_count',
653
+ description: 'Number of L1 transactions cancelled',
654
+ valueType: ValueType.INT
655
+ };
656
+ export const L1_TX_NOT_MINED_COUNT = {
657
+ name: 'aztec.l1_tx.not_mined_count',
658
+ description: 'Number of L1 transactions not mined',
659
+ valueType: ValueType.INT
660
+ };
661
+ export const L1_TX_ATTEMPTS_UNTIL_MINED = {
662
+ name: 'aztec.l1_tx.attempts_until_mined',
663
+ description: 'Number of attempts until L1 tx was mined',
664
+ valueType: ValueType.INT
665
+ };
666
+ export const L1_TX_MAX_PRIORITY_FEE = {
667
+ name: 'aztec.l1_tx.max_priority_fee',
668
+ description: 'Max priority fee used for L1 tx',
669
+ unit: 'gwei',
670
+ valueType: ValueType.DOUBLE
671
+ };
672
+ export const L1_TX_MAX_FEE = {
673
+ name: 'aztec.l1_tx.max_fee',
674
+ description: 'Max fee used for L1 tx',
675
+ unit: 'gwei',
676
+ valueType: ValueType.DOUBLE
677
+ };
678
+ export const L1_TX_BLOB_FEE = {
679
+ name: 'aztec.l1_tx.blob_fee',
680
+ description: 'Blob fee used for L1 tx',
681
+ unit: 'gwei',
682
+ valueType: ValueType.DOUBLE
683
+ };
684
+ export const PEER_MANAGER_GOODBYES_SENT = {
685
+ name: 'aztec.peer_manager.goodbyes_sent',
686
+ description: 'Number of goodbyes sent to peers',
687
+ unit: 'peers',
688
+ valueType: ValueType.INT
689
+ };
690
+ export const PEER_MANAGER_GOODBYES_RECEIVED = {
691
+ name: 'aztec.peer_manager.goodbyes_received',
692
+ description: 'Number of goodbyes received from peers',
693
+ unit: 'peers',
694
+ valueType: ValueType.INT
695
+ };
696
+ export const PEER_MANAGER_PEER_COUNT = {
697
+ name: 'aztec.peer_manager.peer_count',
698
+ description: 'Number of peers',
699
+ unit: 'peers',
700
+ valueType: ValueType.INT
701
+ };
702
+ export const PEER_MANAGER_LOW_SCORE_DISCONNECTS = {
703
+ name: 'aztec.peer_manager.low_score_disconnects',
704
+ description: 'Number of peers disconnected due to low score',
705
+ unit: 'peers',
706
+ valueType: ValueType.INT
707
+ };
708
+ export const PEER_MANAGER_PEER_CONNECTION_DURATION = {
709
+ name: 'aztec.peer_manager.peer_connection_duration',
710
+ description: 'Time duration between peer connection and disconnection',
711
+ unit: 'ms',
712
+ valueType: ValueType.INT
713
+ };
714
+ export const P2P_PEER_STATE_COUNT = {
715
+ name: 'aztec.p2p.peer_state_count',
716
+ description: 'Number of peers in each state',
717
+ unit: 'peers',
718
+ valueType: ValueType.INT
719
+ };
720
+ export const P2P_REQ_RESP_SENT_REQUESTS = {
721
+ name: 'aztec.p2p.req_resp.sent_requests',
722
+ description: 'Number of requests sent to peers',
723
+ unit: 'requests',
724
+ valueType: ValueType.INT
725
+ };
726
+ export const P2P_REQ_RESP_RECEIVED_REQUESTS = {
727
+ name: 'aztec.p2p.req_resp.received_requests',
728
+ description: 'Number of requests received from peers',
729
+ unit: 'requests',
730
+ valueType: ValueType.INT
731
+ };
732
+ export const P2P_REQ_RESP_FAILED_OUTBOUND_REQUESTS = {
733
+ name: 'aztec.p2p.req_resp.failed_outbound_requests',
734
+ description: 'Number of failed outbound requests - nodes not getting valid responses',
735
+ unit: 'requests',
736
+ valueType: ValueType.INT
737
+ };
738
+ export const P2P_REQ_RESP_FAILED_INBOUND_REQUESTS = {
739
+ name: 'aztec.p2p.req_resp.failed_inbound_requests',
740
+ description: 'Number of failed inbound requests - node failing to respond to requests',
741
+ unit: 'requests',
742
+ valueType: ValueType.INT
743
+ };
744
+ export const P2P_GOSSIP_MESSAGE_VALIDATION_DURATION = {
745
+ name: 'aztec.p2p.gossip.message_validation_duration',
746
+ description: 'Duration to validate a gossip message',
747
+ unit: 'ms',
748
+ valueType: ValueType.INT
749
+ };
750
+ export const P2P_GOSSIP_MESSAGE_PREVALIDATION_COUNT = {
751
+ name: 'aztec.p2p.gossip.message_validation_count',
752
+ description: 'Number of gossip messages validated',
753
+ valueType: ValueType.INT
754
+ };
755
+ export const P2P_GOSSIP_MESSAGE_LATENCY = {
756
+ name: 'aztec.p2p.gossip.message_latency',
757
+ description: 'Latency of gossip messages',
758
+ unit: 'ms',
759
+ valueType: ValueType.INT
760
+ };
761
+ export const P2P_GOSSIP_TX_RECEIVED_COUNT = {
762
+ name: 'aztec.p2p.gossip.tx_received_count',
763
+ description: 'Number of transactions received via gossip',
764
+ valueType: ValueType.INT
765
+ };
766
+ export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_MIN = {
767
+ name: 'aztec.p2p.gossip.agg_message_latency_min',
768
+ description: 'Minimum aggregated gossip message latency',
769
+ unit: 'ms',
770
+ valueType: ValueType.INT
771
+ };
772
+ export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_MAX = {
773
+ name: 'aztec.p2p.gossip.agg_message_latency_max',
774
+ description: 'Maximum aggregated gossip message latency',
775
+ unit: 'ms',
776
+ valueType: ValueType.INT
777
+ };
778
+ export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_P50 = {
779
+ name: 'aztec.p2p.gossip.agg_message_latency_p50',
780
+ description: 'P50 aggregated gossip message latency',
781
+ unit: 'ms',
782
+ valueType: ValueType.INT
783
+ };
784
+ export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_P90 = {
785
+ name: 'aztec.p2p.gossip.agg_message_latency_p90',
786
+ description: 'P90 aggregated gossip message latency',
787
+ unit: 'ms',
788
+ valueType: ValueType.INT
789
+ };
790
+ export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_AVG = {
791
+ name: 'aztec.p2p.gossip.agg_message_latency_avg',
792
+ description: 'Average aggregated gossip message latency',
793
+ unit: 'ms',
794
+ valueType: ValueType.INT
795
+ };
796
+ export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_MIN = {
797
+ name: 'aztec.p2p.gossip.agg_message_validation_duration_min',
798
+ description: 'Minimum aggregated gossip message validation duration',
799
+ unit: 'ms',
800
+ valueType: ValueType.INT
801
+ };
802
+ export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_MAX = {
803
+ name: 'aztec.p2p.gossip.agg_message_validation_duration_max',
804
+ description: 'Maximum aggregated gossip message validation duration',
805
+ unit: 'ms',
806
+ valueType: ValueType.INT
807
+ };
808
+ export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_P50 = {
809
+ name: 'aztec.p2p.gossip.agg_message_validation_duration_p50',
810
+ description: 'P50 aggregated gossip message validation duration',
811
+ unit: 'ms',
812
+ valueType: ValueType.INT
813
+ };
814
+ export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_P90 = {
815
+ name: 'aztec.p2p.gossip.agg_message_validation_duration_p90',
816
+ description: 'P90 aggregated gossip message validation duration',
817
+ unit: 'ms',
818
+ valueType: ValueType.INT
819
+ };
820
+ export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_AVG = {
821
+ name: 'aztec.p2p.gossip.agg_message_validation_duration_avg',
822
+ description: 'Average aggregated gossip message validation duration',
823
+ unit: 'ms',
824
+ valueType: ValueType.INT
825
+ };
826
+ export const PUBLIC_PROCESSOR_TX_DURATION = {
827
+ name: 'aztec.public_processor.tx_duration',
828
+ description: 'Duration to process a public transaction',
829
+ unit: 'ms',
830
+ valueType: ValueType.INT
831
+ };
832
+ export const PUBLIC_PROCESSOR_TX_COUNT = {
833
+ name: 'aztec.public_processor.tx_count',
834
+ description: 'Number of public transactions processed',
835
+ valueType: ValueType.INT
836
+ };
837
+ export const PUBLIC_PROCESSOR_TX_PHASE_COUNT = {
838
+ name: 'aztec.public_processor.tx_phase_count',
839
+ description: 'Number of phases in public transaction processing',
840
+ valueType: ValueType.INT
841
+ };
842
+ export const PUBLIC_PROCESSOR_TX_GAS = {
843
+ name: 'aztec.public_processor.tx_gas',
844
+ description: 'Gas consumed by public transaction',
845
+ unit: 'gas',
846
+ valueType: ValueType.INT
847
+ };
848
+ export const PUBLIC_PROCESSOR_PHASE_DURATION = {
849
+ name: 'aztec.public_processor.phase_duration',
850
+ description: 'Duration of public processing phase',
851
+ unit: 'ms',
852
+ valueType: ValueType.INT
853
+ };
854
+ export const PUBLIC_PROCESSOR_PHASE_COUNT = {
855
+ name: 'aztec.public_processor.phase_count',
856
+ description: 'Number of public processing phases',
857
+ valueType: ValueType.INT
858
+ };
859
+ export const PUBLIC_PROCESSOR_DEPLOY_BYTECODE_SIZE = {
860
+ name: 'aztec.public_processor.deploy_bytecode_size',
861
+ description: 'Size of deployed bytecode',
862
+ unit: 'By',
863
+ valueType: ValueType.INT
864
+ };
865
+ export const PUBLIC_PROCESSOR_TOTAL_GAS = {
866
+ name: 'aztec.public_processor.total_gas',
867
+ description: 'Total gas consumed by public processor',
868
+ unit: 'gas',
869
+ valueType: ValueType.INT
870
+ };
871
+ export const PUBLIC_PROCESSOR_TOTAL_GAS_HISTOGRAM = {
872
+ name: 'aztec.public_processor.total_gas_histogram',
873
+ description: 'Histogram of total gas consumed by public processor',
874
+ unit: 'gas',
875
+ valueType: ValueType.INT
876
+ };
877
+ export const PUBLIC_PROCESSOR_GAS_RATE = {
878
+ name: 'aztec.public_processor.gas_rate',
879
+ description: 'Gas rate in public processor',
880
+ unit: 'gas/s',
881
+ valueType: ValueType.DOUBLE
882
+ };
883
+ export const PUBLIC_PROCESSOR_TREE_INSERTION = {
884
+ name: 'aztec.public_processor.tree_insertion',
885
+ description: 'Duration of tree insertion in public processor',
886
+ unit: 'ms',
887
+ valueType: ValueType.INT
888
+ };
147
889
  export const PUBLIC_EXECUTOR_PREFIX = 'aztec.public_executor.';
148
- export const PUBLIC_EXECUTOR_SIMULATION_COUNT = 'aztec.public_executor.simulation_count';
149
- export const PUBLIC_EXECUTOR_SIMULATION_DURATION = 'aztec.public_executor.simulation_duration';
150
- export const PUBLIC_EXECUTOR_SIMULATION_MANA_PER_SECOND = 'aztec.public_executor.simulation_mana_per_second';
151
- export const PUBLIC_EXECUTOR_SIMULATION_MANA_USED = 'aztec.public_executor.simulation_mana_used';
152
- export const PUBLIC_EXECUTOR_SIMULATION_TOTAL_INSTRUCTIONS = 'aztec.public_executor.simulation_total_instructions';
153
- export const PUBLIC_EXECUTOR_TX_HASHING = 'aztec.public_executor.tx_hashing';
154
- export const PUBLIC_EXECUTOR_PRIVATE_EFFECTS_INSERTION = 'aztec.public_executor.private_effects_insertion';
155
- export const PUBLIC_EXECUTOR_SIMULATION_BYTECODE_SIZE = 'aztec.public_executor.simulation_bytecode_size';
156
- export const PROVING_ORCHESTRATOR_BASE_ROLLUP_INPUTS_DURATION = 'aztec.proving_orchestrator.base_rollup.inputs_duration';
157
- export const PROVING_QUEUE_JOB_SIZE = 'aztec.proving_queue.job_size';
158
- export const PROVING_QUEUE_SIZE = 'aztec.proving_queue.size';
159
- export const PROVING_QUEUE_TOTAL_JOBS = 'aztec.proving_queue.enqueued_jobs_count';
160
- export const PROVING_QUEUE_CACHED_JOBS = 'aztec.proving_queue.cached_jobs_count';
161
- export const PROVING_QUEUE_ACTIVE_JOBS = 'aztec.proving_queue.active_jobs_count';
162
- export const PROVING_QUEUE_RESOLVED_JOBS = 'aztec.proving_queue.resolved_jobs_count';
163
- export const PROVING_QUEUE_REJECTED_JOBS = 'aztec.proving_queue.rejected_jobs_count';
164
- export const PROVING_QUEUE_RETRIED_JOBS = 'aztec.proving_queue.retried_jobs_count';
165
- export const PROVING_QUEUE_TIMED_OUT_JOBS = 'aztec.proving_queue.timed_out_jobs_count';
166
- export const PROVING_QUEUE_JOB_WAIT = 'aztec.proving_queue.job_wait';
167
- export const PROVING_QUEUE_JOB_DURATION = 'aztec.proving_queue.job_duration';
168
- export const PROVING_QUEUE_DB_NUM_ITEMS = 'aztec.proving_queue.db.num_items';
169
- export const PROVING_QUEUE_DB_MAP_SIZE = 'aztec.proving_queue.db.map_size';
170
- export const PROVING_QUEUE_DB_USED_SIZE = 'aztec.proving_queue.db.used_size';
171
- export const PROVING_AGENT_IDLE = 'aztec.proving_queue.agent.idle';
172
- export const PROVER_NODE_EXECUTION_DURATION = 'aztec.prover_node.execution.duration';
173
- export const PROVER_NODE_JOB_DURATION = 'aztec.prover_node.job_duration';
174
- export const PROVER_NODE_JOB_CHECKPOINTS = 'aztec.prover_node.job_checkpoints';
175
- export const PROVER_NODE_JOB_BLOCKS = 'aztec.prover_node.job_blocks';
176
- export const PROVER_NODE_JOB_TRANSACTIONS = 'aztec.prover_node.job_transactions';
177
- export const PROVER_NODE_REWARDS_TOTAL = 'aztec.prover_node.rewards_total';
178
- export const PROVER_NODE_REWARDS_PER_EPOCH = 'aztec.prover_node.rewards_per_epoch';
179
- export const WORLD_STATE_FORK_DURATION = 'aztec.world_state.fork.duration';
180
- export const WORLD_STATE_SYNC_DURATION = 'aztec.world_state.sync.duration';
181
- export const WORLD_STATE_MERKLE_TREE_SIZE = 'aztec.world_state.merkle_tree_size';
182
- export const WORLD_STATE_DB_SIZE = 'aztec.world_state.db_size';
183
- export const WORLD_STATE_DB_MAP_SIZE = 'aztec.world_state.db_map_size';
184
- export const WORLD_STATE_DB_PHYSICAL_SIZE = 'aztec.world_state.db_physical_size';
185
- export const WORLD_STATE_TREE_SIZE = 'aztec.world_state.tree_size';
186
- export const WORLD_STATE_UNFINALIZED_HEIGHT = 'aztec.world_state.unfinalized_height';
187
- export const WORLD_STATE_FINALIZED_HEIGHT = 'aztec.world_state.finalized_height';
188
- export const WORLD_STATE_OLDEST_BLOCK = 'aztec.world_state.oldest_block';
189
- export const WORLD_STATE_DB_USED_SIZE = 'aztec.world_state.db_used_size';
190
- export const WORLD_STATE_DB_NUM_ITEMS = 'aztec.world_state.db_num_items';
191
- export const WORLD_STATE_REQUEST_TIME = 'aztec.world_state.request_time';
192
- export const WORLD_STATE_CRITICAL_ERROR_COUNT = 'aztec.world_state.critical_error_count';
193
- export const PROOF_VERIFIER_COUNT = 'aztec.proof_verifier.count';
194
- export const VALIDATOR_RE_EXECUTION_TIME = 'aztec.validator.re_execution_time';
195
- export const VALIDATOR_RE_EXECUTION_MANA = 'aztec.validator.re_execution_mana';
196
- export const VALIDATOR_RE_EXECUTION_TX_COUNT = 'aztec.validator.re_execution_tx_count';
197
- export const VALIDATOR_FAILED_REEXECUTION_COUNT = 'aztec.validator.failed_reexecution_count';
198
- export const VALIDATOR_ATTESTATION_SUCCESS_COUNT = 'aztec.validator.attestation_success_count';
199
- export const VALIDATOR_ATTESTATION_FAILED_BAD_PROPOSAL_COUNT = 'aztec.validator.attestation_failed_bad_proposal_count';
200
- export const VALIDATOR_ATTESTATION_FAILED_NODE_ISSUE_COUNT = 'aztec.validator.attestation_failed_node_issue_count';
201
- export const NODEJS_EVENT_LOOP_DELAY_MIN = 'nodejs.eventloop.delay.min';
202
- export const NODEJS_EVENT_LOOP_DELAY_MEAN = 'nodejs.eventloop.delay.mean';
203
- export const NODEJS_EVENT_LOOP_DELAY_MAX = 'nodejs.eventloop.delay.max';
204
- export const NODEJS_EVENT_LOOP_DELAY_STDDEV = 'nodejs.eventloop.delay.stddev';
205
- export const NODEJS_EVENT_LOOP_DELAY_P50 = 'nodejs.eventloop.delay.p50';
206
- export const NODEJS_EVENT_LOOP_DELAY_P90 = 'nodejs.eventloop.delay.p90';
207
- export const NODEJS_EVENT_LOOP_DELAY_P99 = 'nodejs.eventloop.delay.p99';
208
- export const NODEJS_EVENT_LOOP_UTILIZATION = 'nodejs.eventloop.utilization';
209
- export const NODEJS_EVENT_LOOP_TIME = 'nodejs.eventloop.time';
210
- export const NODEJS_MEMORY_HEAP_USAGE = 'nodejs.memory.v8_heap.usage';
211
- export const NODEJS_MEMORY_HEAP_TOTAL = 'nodejs.memory.v8_heap.total';
212
- export const NODEJS_MEMORY_NATIVE_USAGE = 'nodejs.memory.native.usage';
213
- export const NODEJS_MEMORY_BUFFER_USAGE = 'nodejs.memory.array_buffer.usage';
214
- export const TX_PROVIDER_TXS_FROM_PROPOSALS_COUNT = 'aztec.tx_collector.txs_from_proposal_count';
215
- export const TX_PROVIDER_TXS_FROM_MEMPOOL_COUNT = 'aztec.tx_collector.txs_from_mempool_count';
216
- export const TX_PROVIDER_TXS_FROM_P2P_COUNT = 'aztec.tx_collector.txs_from_p2p_count';
217
- export const TX_PROVIDER_MISSING_TXS_COUNT = 'aztec.tx_collector.missing_txs_count';
218
- export const TX_PROVIDER_P2P_TXS_REQUESTED_FRACTION = 'aztec.tx_collector.txs_requested_fraction';
219
- export const TX_PROVIDER_P2P_TXS_REQUEST_DELAY = 'aztec.tx_collector.txs_requested_delay';
220
- export const TX_COLLECTOR_COUNT = 'aztec.tx_collector.tx_count';
221
- export const TX_COLLECTOR_DURATION_PER_REQUEST = 'aztec.tx_collector.duration_per_request';
222
- export const TX_COLLECTOR_DURATION_PER_TX = 'aztec.tx_collector.duration_per_tx';
223
- export const IVC_VERIFIER_TIME = 'aztec.ivc_verifier.time';
224
- export const IVC_VERIFIER_TOTAL_TIME = 'aztec.ivc_verifier.total_time';
225
- export const IVC_VERIFIER_FAILURE_COUNT = 'aztec.ivc_verifier.failure_count';
226
- export const IVC_VERIFIER_AGG_DURATION_MIN = 'aztec.ivc_verifier.agg_duration_min';
227
- export const IVC_VERIFIER_AGG_DURATION_MAX = 'aztec.ivc_verifier.agg_duration_max';
228
- export const IVC_VERIFIER_AGG_DURATION_P50 = 'aztec.ivc_verifier.agg_duration_p50';
229
- export const IVC_VERIFIER_AGG_DURATION_P90 = 'aztec.ivc_verifier.agg_duration_p90';
230
- export const IVC_VERIFIER_AGG_DURATION_AVG = 'aztec.ivc_verifier.agg_duration_avg';
890
+ export const PUBLIC_EXECUTOR_SIMULATION_COUNT = {
891
+ name: 'aztec.public_executor.simulation_count',
892
+ description: 'Number of functions executed',
893
+ valueType: ValueType.INT
894
+ };
895
+ export const PUBLIC_EXECUTOR_SIMULATION_DURATION = {
896
+ name: 'aztec.public_executor.simulation_duration',
897
+ description: 'How long it takes to execute a function',
898
+ unit: 'ms',
899
+ valueType: ValueType.INT
900
+ };
901
+ export const PUBLIC_EXECUTOR_SIMULATION_MANA_PER_SECOND = {
902
+ name: 'aztec.public_executor.simulation_mana_per_second',
903
+ description: 'Mana used per second',
904
+ unit: 'mana/s',
905
+ valueType: ValueType.INT
906
+ };
907
+ export const PUBLIC_EXECUTOR_SIMULATION_MANA_USED = {
908
+ name: 'aztec.public_executor.simulation_mana_used',
909
+ description: 'Total mana used',
910
+ unit: 'mana',
911
+ valueType: ValueType.INT
912
+ };
913
+ export const PUBLIC_EXECUTOR_SIMULATION_TOTAL_INSTRUCTIONS = {
914
+ name: 'aztec.public_executor.simulation_total_instructions',
915
+ description: 'Total number of instructions executed',
916
+ valueType: ValueType.INT
917
+ };
918
+ export const PUBLIC_EXECUTOR_TX_HASHING = {
919
+ name: 'aztec.public_executor.tx_hashing',
920
+ description: 'Tx hashing time',
921
+ unit: 'ms',
922
+ valueType: ValueType.INT
923
+ };
924
+ export const PUBLIC_EXECUTOR_PRIVATE_EFFECTS_INSERTION = {
925
+ name: 'aztec.public_executor.private_effects_insertion',
926
+ description: 'Private effects insertion time',
927
+ unit: 'us',
928
+ valueType: ValueType.INT
929
+ };
930
+ export const PUBLIC_EXECUTOR_SIMULATION_BYTECODE_SIZE = {
931
+ name: 'aztec.public_executor.simulation_bytecode_size',
932
+ description: 'Size of bytecode being executed',
933
+ unit: 'By',
934
+ valueType: ValueType.INT
935
+ };
936
+ export const PROVING_ORCHESTRATOR_BASE_ROLLUP_INPUTS_DURATION = {
937
+ name: 'aztec.proving_orchestrator.base_rollup.inputs_duration',
938
+ description: 'Duration to build base rollup inputs',
939
+ unit: 'ms',
940
+ valueType: ValueType.INT
941
+ };
942
+ export const PROVING_QUEUE_JOB_SIZE = {
943
+ name: 'aztec.proving_queue.job_size',
944
+ description: 'Size of proving jobs',
945
+ unit: 'By',
946
+ valueType: ValueType.INT
947
+ };
948
+ export const PROVING_QUEUE_SIZE = {
949
+ name: 'aztec.proving_queue.size',
950
+ description: 'Number of jobs in the proving queue',
951
+ valueType: ValueType.INT
952
+ };
953
+ export const PROVING_QUEUE_TOTAL_JOBS = {
954
+ name: 'aztec.proving_queue.enqueued_jobs_count',
955
+ description: 'Total number of jobs enqueued',
956
+ valueType: ValueType.INT
957
+ };
958
+ export const PROVING_QUEUE_CACHED_JOBS = {
959
+ name: 'aztec.proving_queue.cached_jobs_count',
960
+ description: 'Number of cached proving jobs',
961
+ valueType: ValueType.INT
962
+ };
963
+ export const PROVING_QUEUE_ACTIVE_JOBS = {
964
+ name: 'aztec.proving_queue.active_jobs_count',
965
+ description: 'Number of active proving jobs',
966
+ valueType: ValueType.INT
967
+ };
968
+ export const PROVING_QUEUE_RESOLVED_JOBS = {
969
+ name: 'aztec.proving_queue.resolved_jobs_count',
970
+ description: 'Number of resolved proving jobs',
971
+ valueType: ValueType.INT
972
+ };
973
+ export const PROVING_QUEUE_REJECTED_JOBS = {
974
+ name: 'aztec.proving_queue.rejected_jobs_count',
975
+ description: 'Number of rejected proving jobs',
976
+ valueType: ValueType.INT
977
+ };
978
+ export const PROVING_QUEUE_RETRIED_JOBS = {
979
+ name: 'aztec.proving_queue.retried_jobs_count',
980
+ description: 'Number of retried proving jobs',
981
+ valueType: ValueType.INT
982
+ };
983
+ export const PROVING_QUEUE_TIMED_OUT_JOBS = {
984
+ name: 'aztec.proving_queue.timed_out_jobs_count',
985
+ description: 'Number of timed out proving jobs',
986
+ valueType: ValueType.INT
987
+ };
988
+ export const PROVING_QUEUE_JOB_WAIT = {
989
+ name: 'aztec.proving_queue.job_wait',
990
+ description: 'Records how long a job sits in the queue',
991
+ unit: 'ms',
992
+ valueType: ValueType.INT
993
+ };
994
+ export const PROVING_QUEUE_JOB_DURATION = {
995
+ name: 'aztec.proving_queue.job_duration',
996
+ description: 'Records how long a job takes to complete',
997
+ unit: 'ms',
998
+ valueType: ValueType.INT
999
+ };
1000
+ export const PROVING_QUEUE_DB_NUM_ITEMS = {
1001
+ name: 'aztec.proving_queue.db.num_items',
1002
+ description: 'Number of items in the proving queue database',
1003
+ valueType: ValueType.INT
1004
+ };
1005
+ export const PROVING_QUEUE_DB_MAP_SIZE = {
1006
+ name: 'aztec.proving_queue.db.map_size',
1007
+ description: 'Map size of the proving queue database',
1008
+ unit: 'By',
1009
+ valueType: ValueType.INT
1010
+ };
1011
+ export const PROVING_QUEUE_DB_USED_SIZE = {
1012
+ name: 'aztec.proving_queue.db.used_size',
1013
+ description: 'Used size of the proving queue database',
1014
+ unit: 'By',
1015
+ valueType: ValueType.INT
1016
+ };
1017
+ export const PROVING_AGENT_IDLE = {
1018
+ name: 'aztec.proving_queue.agent.idle',
1019
+ description: 'Records how long an agent was idle',
1020
+ unit: 's',
1021
+ valueType: ValueType.DOUBLE
1022
+ };
1023
+ export const PROVER_NODE_EXECUTION_DURATION = {
1024
+ name: 'aztec.prover_node.execution.duration',
1025
+ description: 'Duration of execution of an epoch by the prover',
1026
+ unit: 'ms',
1027
+ valueType: ValueType.INT
1028
+ };
1029
+ export const PROVER_NODE_JOB_DURATION = {
1030
+ name: 'aztec.prover_node.job_duration',
1031
+ description: 'Duration of proving job',
1032
+ unit: 's',
1033
+ valueType: ValueType.DOUBLE
1034
+ };
1035
+ export const PROVER_NODE_JOB_CHECKPOINTS = {
1036
+ name: 'aztec.prover_node.job_checkpoints',
1037
+ description: 'Number of checkpoints in a proven epoch',
1038
+ valueType: ValueType.INT
1039
+ };
1040
+ export const PROVER_NODE_JOB_BLOCKS = {
1041
+ name: 'aztec.prover_node.job_blocks',
1042
+ description: 'Number of blocks in a proven epoch',
1043
+ valueType: ValueType.INT
1044
+ };
1045
+ export const PROVER_NODE_JOB_TRANSACTIONS = {
1046
+ name: 'aztec.prover_node.job_transactions',
1047
+ description: 'Number of transactions in a proven epoch',
1048
+ valueType: ValueType.INT
1049
+ };
1050
+ export const PROVER_NODE_REWARDS_TOTAL = {
1051
+ name: 'aztec.prover_node.rewards_total',
1052
+ description: 'The rewards earned (total)',
1053
+ valueType: ValueType.DOUBLE
1054
+ };
1055
+ export const PROVER_NODE_REWARDS_PER_EPOCH = {
1056
+ name: 'aztec.prover_node.rewards_per_epoch',
1057
+ description: 'The rewards earned',
1058
+ valueType: ValueType.DOUBLE
1059
+ };
1060
+ export const WORLD_STATE_FORK_DURATION = {
1061
+ name: 'aztec.world_state.fork.duration',
1062
+ description: 'Duration to fork world state',
1063
+ unit: 'ms',
1064
+ valueType: ValueType.INT
1065
+ };
1066
+ export const WORLD_STATE_SYNC_DURATION = {
1067
+ name: 'aztec.world_state.sync.duration',
1068
+ description: 'Duration to sync world state',
1069
+ unit: 'ms',
1070
+ valueType: ValueType.INT
1071
+ };
1072
+ export const WORLD_STATE_MERKLE_TREE_SIZE = {
1073
+ name: 'aztec.world_state.merkle_tree_size',
1074
+ description: 'Size of the merkle tree',
1075
+ valueType: ValueType.INT
1076
+ };
1077
+ export const WORLD_STATE_DB_SIZE = {
1078
+ name: 'aztec.world_state.db_size',
1079
+ description: 'Size of the world state database',
1080
+ unit: 'By',
1081
+ valueType: ValueType.INT
1082
+ };
1083
+ export const WORLD_STATE_DB_MAP_SIZE = {
1084
+ name: 'aztec.world_state.db_map_size',
1085
+ description: 'The current configured map size for each merkle tree',
1086
+ unit: 'By',
1087
+ valueType: ValueType.INT
1088
+ };
1089
+ export const WORLD_STATE_DB_PHYSICAL_SIZE = {
1090
+ name: 'aztec.world_state.db_physical_size',
1091
+ description: 'The current physical disk space used for each database',
1092
+ unit: 'By',
1093
+ valueType: ValueType.INT
1094
+ };
1095
+ export const WORLD_STATE_TREE_SIZE = {
1096
+ name: 'aztec.world_state.tree_size',
1097
+ description: 'The current number of leaves in each merkle tree',
1098
+ valueType: ValueType.INT
1099
+ };
1100
+ export const WORLD_STATE_UNFINALIZED_HEIGHT = {
1101
+ name: 'aztec.world_state.unfinalized_height',
1102
+ description: 'The unfinalized block height of each merkle tree',
1103
+ valueType: ValueType.INT
1104
+ };
1105
+ export const WORLD_STATE_FINALIZED_HEIGHT = {
1106
+ name: 'aztec.world_state.finalized_height',
1107
+ description: 'The finalized block height of each merkle tree',
1108
+ valueType: ValueType.INT
1109
+ };
1110
+ export const WORLD_STATE_OLDEST_BLOCK = {
1111
+ name: 'aztec.world_state.oldest_block',
1112
+ description: 'The oldest historical block of each merkle tree',
1113
+ valueType: ValueType.INT
1114
+ };
1115
+ export const WORLD_STATE_DB_USED_SIZE = {
1116
+ name: 'aztec.world_state.db_used_size',
1117
+ description: 'The current used database size for each db of each merkle tree',
1118
+ unit: 'By',
1119
+ valueType: ValueType.INT
1120
+ };
1121
+ export const WORLD_STATE_DB_NUM_ITEMS = {
1122
+ name: 'aztec.world_state.db_num_items',
1123
+ description: 'The current number of items in each database of each merkle tree',
1124
+ valueType: ValueType.INT
1125
+ };
1126
+ export const WORLD_STATE_REQUEST_TIME = {
1127
+ name: 'aztec.world_state.request_time',
1128
+ description: 'The round trip time of world state requests',
1129
+ unit: 'us',
1130
+ valueType: ValueType.INT
1131
+ };
1132
+ export const WORLD_STATE_CRITICAL_ERROR_COUNT = {
1133
+ name: 'aztec.world_state.critical_error_count',
1134
+ description: 'The number of critical errors in the world state',
1135
+ valueType: ValueType.INT
1136
+ };
1137
+ export const PROOF_VERIFIER_COUNT = {
1138
+ name: 'aztec.proof_verifier.count',
1139
+ description: 'Number of proofs verified',
1140
+ valueType: ValueType.INT
1141
+ };
1142
+ export const VALIDATOR_RE_EXECUTION_TIME = {
1143
+ name: 'aztec.validator.re_execution_time',
1144
+ description: 'The time taken to re-execute a transaction',
1145
+ unit: 'ms',
1146
+ valueType: ValueType.INT
1147
+ };
1148
+ export const VALIDATOR_RE_EXECUTION_MANA = {
1149
+ name: 'aztec.validator.re_execution_mana',
1150
+ description: 'The mana consumed by blocks',
1151
+ unit: 'Mmana',
1152
+ valueType: ValueType.DOUBLE
1153
+ };
1154
+ export const VALIDATOR_RE_EXECUTION_TX_COUNT = {
1155
+ name: 'aztec.validator.re_execution_tx_count',
1156
+ description: 'The number of txs in a block proposal',
1157
+ unit: 'tx',
1158
+ valueType: ValueType.INT
1159
+ };
1160
+ export const VALIDATOR_FAILED_REEXECUTION_COUNT = {
1161
+ name: 'aztec.validator.failed_reexecution_count',
1162
+ description: 'The number of failed re-executions',
1163
+ valueType: ValueType.INT
1164
+ };
1165
+ export const VALIDATOR_ATTESTATION_SUCCESS_COUNT = {
1166
+ name: 'aztec.validator.attestation_success_count',
1167
+ description: 'The number of successful attestations',
1168
+ valueType: ValueType.INT
1169
+ };
1170
+ export const VALIDATOR_ATTESTATION_FAILED_BAD_PROPOSAL_COUNT = {
1171
+ name: 'aztec.validator.attestation_failed_bad_proposal_count',
1172
+ description: 'The number of failed attestations due to invalid block proposals',
1173
+ valueType: ValueType.INT
1174
+ };
1175
+ export const VALIDATOR_ATTESTATION_FAILED_NODE_ISSUE_COUNT = {
1176
+ name: 'aztec.validator.attestation_failed_node_issue_count',
1177
+ description: 'The number of failed attestations due to node issues (timeout, missing data, etc.)',
1178
+ valueType: ValueType.INT
1179
+ };
1180
+ export const NODEJS_EVENT_LOOP_DELAY_MIN = {
1181
+ name: 'nodejs.eventloop.delay.min',
1182
+ description: 'Minimum delay of the event loop',
1183
+ unit: 'ns',
1184
+ valueType: ValueType.INT
1185
+ };
1186
+ export const NODEJS_EVENT_LOOP_DELAY_MEAN = {
1187
+ name: 'nodejs.eventloop.delay.mean',
1188
+ description: 'Mean delay of the event loop',
1189
+ unit: 'ns',
1190
+ valueType: ValueType.INT
1191
+ };
1192
+ export const NODEJS_EVENT_LOOP_DELAY_MAX = {
1193
+ name: 'nodejs.eventloop.delay.max',
1194
+ description: 'Max delay of the event loop',
1195
+ unit: 'ns',
1196
+ valueType: ValueType.INT
1197
+ };
1198
+ export const NODEJS_EVENT_LOOP_DELAY_STDDEV = {
1199
+ name: 'nodejs.eventloop.delay.stddev',
1200
+ description: 'Stddev delay of the event loop',
1201
+ unit: 'ns',
1202
+ valueType: ValueType.INT
1203
+ };
1204
+ export const NODEJS_EVENT_LOOP_DELAY_P50 = {
1205
+ name: 'nodejs.eventloop.delay.p50',
1206
+ description: 'P50 delay of the event loop',
1207
+ unit: 'ns',
1208
+ valueType: ValueType.INT
1209
+ };
1210
+ export const NODEJS_EVENT_LOOP_DELAY_P90 = {
1211
+ name: 'nodejs.eventloop.delay.p90',
1212
+ description: 'P90 delay of the event loop',
1213
+ unit: 'ns',
1214
+ valueType: ValueType.INT
1215
+ };
1216
+ export const NODEJS_EVENT_LOOP_DELAY_P99 = {
1217
+ name: 'nodejs.eventloop.delay.p99',
1218
+ description: 'P99 delay of the event loop',
1219
+ unit: 'ns',
1220
+ valueType: ValueType.INT
1221
+ };
1222
+ export const NODEJS_EVENT_LOOP_UTILIZATION = {
1223
+ name: 'nodejs.eventloop.utilization',
1224
+ description: 'How busy is the event loop',
1225
+ valueType: ValueType.DOUBLE
1226
+ };
1227
+ export const NODEJS_EVENT_LOOP_TIME = {
1228
+ name: 'nodejs.eventloop.time',
1229
+ description: 'How much time the event loop has spent in a given state',
1230
+ unit: 'ms',
1231
+ valueType: ValueType.INT
1232
+ };
1233
+ export const NODEJS_MEMORY_HEAP_USAGE = {
1234
+ name: 'nodejs.memory.v8_heap.usage',
1235
+ description: 'Memory used by the V8 heap',
1236
+ unit: 'By'
1237
+ };
1238
+ export const NODEJS_MEMORY_HEAP_TOTAL = {
1239
+ name: 'nodejs.memory.v8_heap.total',
1240
+ description: 'The max size the V8 heap can grow to',
1241
+ unit: 'By'
1242
+ };
1243
+ export const NODEJS_MEMORY_NATIVE_USAGE = {
1244
+ name: 'nodejs.memory.native.usage',
1245
+ description: 'Memory allocated for native C++ objects',
1246
+ unit: 'By'
1247
+ };
1248
+ export const NODEJS_MEMORY_BUFFER_USAGE = {
1249
+ name: 'nodejs.memory.array_buffer.usage',
1250
+ description: 'Memory allocated for buffers (includes native memory used)',
1251
+ unit: 'By'
1252
+ };
1253
+ export const TX_PROVIDER_TXS_FROM_PROPOSALS_COUNT = {
1254
+ name: 'aztec.tx_collector.txs_from_proposal_count',
1255
+ description: 'The number of txs taken from block proposals',
1256
+ valueType: ValueType.INT
1257
+ };
1258
+ export const TX_PROVIDER_TXS_FROM_MEMPOOL_COUNT = {
1259
+ name: 'aztec.tx_collector.txs_from_mempool_count',
1260
+ description: 'The number of txs taken from the local mempool',
1261
+ valueType: ValueType.INT
1262
+ };
1263
+ export const TX_PROVIDER_TXS_FROM_P2P_COUNT = {
1264
+ name: 'aztec.tx_collector.txs_from_p2p_count',
1265
+ description: 'The number of txs taken from the p2p network',
1266
+ valueType: ValueType.INT
1267
+ };
1268
+ export const TX_PROVIDER_MISSING_TXS_COUNT = {
1269
+ name: 'aztec.tx_collector.missing_txs_count',
1270
+ description: 'The number of txs not found anywhere',
1271
+ valueType: ValueType.INT
1272
+ };
1273
+ export const TX_PROVIDER_P2P_TXS_REQUESTED_FRACTION = {
1274
+ name: 'aztec.tx_collector.txs_requested_fraction',
1275
+ description: 'The fraction of transaction requested from peers',
1276
+ valueType: ValueType.DOUBLE
1277
+ };
1278
+ export const TX_PROVIDER_P2P_TXS_REQUEST_DELAY = {
1279
+ name: 'aztec.tx_collector.txs_requested_delay',
1280
+ description: 'The time it took to request missing transactions from p2p',
1281
+ unit: 'ms',
1282
+ valueType: ValueType.INT
1283
+ };
1284
+ export const TX_COLLECTOR_COUNT = {
1285
+ name: 'aztec.tx_collector.tx_count',
1286
+ description: 'The number of txs collected',
1287
+ valueType: ValueType.INT
1288
+ };
1289
+ export const TX_COLLECTOR_DURATION_PER_REQUEST = {
1290
+ name: 'aztec.tx_collector.duration_per_request',
1291
+ description: 'Total duration of an individual tx collection request',
1292
+ unit: 'ms',
1293
+ valueType: ValueType.INT
1294
+ };
1295
+ export const TX_COLLECTOR_DURATION_PER_TX = {
1296
+ name: 'aztec.tx_collector.duration_per_tx',
1297
+ description: 'Average duration per tx of an individual tx collection request',
1298
+ unit: 'ms',
1299
+ valueType: ValueType.INT
1300
+ };
1301
+ export const TX_FILE_STORE_UPLOADS_SUCCESS = {
1302
+ name: 'aztec.p2p.tx_file_store.uploads_success',
1303
+ description: 'Number of successful tx uploads to file storage',
1304
+ valueType: ValueType.INT
1305
+ };
1306
+ export const TX_FILE_STORE_UPLOADS_FAILED = {
1307
+ name: 'aztec.p2p.tx_file_store.uploads_failed',
1308
+ description: 'Number of failed tx uploads to file storage',
1309
+ valueType: ValueType.INT
1310
+ };
1311
+ export const TX_FILE_STORE_UPLOADS_SKIPPED = {
1312
+ name: 'aztec.p2p.tx_file_store.uploads_skipped',
1313
+ description: 'Number of tx uploads skipped (duplicates)',
1314
+ valueType: ValueType.INT
1315
+ };
1316
+ export const TX_FILE_STORE_UPLOAD_DURATION = {
1317
+ name: 'aztec.p2p.tx_file_store.upload_duration',
1318
+ description: 'Duration to upload a tx to file storage',
1319
+ unit: 'ms',
1320
+ valueType: ValueType.INT
1321
+ };
1322
+ export const TX_FILE_STORE_QUEUE_SIZE = {
1323
+ name: 'aztec.p2p.tx_file_store.queue_size',
1324
+ description: 'Number of txs pending upload',
1325
+ valueType: ValueType.INT
1326
+ };
1327
+ export const TX_FILE_STORE_DOWNLOADS_SUCCESS = {
1328
+ name: 'aztec.p2p.tx_file_store.downloads_success',
1329
+ description: 'Number of successful tx downloads from file storage',
1330
+ valueType: ValueType.INT
1331
+ };
1332
+ export const TX_FILE_STORE_DOWNLOADS_FAILED = {
1333
+ name: 'aztec.p2p.tx_file_store.downloads_failed',
1334
+ description: 'Number of failed tx downloads from file storage',
1335
+ valueType: ValueType.INT
1336
+ };
1337
+ export const TX_FILE_STORE_DOWNLOAD_DURATION = {
1338
+ name: 'aztec.p2p.tx_file_store.download_duration',
1339
+ description: 'Duration to download a tx from file storage',
1340
+ unit: 'ms',
1341
+ valueType: ValueType.INT
1342
+ };
1343
+ export const TX_FILE_STORE_DOWNLOAD_SIZE = {
1344
+ name: 'aztec.p2p.tx_file_store.download_size',
1345
+ description: 'Size of a downloaded tx from file storage',
1346
+ unit: 'By',
1347
+ valueType: ValueType.INT
1348
+ };
1349
+ export const IVC_VERIFIER_TIME = {
1350
+ name: 'aztec.ivc_verifier.time',
1351
+ description: 'Duration to verify chonk proofs',
1352
+ unit: 'ms',
1353
+ valueType: ValueType.INT
1354
+ };
1355
+ export const IVC_VERIFIER_TOTAL_TIME = {
1356
+ name: 'aztec.ivc_verifier.total_time',
1357
+ description: 'Total duration to verify chonk proofs, including serde',
1358
+ unit: 'ms',
1359
+ valueType: ValueType.INT
1360
+ };
1361
+ export const IVC_VERIFIER_FAILURE_COUNT = {
1362
+ name: 'aztec.ivc_verifier.failure_count',
1363
+ description: 'Count of failed IVC proof verifications',
1364
+ valueType: ValueType.INT
1365
+ };
1366
+ export const IVC_VERIFIER_AGG_DURATION_MIN = {
1367
+ name: 'aztec.ivc_verifier.agg_duration_min',
1368
+ description: 'MIN ivc verification',
1369
+ unit: 'ms',
1370
+ valueType: ValueType.DOUBLE
1371
+ };
1372
+ export const IVC_VERIFIER_AGG_DURATION_MAX = {
1373
+ name: 'aztec.ivc_verifier.agg_duration_max',
1374
+ description: 'MAX ivc verification',
1375
+ unit: 'ms',
1376
+ valueType: ValueType.DOUBLE
1377
+ };
1378
+ export const IVC_VERIFIER_AGG_DURATION_P50 = {
1379
+ name: 'aztec.ivc_verifier.agg_duration_p50',
1380
+ description: 'P50 ivc verification',
1381
+ unit: 'ms',
1382
+ valueType: ValueType.DOUBLE
1383
+ };
1384
+ export const IVC_VERIFIER_AGG_DURATION_P90 = {
1385
+ name: 'aztec.ivc_verifier.agg_duration_p90',
1386
+ description: 'P90 ivc verification',
1387
+ unit: 'ms',
1388
+ valueType: ValueType.DOUBLE
1389
+ };
1390
+ export const IVC_VERIFIER_AGG_DURATION_AVG = {
1391
+ name: 'aztec.ivc_verifier.agg_duration_avg',
1392
+ description: 'AVG ivc verification',
1393
+ unit: 'ms',
1394
+ valueType: ValueType.DOUBLE
1395
+ };
1396
+ // HA Signer metrics
1397
+ export const HA_SIGNER_SIGNING_DURATION = {
1398
+ name: 'aztec.ha_signer.signing_duration',
1399
+ description: 'End-to-end duration for signing with HA protection (lock + sign + record)',
1400
+ unit: 'ms',
1401
+ valueType: ValueType.INT
1402
+ };
1403
+ export const HA_SIGNER_SIGNING_SUCCESS_COUNT = {
1404
+ name: 'aztec.ha_signer.signing_success_count',
1405
+ description: 'Count of successful signing operations',
1406
+ valueType: ValueType.INT
1407
+ };
1408
+ export const HA_SIGNER_DUTY_ALREADY_SIGNED_COUNT = {
1409
+ name: 'aztec.ha_signer.duty_already_signed_count',
1410
+ description: 'Count of DutyAlreadySignedError (expected in HA; another node signed first)',
1411
+ valueType: ValueType.INT
1412
+ };
1413
+ export const HA_SIGNER_SLASHING_PROTECTION_COUNT = {
1414
+ name: 'aztec.ha_signer.slashing_protection_count',
1415
+ description: 'Count of SlashingProtectionError (attempted to sign different data)',
1416
+ valueType: ValueType.INT
1417
+ };
1418
+ export const HA_SIGNER_SIGNING_ERROR_COUNT = {
1419
+ name: 'aztec.ha_signer.signing_error_count',
1420
+ description: 'Count of signing function failures (lock deleted for retry)',
1421
+ valueType: ValueType.INT
1422
+ };
1423
+ export const HA_SIGNER_LOCK_ACQUIRED_COUNT = {
1424
+ name: 'aztec.ha_signer.lock_acquired_count',
1425
+ description: 'Count of lock acquisitions (new lock acquired vs existing record found)',
1426
+ valueType: ValueType.INT
1427
+ };
1428
+ export const HA_SIGNER_CLEANUP_STUCK_DUTIES_COUNT = {
1429
+ name: 'aztec.ha_signer.cleanup_stuck_duties_count',
1430
+ description: 'Number of stuck duties cleaned up per cleanup run',
1431
+ valueType: ValueType.INT
1432
+ };
1433
+ export const HA_SIGNER_CLEANUP_OLD_DUTIES_COUNT = {
1434
+ name: 'aztec.ha_signer.cleanup_old_duties_count',
1435
+ description: 'Number of old duties cleaned up',
1436
+ valueType: ValueType.INT
1437
+ };
1438
+ export const HA_SIGNER_CLEANUP_OUTDATED_ROLLUP_DUTIES_COUNT = {
1439
+ name: 'aztec.ha_signer.cleanup_outdated_rollup_duties_count',
1440
+ description: 'Number of duties cleaned due to rollup upgrade',
1441
+ valueType: ValueType.INT
1442
+ };