@aztec/telemetry-client 4.0.0-nightly.20260108 → 4.0.0-nightly.20260111

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.
package/dest/metrics.js CHANGED
@@ -4,227 +4,1242 @@
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 DB_NUM_ITEMS = {
136
+ name: 'aztec.db.num_items',
137
+ description: 'LMDB Num Items',
138
+ valueType: ValueType.INT
139
+ };
140
+ export const DB_MAP_SIZE = {
141
+ name: 'aztec.db.map_size',
142
+ description: 'LMDB Map Size',
143
+ unit: 'By',
144
+ valueType: ValueType.INT
145
+ };
146
+ export const DB_PHYSICAL_FILE_SIZE = {
147
+ name: 'aztec.db.physical_file_size',
148
+ description: 'LMDB Physical File Size',
149
+ unit: 'By',
150
+ valueType: ValueType.INT
151
+ };
152
+ export const DB_USED_SIZE = {
153
+ name: 'aztec.db.used_size',
154
+ description: 'LMDB Used Size',
155
+ unit: 'By',
156
+ valueType: ValueType.INT
157
+ };
158
+ export const MEMPOOL_ATTESTATIONS_COUNT = {
159
+ name: 'aztec.mempool.attestations_count',
160
+ description: 'The current number of attestations in the mempool',
161
+ valueType: ValueType.INT
162
+ };
163
+ export const MEMPOOL_ATTESTATIONS_SIZE = {
164
+ name: 'aztec.mempool.attestations_size',
165
+ description: 'The size of attestations in the mempool',
166
+ unit: 'By',
167
+ valueType: ValueType.INT
168
+ };
169
+ export const MEMPOOL_ATTESTATIONS_ADDED_COUNT = {
170
+ name: 'aztec.mempool.attestations_added_count',
171
+ description: 'The number of attestations added to the mempool',
172
+ valueType: ValueType.INT
173
+ };
174
+ export const MEMPOOL_ATTESTATIONS_MINED_DELAY = {
175
+ name: 'aztec.mempool.attestations_mined_delay',
176
+ description: 'Delay between attestation added and evicted from the mempool',
177
+ unit: 'ms',
178
+ valueType: ValueType.INT
179
+ };
180
+ export const ARCHIVER_L1_BLOCK_HEIGHT = {
181
+ name: 'aztec.archiver.l1_block_height',
182
+ description: 'The height of the latest L1 block processed by the archiver',
183
+ valueType: ValueType.INT
184
+ };
185
+ export const ARCHIVER_BLOCK_HEIGHT = {
186
+ name: 'aztec.archiver.block_height',
187
+ description: 'The height of the latest block processed by the archiver',
188
+ valueType: ValueType.INT
189
+ };
190
+ export const ARCHIVER_ROLLUP_PROOF_DELAY = {
191
+ name: 'aztec.archiver.rollup_proof_delay',
192
+ description: 'Time after a block is submitted until its proof is published',
193
+ unit: 'ms',
194
+ valueType: ValueType.INT
195
+ };
196
+ export const ARCHIVER_ROLLUP_PROOF_COUNT = {
197
+ name: 'aztec.archiver.rollup_proof_count',
198
+ description: 'Number of proofs submitted',
199
+ valueType: ValueType.INT
200
+ };
201
+ export const ARCHIVER_MANA_PER_BLOCK = {
202
+ name: 'aztec.archiver.block.mana_count',
203
+ description: 'The mana consumed by blocks',
204
+ unit: 'Mmana',
205
+ valueType: ValueType.DOUBLE
206
+ };
207
+ export const ARCHIVER_TXS_PER_BLOCK = {
208
+ name: 'aztec.archiver.block.tx_count',
209
+ description: 'The block tx count',
210
+ unit: 'tx',
211
+ valueType: ValueType.INT
212
+ };
213
+ export const ARCHIVER_SYNC_PER_BLOCK = {
214
+ name: 'aztec.archiver.block.sync_per_item_duration',
215
+ description: 'Duration to sync a block',
216
+ unit: 'ms',
217
+ valueType: ValueType.INT
218
+ };
219
+ export const ARCHIVER_SYNC_BLOCK_COUNT = {
220
+ name: 'aztec.archiver.block.sync_count',
221
+ description: 'Number of blocks synced from L1',
222
+ valueType: ValueType.INT
223
+ };
224
+ export const ARCHIVER_SYNC_PER_MESSAGE = {
225
+ name: 'aztec.archiver.message.sync_per_item_duration',
226
+ description: 'Duration to sync a message',
227
+ unit: 'ms',
228
+ valueType: ValueType.INT
229
+ };
230
+ export const ARCHIVER_SYNC_MESSAGE_COUNT = {
231
+ name: 'aztec.archiver.message.sync_count',
232
+ description: 'Number of L1 to L2 messages synced',
233
+ valueType: ValueType.INT
234
+ };
235
+ export const ARCHIVER_PRUNE_DURATION = {
236
+ name: 'aztec.archiver.prune_duration',
237
+ description: 'Duration of a prune operation',
238
+ unit: 'ms',
239
+ valueType: ValueType.INT
240
+ };
241
+ export const ARCHIVER_PRUNE_COUNT = {
242
+ name: 'aztec.archiver.prune_count',
243
+ description: 'Number of prunes detected',
244
+ valueType: ValueType.INT
245
+ };
246
+ export const ARCHIVER_TOTAL_TXS = {
247
+ name: 'aztec.archiver.tx_count',
248
+ description: 'The total number of transactions',
249
+ valueType: ValueType.INT
250
+ };
251
+ export const ARCHIVER_BLOCK_PROPOSAL_TX_TARGET_COUNT = {
252
+ name: 'aztec.archiver.block_proposal_tx_target_count',
253
+ description: 'Number of block proposals by tx target',
254
+ valueType: ValueType.INT
255
+ };
256
+ export const NODE_RECEIVE_TX_DURATION = {
257
+ name: 'aztec.node.receive_tx.duration',
258
+ description: 'The duration of the receiveTx method',
259
+ unit: 'ms',
260
+ valueType: ValueType.INT
261
+ };
262
+ export const NODE_RECEIVE_TX_COUNT = {
263
+ name: 'aztec.node.receive_tx.count',
264
+ description: 'Number of transactions received',
265
+ valueType: ValueType.INT
266
+ };
267
+ export const NODE_SNAPSHOT_DURATION = {
268
+ name: 'aztec.node.snapshot_duration',
269
+ description: 'How long taking a snapshot takes',
270
+ unit: 'ms',
271
+ valueType: ValueType.INT
272
+ };
273
+ export const NODE_SNAPSHOT_ERROR_COUNT = {
274
+ name: 'aztec.node.snapshot_error_count',
275
+ description: 'How many snapshot errors have happened',
276
+ valueType: ValueType.INT
277
+ };
278
+ export const SEQUENCER_STATE_TRANSITION_BUFFER_DURATION = {
279
+ name: 'aztec.sequencer.state_transition_buffer.duration',
280
+ description: 'The time difference between when the sequencer needed to transition to a new state and when it actually did',
281
+ unit: 'ms',
282
+ valueType: ValueType.INT
283
+ };
284
+ export const SEQUENCER_BLOCK_BUILD_DURATION = {
285
+ name: 'aztec.sequencer.block.build_duration',
286
+ description: 'Duration to build a block',
287
+ unit: 'ms',
288
+ valueType: ValueType.INT
289
+ };
290
+ export const SEQUENCER_BLOCK_BUILD_MANA_PER_SECOND = {
291
+ name: 'aztec.sequencer.block.build_mana_per_second',
292
+ description: 'Mana per second when building a block',
293
+ unit: 'mana/s',
294
+ valueType: ValueType.INT
295
+ };
296
+ export const SEQUENCER_BLOCK_COUNT = {
297
+ name: 'aztec.sequencer.block.count',
298
+ description: 'Number of blocks built by this sequencer',
299
+ valueType: ValueType.INT
300
+ };
301
+ export const SEQUENCER_CURRENT_BLOCK_REWARDS = {
302
+ name: 'aztec.sequencer.current_block_rewards',
303
+ description: 'The rewards earned',
304
+ valueType: ValueType.DOUBLE
305
+ };
306
+ export const SEQUENCER_SLOT_COUNT = {
307
+ name: 'aztec.sequencer.slot.total_count',
308
+ description: 'The number of slots this sequencer was selected for',
309
+ valueType: ValueType.INT
310
+ };
311
+ export const SEQUENCER_FILLED_SLOT_COUNT = {
312
+ name: 'aztec.sequencer.slot.filled_count',
313
+ description: 'The number of slots this sequencer has filled',
314
+ valueType: ValueType.INT
315
+ };
316
+ export const SEQUENCER_BLOCK_ATTESTATION_DELAY = {
317
+ name: 'aztec.sequencer.block.attestation_delay',
318
+ description: 'The time difference between block proposal and minimal attestation count reached',
319
+ unit: 'ms',
320
+ valueType: ValueType.INT
321
+ };
322
+ export const SEQUENCER_COLLECTED_ATTESTATIONS_COUNT = {
323
+ name: 'aztec.sequencer.attestations.collected_count',
324
+ description: 'The number of attestations collected for a block proposal',
325
+ valueType: ValueType.INT
326
+ };
327
+ export const SEQUENCER_REQUIRED_ATTESTATIONS_COUNT = {
328
+ name: 'aztec.sequencer.attestations.required_count',
329
+ description: 'The minimum number of attestations required to publish a block',
330
+ valueType: ValueType.INT
331
+ };
332
+ export const SEQUENCER_COLLECT_ATTESTATIONS_DURATION = {
333
+ name: 'aztec.sequencer.attestations.collect_duration',
334
+ description: 'The time spent collecting attestations from committee members',
335
+ unit: 'ms',
336
+ valueType: ValueType.INT
337
+ };
338
+ export const SEQUENCER_COLLECT_ATTESTATIONS_TIME_ALLOWANCE = {
339
+ name: 'aztec.sequencer.attestations.collect_allowance',
340
+ description: 'Maximum amount of time to collect attestations',
341
+ unit: 'ms',
342
+ valueType: ValueType.INT
343
+ };
344
+ export const SEQUENCER_BLOCK_PROPOSAL_FAILED_COUNT = {
345
+ name: 'aztec.sequencer.block.proposal_failed_count',
346
+ description: 'The number of times block proposal failed (including validation builds)',
347
+ valueType: ValueType.INT
348
+ };
349
+ export const SEQUENCER_BLOCK_PROPOSAL_SUCCESS_COUNT = {
350
+ name: 'aztec.sequencer.block.proposal_success_count',
351
+ description: 'The number of times block proposal succeeded (including validation builds)',
352
+ valueType: ValueType.INT
353
+ };
354
+ export const SEQUENCER_BLOCK_PROPOSAL_PRECHECK_FAILED_COUNT = {
355
+ name: 'aztec.sequencer.block.proposal_precheck_failed_count',
356
+ description: 'The number of times block proposal pre-build checks failed',
357
+ valueType: ValueType.INT
358
+ };
359
+ export const SEQUENCER_SLASHING_ATTEMPTS_COUNT = {
360
+ name: 'aztec.sequencer.slashing.attempts_count',
361
+ description: 'The number of slashing action attempts',
362
+ valueType: ValueType.INT
363
+ };
364
+ export const SEQUENCER_CHECKPOINT_SUCCESS_COUNT = {
365
+ name: 'aztec.sequencer.checkpoint.success_count',
366
+ description: 'The number of times checkpoint publishing succeeded',
367
+ valueType: ValueType.INT
368
+ };
73
369
  // 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';
370
+ export const FISHERMAN_FEE_ANALYSIS_WOULD_BE_INCLUDED = {
371
+ name: 'aztec.fisherman.fee_analysis.would_be_included',
372
+ description: 'Whether the transaction would have been included in the block',
373
+ valueType: ValueType.INT
374
+ };
375
+ export const FISHERMAN_FEE_ANALYSIS_TIME_BEFORE_BLOCK = {
376
+ name: 'aztec.fisherman.fee_analysis.time_before_block',
377
+ description: 'Time in ms between fee analysis and block being mined',
378
+ unit: 'ms',
379
+ valueType: ValueType.INT
380
+ };
381
+ export const FISHERMAN_FEE_ANALYSIS_PENDING_BLOB_TX_COUNT = {
382
+ name: 'aztec.fisherman.fee_analysis.pending_blob_tx_count',
383
+ description: 'Number of blob transactions seen in the pending block',
384
+ valueType: ValueType.INT
385
+ };
386
+ export const FISHERMAN_FEE_ANALYSIS_INCLUDED_BLOB_TX_COUNT = {
387
+ name: 'aztec.fisherman.fee_analysis.included_blob_tx_count',
388
+ description: 'Number of blob transactions that got included in the mined block',
389
+ valueType: ValueType.INT
390
+ };
391
+ export const FISHERMAN_FEE_ANALYSIS_CALCULATED_PRIORITY_FEE = {
392
+ name: 'aztec.fisherman.fee_analysis.calculated_priority_fee',
393
+ description: 'Priority fee calculated by each strategy',
394
+ unit: 'gwei',
395
+ valueType: ValueType.DOUBLE
396
+ };
397
+ export const FISHERMAN_FEE_ANALYSIS_PRIORITY_FEE_DELTA = {
398
+ name: 'aztec.fisherman.fee_analysis.priority_fee_delta',
399
+ description: 'Difference between our priority fee and minimum included priority fee',
400
+ unit: 'gwei',
401
+ valueType: ValueType.DOUBLE
402
+ };
403
+ export const FISHERMAN_FEE_ANALYSIS_ESTIMATED_COST = {
404
+ name: 'aztec.fisherman.fee_analysis.estimated_cost',
405
+ description: 'Estimated total cost in ETH for the transaction with this strategy',
406
+ unit: 'eth',
407
+ valueType: ValueType.DOUBLE
408
+ };
409
+ export const FISHERMAN_FEE_ANALYSIS_ESTIMATED_OVERPAYMENT = {
410
+ name: 'aztec.fisherman.fee_analysis.estimated_overpayment',
411
+ description: 'Estimated overpayment in ETH vs minimum required for inclusion',
412
+ unit: 'eth',
413
+ valueType: ValueType.DOUBLE
414
+ };
415
+ export const FISHERMAN_FEE_ANALYSIS_MINED_BLOB_TX_PRIORITY_FEE = {
416
+ name: 'aztec.fisherman.fee_analysis.mined_blob_tx_priority_fee',
417
+ description: 'Priority fee per gas for blob transactions in mined blocks',
418
+ unit: 'gwei',
419
+ valueType: ValueType.DOUBLE
420
+ };
421
+ export const FISHERMAN_FEE_ANALYSIS_MINED_BLOB_TX_TOTAL_COST = {
422
+ name: 'aztec.fisherman.fee_analysis.mined_blob_tx_total_cost',
423
+ description: 'Total cost in ETH for blob transactions in mined blocks',
424
+ unit: 'eth',
425
+ valueType: ValueType.DOUBLE
426
+ };
427
+ export const VALIDATOR_INVALID_ATTESTATION_RECEIVED_COUNT = {
428
+ name: 'aztec.validator.invalid_attestation_received_count',
429
+ description: 'Number of invalid attestations received',
430
+ valueType: ValueType.INT
431
+ };
432
+ export const L1_PUBLISHER_GAS_PRICE = {
433
+ name: 'aztec.l1_publisher.gas_price',
434
+ description: 'The gas price used for transactions',
435
+ unit: 'gwei',
436
+ valueType: ValueType.DOUBLE
437
+ };
438
+ export const L1_PUBLISHER_TX_COUNT = {
439
+ name: 'aztec.l1_publisher.tx_count',
440
+ description: 'The number of transactions processed'
441
+ };
442
+ export const L1_PUBLISHER_TX_DURATION = {
443
+ name: 'aztec.l1_publisher.tx_duration',
444
+ description: 'The duration of transaction processing',
445
+ unit: 'ms',
446
+ valueType: ValueType.INT
447
+ };
448
+ export const L1_PUBLISHER_TX_GAS = {
449
+ name: 'aztec.l1_publisher.tx_gas',
450
+ description: 'The gas consumed by transactions',
451
+ unit: 'gas',
452
+ valueType: ValueType.INT
453
+ };
454
+ export const L1_PUBLISHER_TX_CALLDATA_SIZE = {
455
+ name: 'aztec.l1_publisher.tx_calldata_size',
456
+ description: 'The size of the calldata in transactions',
457
+ unit: 'By',
458
+ valueType: ValueType.INT
459
+ };
460
+ export const L1_PUBLISHER_TX_CALLDATA_GAS = {
461
+ name: 'aztec.l1_publisher.tx_calldata_gas',
462
+ description: 'The gas consumed by the calldata in transactions',
463
+ unit: 'gas',
464
+ valueType: ValueType.INT
465
+ };
466
+ export const L1_PUBLISHER_TX_BLOBDATA_GAS_USED = {
467
+ name: 'aztec.l1_publisher.tx_blobdata_gas_used',
468
+ description: 'The amount of blob gas used in transactions',
469
+ unit: 'gas',
470
+ valueType: ValueType.INT
471
+ };
472
+ export const L1_PUBLISHER_TX_BLOBDATA_GAS_COST = {
473
+ name: 'aztec.l1_publisher.tx_blobdata_gas_cost',
474
+ description: 'The gas cost of blobs in transactions',
475
+ unit: 'gwei',
476
+ valueType: ValueType.INT
477
+ };
478
+ export const L1_PUBLISHER_BLOB_COUNT = {
479
+ name: 'aztec.l1_publisher.blob_count',
480
+ description: 'Number of blobs in L1 transactions',
481
+ unit: 'blobs',
482
+ valueType: ValueType.INT
483
+ };
484
+ export const L1_PUBLISHER_BLOB_INCLUSION_BLOCKS = {
485
+ name: 'aztec.l1_publisher.blob_inclusion_blocks',
486
+ description: 'Number of L1 blocks between blob tx submission and inclusion',
487
+ unit: 'blocks',
488
+ valueType: ValueType.INT
489
+ };
490
+ export const L1_PUBLISHER_BLOB_TX_SUCCESS = {
491
+ name: 'aztec.l1_publisher.blob_tx_success',
492
+ description: 'Number of successful L1 transactions with blobs'
493
+ };
494
+ export const L1_PUBLISHER_BLOB_TX_FAILURE = {
495
+ name: 'aztec.l1_publisher.blob_tx_failure',
496
+ description: 'Number of failed L1 transactions with blobs'
497
+ };
498
+ export const L1_PUBLISHER_BALANCE = {
499
+ name: 'aztec.l1_publisher.balance',
500
+ description: 'The balance of the sender address',
501
+ unit: 'eth',
502
+ valueType: ValueType.DOUBLE
503
+ };
504
+ export const L1_PUBLISHER_TX_TOTAL_FEE = {
505
+ name: 'aztec.l1_publisher.tx_total_fee',
506
+ description: 'How much L1 tx costs',
507
+ unit: 'eth',
508
+ valueType: ValueType.DOUBLE
509
+ };
510
+ export const L1_BLOCK_HEIGHT = {
511
+ name: 'aztec.l1.block_height',
512
+ description: 'The current L1 block height',
513
+ valueType: ValueType.INT
514
+ };
515
+ export const L1_BALANCE_ETH = {
516
+ name: 'aztec.l1.balance',
517
+ description: 'ETH balance of an address',
518
+ unit: 'eth',
519
+ valueType: ValueType.DOUBLE
520
+ };
521
+ export const L1_GAS_PRICE_WEI = {
522
+ name: 'aztec.l1.gas_price',
523
+ description: 'Current L1 gas price',
524
+ unit: 'wei',
525
+ valueType: ValueType.INT
526
+ };
527
+ export const L1_BLOB_BASE_FEE_WEI = {
528
+ name: 'aztec.l1.blob_base_fee',
529
+ description: 'Current L1 blob base fee',
530
+ unit: 'wei',
531
+ valueType: ValueType.INT
532
+ };
533
+ export const L1_TX_MINED_DURATION = {
534
+ name: 'aztec.l1_tx.mined_duration',
535
+ description: 'Duration from L1 tx submission to mining',
536
+ unit: 'ms',
537
+ valueType: ValueType.INT
538
+ };
539
+ export const L1_TX_MINED_COUNT = {
540
+ name: 'aztec.l1_tx.mined_count',
541
+ description: 'Number of L1 transactions mined',
542
+ valueType: ValueType.INT
543
+ };
544
+ export const L1_TX_REVERTED_COUNT = {
545
+ name: 'aztec.l1_tx.reverted_count',
546
+ description: 'Number of L1 transactions reverted',
547
+ valueType: ValueType.INT
548
+ };
549
+ export const L1_TX_CANCELLED_COUNT = {
550
+ name: 'aztec.l1_tx.cancelled_count',
551
+ description: 'Number of L1 transactions cancelled',
552
+ valueType: ValueType.INT
553
+ };
554
+ export const L1_TX_NOT_MINED_COUNT = {
555
+ name: 'aztec.l1_tx.not_mined_count',
556
+ description: 'Number of L1 transactions not mined',
557
+ valueType: ValueType.INT
558
+ };
559
+ export const L1_TX_ATTEMPTS_UNTIL_MINED = {
560
+ name: 'aztec.l1_tx.attempts_until_mined',
561
+ description: 'Number of attempts until L1 tx was mined',
562
+ valueType: ValueType.INT
563
+ };
564
+ export const L1_TX_MAX_PRIORITY_FEE = {
565
+ name: 'aztec.l1_tx.max_priority_fee',
566
+ description: 'Max priority fee used for L1 tx',
567
+ unit: 'gwei',
568
+ valueType: ValueType.DOUBLE
569
+ };
570
+ export const L1_TX_MAX_FEE = {
571
+ name: 'aztec.l1_tx.max_fee',
572
+ description: 'Max fee used for L1 tx',
573
+ unit: 'gwei',
574
+ valueType: ValueType.DOUBLE
575
+ };
576
+ export const L1_TX_BLOB_FEE = {
577
+ name: 'aztec.l1_tx.blob_fee',
578
+ description: 'Blob fee used for L1 tx',
579
+ unit: 'gwei',
580
+ valueType: ValueType.DOUBLE
581
+ };
582
+ export const PEER_MANAGER_GOODBYES_SENT = {
583
+ name: 'aztec.peer_manager.goodbyes_sent',
584
+ description: 'Number of goodbyes sent to peers',
585
+ unit: 'peers',
586
+ valueType: ValueType.INT
587
+ };
588
+ export const PEER_MANAGER_GOODBYES_RECEIVED = {
589
+ name: 'aztec.peer_manager.goodbyes_received',
590
+ description: 'Number of goodbyes received from peers',
591
+ unit: 'peers',
592
+ valueType: ValueType.INT
593
+ };
594
+ export const PEER_MANAGER_PEER_COUNT = {
595
+ name: 'aztec.peer_manager.peer_count',
596
+ description: 'Number of peers',
597
+ unit: 'peers',
598
+ valueType: ValueType.INT
599
+ };
600
+ export const PEER_MANAGER_LOW_SCORE_DISCONNECTS = {
601
+ name: 'aztec.peer_manager.low_score_disconnects',
602
+ description: 'Number of peers disconnected due to low score',
603
+ unit: 'peers',
604
+ valueType: ValueType.INT
605
+ };
606
+ export const PEER_MANAGER_PEER_CONNECTION_DURATION = {
607
+ name: 'aztec.peer_manager.peer_connection_duration',
608
+ description: 'Time duration between peer connection and disconnection',
609
+ unit: 'ms',
610
+ valueType: ValueType.INT
611
+ };
612
+ export const P2P_PEER_STATE_COUNT = {
613
+ name: 'aztec.p2p.peer_state_count',
614
+ description: 'Number of peers in each state',
615
+ unit: 'peers',
616
+ valueType: ValueType.INT
617
+ };
618
+ export const P2P_REQ_RESP_SENT_REQUESTS = {
619
+ name: 'aztec.p2p.req_resp.sent_requests',
620
+ description: 'Number of requests sent to peers',
621
+ unit: 'requests',
622
+ valueType: ValueType.INT
623
+ };
624
+ export const P2P_REQ_RESP_RECEIVED_REQUESTS = {
625
+ name: 'aztec.p2p.req_resp.received_requests',
626
+ description: 'Number of requests received from peers',
627
+ unit: 'requests',
628
+ valueType: ValueType.INT
629
+ };
630
+ export const P2P_REQ_RESP_FAILED_OUTBOUND_REQUESTS = {
631
+ name: 'aztec.p2p.req_resp.failed_outbound_requests',
632
+ description: 'Number of failed outbound requests - nodes not getting valid responses',
633
+ unit: 'requests',
634
+ valueType: ValueType.INT
635
+ };
636
+ export const P2P_REQ_RESP_FAILED_INBOUND_REQUESTS = {
637
+ name: 'aztec.p2p.req_resp.failed_inbound_requests',
638
+ description: 'Number of failed inbound requests - node failing to respond to requests',
639
+ unit: 'requests',
640
+ valueType: ValueType.INT
641
+ };
642
+ export const P2P_GOSSIP_MESSAGE_VALIDATION_DURATION = {
643
+ name: 'aztec.p2p.gossip.message_validation_duration',
644
+ description: 'Duration to validate a gossip message',
645
+ unit: 'ms',
646
+ valueType: ValueType.INT
647
+ };
648
+ export const P2P_GOSSIP_MESSAGE_PREVALIDATION_COUNT = {
649
+ name: 'aztec.p2p.gossip.message_validation_count',
650
+ description: 'Number of gossip messages validated',
651
+ valueType: ValueType.INT
652
+ };
653
+ export const P2P_GOSSIP_MESSAGE_LATENCY = {
654
+ name: 'aztec.p2p.gossip.message_latency',
655
+ description: 'Latency of gossip messages',
656
+ unit: 'ms',
657
+ valueType: ValueType.INT
658
+ };
659
+ export const P2P_GOSSIP_TX_RECEIVED_COUNT = {
660
+ name: 'aztec.p2p.gossip.tx_received_count',
661
+ description: 'Number of transactions received via gossip',
662
+ valueType: ValueType.INT
663
+ };
664
+ export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_MIN = {
665
+ name: 'aztec.p2p.gossip.agg_message_latency_min',
666
+ description: 'Minimum aggregated gossip message latency',
667
+ unit: 'ms',
668
+ valueType: ValueType.INT
669
+ };
670
+ export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_MAX = {
671
+ name: 'aztec.p2p.gossip.agg_message_latency_max',
672
+ description: 'Maximum aggregated gossip message latency',
673
+ unit: 'ms',
674
+ valueType: ValueType.INT
675
+ };
676
+ export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_P50 = {
677
+ name: 'aztec.p2p.gossip.agg_message_latency_p50',
678
+ description: 'P50 aggregated gossip message latency',
679
+ unit: 'ms',
680
+ valueType: ValueType.INT
681
+ };
682
+ export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_P90 = {
683
+ name: 'aztec.p2p.gossip.agg_message_latency_p90',
684
+ description: 'P90 aggregated gossip message latency',
685
+ unit: 'ms',
686
+ valueType: ValueType.INT
687
+ };
688
+ export const P2P_GOSSIP_AGG_MESSAGE_LATENCY_AVG = {
689
+ name: 'aztec.p2p.gossip.agg_message_latency_avg',
690
+ description: 'Average aggregated gossip message latency',
691
+ unit: 'ms',
692
+ valueType: ValueType.INT
693
+ };
694
+ export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_MIN = {
695
+ name: 'aztec.p2p.gossip.agg_message_validation_duration_min',
696
+ description: 'Minimum aggregated gossip message validation duration',
697
+ unit: 'ms',
698
+ valueType: ValueType.INT
699
+ };
700
+ export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_MAX = {
701
+ name: 'aztec.p2p.gossip.agg_message_validation_duration_max',
702
+ description: 'Maximum aggregated gossip message validation duration',
703
+ unit: 'ms',
704
+ valueType: ValueType.INT
705
+ };
706
+ export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_P50 = {
707
+ name: 'aztec.p2p.gossip.agg_message_validation_duration_p50',
708
+ description: 'P50 aggregated gossip message validation duration',
709
+ unit: 'ms',
710
+ valueType: ValueType.INT
711
+ };
712
+ export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_P90 = {
713
+ name: 'aztec.p2p.gossip.agg_message_validation_duration_p90',
714
+ description: 'P90 aggregated gossip message validation duration',
715
+ unit: 'ms',
716
+ valueType: ValueType.INT
717
+ };
718
+ export const P2P_GOSSIP_AGG_MESSAGE_VALIDATION_DURATION_AVG = {
719
+ name: 'aztec.p2p.gossip.agg_message_validation_duration_avg',
720
+ description: 'Average aggregated gossip message validation duration',
721
+ unit: 'ms',
722
+ valueType: ValueType.INT
723
+ };
724
+ export const PUBLIC_PROCESSOR_TX_DURATION = {
725
+ name: 'aztec.public_processor.tx_duration',
726
+ description: 'Duration to process a public transaction',
727
+ unit: 'ms',
728
+ valueType: ValueType.INT
729
+ };
730
+ export const PUBLIC_PROCESSOR_TX_COUNT = {
731
+ name: 'aztec.public_processor.tx_count',
732
+ description: 'Number of public transactions processed',
733
+ valueType: ValueType.INT
734
+ };
735
+ export const PUBLIC_PROCESSOR_TX_PHASE_COUNT = {
736
+ name: 'aztec.public_processor.tx_phase_count',
737
+ description: 'Number of phases in public transaction processing',
738
+ valueType: ValueType.INT
739
+ };
740
+ export const PUBLIC_PROCESSOR_TX_GAS = {
741
+ name: 'aztec.public_processor.tx_gas',
742
+ description: 'Gas consumed by public transaction',
743
+ unit: 'gas',
744
+ valueType: ValueType.INT
745
+ };
746
+ export const PUBLIC_PROCESSOR_PHASE_DURATION = {
747
+ name: 'aztec.public_processor.phase_duration',
748
+ description: 'Duration of public processing phase',
749
+ unit: 'ms',
750
+ valueType: ValueType.INT
751
+ };
752
+ export const PUBLIC_PROCESSOR_PHASE_COUNT = {
753
+ name: 'aztec.public_processor.phase_count',
754
+ description: 'Number of public processing phases',
755
+ valueType: ValueType.INT
756
+ };
757
+ export const PUBLIC_PROCESSOR_DEPLOY_BYTECODE_SIZE = {
758
+ name: 'aztec.public_processor.deploy_bytecode_size',
759
+ description: 'Size of deployed bytecode',
760
+ unit: 'By',
761
+ valueType: ValueType.INT
762
+ };
763
+ export const PUBLIC_PROCESSOR_TOTAL_GAS = {
764
+ name: 'aztec.public_processor.total_gas',
765
+ description: 'Total gas consumed by public processor',
766
+ unit: 'gas',
767
+ valueType: ValueType.INT
768
+ };
769
+ export const PUBLIC_PROCESSOR_TOTAL_GAS_HISTOGRAM = {
770
+ name: 'aztec.public_processor.total_gas_histogram',
771
+ description: 'Histogram of total gas consumed by public processor',
772
+ unit: 'gas',
773
+ valueType: ValueType.INT
774
+ };
775
+ export const PUBLIC_PROCESSOR_GAS_RATE = {
776
+ name: 'aztec.public_processor.gas_rate',
777
+ description: 'Gas rate in public processor',
778
+ unit: 'gas/s',
779
+ valueType: ValueType.INT
780
+ };
781
+ export const PUBLIC_PROCESSOR_TREE_INSERTION = {
782
+ name: 'aztec.public_processor.tree_insertion',
783
+ description: 'Duration of tree insertion in public processor',
784
+ unit: 'ms',
785
+ valueType: ValueType.INT
786
+ };
147
787
  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';
788
+ export const PUBLIC_EXECUTOR_SIMULATION_COUNT = {
789
+ name: 'aztec.public_executor.simulation_count',
790
+ description: 'Number of functions executed',
791
+ valueType: ValueType.INT
792
+ };
793
+ export const PUBLIC_EXECUTOR_SIMULATION_DURATION = {
794
+ name: 'aztec.public_executor.simulation_duration',
795
+ description: 'How long it takes to execute a function',
796
+ unit: 'ms',
797
+ valueType: ValueType.INT
798
+ };
799
+ export const PUBLIC_EXECUTOR_SIMULATION_MANA_PER_SECOND = {
800
+ name: 'aztec.public_executor.simulation_mana_per_second',
801
+ description: 'Mana used per second',
802
+ unit: 'mana/s',
803
+ valueType: ValueType.INT
804
+ };
805
+ export const PUBLIC_EXECUTOR_SIMULATION_MANA_USED = {
806
+ name: 'aztec.public_executor.simulation_mana_used',
807
+ description: 'Total mana used',
808
+ unit: 'mana',
809
+ valueType: ValueType.INT
810
+ };
811
+ export const PUBLIC_EXECUTOR_SIMULATION_TOTAL_INSTRUCTIONS = {
812
+ name: 'aztec.public_executor.simulation_total_instructions',
813
+ description: 'Total number of instructions executed',
814
+ valueType: ValueType.INT
815
+ };
816
+ export const PUBLIC_EXECUTOR_TX_HASHING = {
817
+ name: 'aztec.public_executor.tx_hashing',
818
+ description: 'Tx hashing time',
819
+ unit: 'ms',
820
+ valueType: ValueType.INT
821
+ };
822
+ export const PUBLIC_EXECUTOR_PRIVATE_EFFECTS_INSERTION = {
823
+ name: 'aztec.public_executor.private_effects_insertion',
824
+ description: 'Private effects insertion time',
825
+ unit: 'us',
826
+ valueType: ValueType.INT
827
+ };
828
+ export const PUBLIC_EXECUTOR_SIMULATION_BYTECODE_SIZE = {
829
+ name: 'aztec.public_executor.simulation_bytecode_size',
830
+ description: 'Size of bytecode being executed',
831
+ unit: 'By',
832
+ valueType: ValueType.INT
833
+ };
834
+ export const PROVING_ORCHESTRATOR_BASE_ROLLUP_INPUTS_DURATION = {
835
+ name: 'aztec.proving_orchestrator.base_rollup.inputs_duration',
836
+ description: 'Duration to build base rollup inputs',
837
+ unit: 'ms',
838
+ valueType: ValueType.INT
839
+ };
840
+ export const PROVING_QUEUE_JOB_SIZE = {
841
+ name: 'aztec.proving_queue.job_size',
842
+ description: 'Size of proving jobs',
843
+ unit: 'By',
844
+ valueType: ValueType.INT
845
+ };
846
+ export const PROVING_QUEUE_SIZE = {
847
+ name: 'aztec.proving_queue.size',
848
+ description: 'Number of jobs in the proving queue',
849
+ valueType: ValueType.INT
850
+ };
851
+ export const PROVING_QUEUE_TOTAL_JOBS = {
852
+ name: 'aztec.proving_queue.enqueued_jobs_count',
853
+ description: 'Total number of jobs enqueued',
854
+ valueType: ValueType.INT
855
+ };
856
+ export const PROVING_QUEUE_CACHED_JOBS = {
857
+ name: 'aztec.proving_queue.cached_jobs_count',
858
+ description: 'Number of cached proving jobs',
859
+ valueType: ValueType.INT
860
+ };
861
+ export const PROVING_QUEUE_ACTIVE_JOBS = {
862
+ name: 'aztec.proving_queue.active_jobs_count',
863
+ description: 'Number of active proving jobs',
864
+ valueType: ValueType.INT
865
+ };
866
+ export const PROVING_QUEUE_RESOLVED_JOBS = {
867
+ name: 'aztec.proving_queue.resolved_jobs_count',
868
+ description: 'Number of resolved proving jobs',
869
+ valueType: ValueType.INT
870
+ };
871
+ export const PROVING_QUEUE_REJECTED_JOBS = {
872
+ name: 'aztec.proving_queue.rejected_jobs_count',
873
+ description: 'Number of rejected proving jobs',
874
+ valueType: ValueType.INT
875
+ };
876
+ export const PROVING_QUEUE_RETRIED_JOBS = {
877
+ name: 'aztec.proving_queue.retried_jobs_count',
878
+ description: 'Number of retried proving jobs',
879
+ valueType: ValueType.INT
880
+ };
881
+ export const PROVING_QUEUE_TIMED_OUT_JOBS = {
882
+ name: 'aztec.proving_queue.timed_out_jobs_count',
883
+ description: 'Number of timed out proving jobs',
884
+ valueType: ValueType.INT
885
+ };
886
+ export const PROVING_QUEUE_JOB_WAIT = {
887
+ name: 'aztec.proving_queue.job_wait',
888
+ description: 'Records how long a job sits in the queue',
889
+ unit: 'ms',
890
+ valueType: ValueType.INT
891
+ };
892
+ export const PROVING_QUEUE_JOB_DURATION = {
893
+ name: 'aztec.proving_queue.job_duration',
894
+ description: 'Records how long a job takes to complete',
895
+ unit: 'ms',
896
+ valueType: ValueType.INT
897
+ };
898
+ export const PROVING_QUEUE_DB_NUM_ITEMS = {
899
+ name: 'aztec.proving_queue.db.num_items',
900
+ description: 'Number of items in the proving queue database',
901
+ valueType: ValueType.INT
902
+ };
903
+ export const PROVING_QUEUE_DB_MAP_SIZE = {
904
+ name: 'aztec.proving_queue.db.map_size',
905
+ description: 'Map size of the proving queue database',
906
+ unit: 'By',
907
+ valueType: ValueType.INT
908
+ };
909
+ export const PROVING_QUEUE_DB_USED_SIZE = {
910
+ name: 'aztec.proving_queue.db.used_size',
911
+ description: 'Used size of the proving queue database',
912
+ unit: 'By',
913
+ valueType: ValueType.INT
914
+ };
915
+ export const PROVING_AGENT_IDLE = {
916
+ name: 'aztec.proving_queue.agent.idle',
917
+ description: 'Records how long an agent was idle',
918
+ unit: 's',
919
+ valueType: ValueType.DOUBLE
920
+ };
921
+ export const PROVER_NODE_EXECUTION_DURATION = {
922
+ name: 'aztec.prover_node.execution.duration',
923
+ description: 'Duration of execution of an epoch by the prover',
924
+ unit: 'ms',
925
+ valueType: ValueType.INT
926
+ };
927
+ export const PROVER_NODE_JOB_DURATION = {
928
+ name: 'aztec.prover_node.job_duration',
929
+ description: 'Duration of proving job',
930
+ unit: 's',
931
+ valueType: ValueType.DOUBLE
932
+ };
933
+ export const PROVER_NODE_JOB_CHECKPOINTS = {
934
+ name: 'aztec.prover_node.job_checkpoints',
935
+ description: 'Number of checkpoints in a proven epoch',
936
+ valueType: ValueType.INT
937
+ };
938
+ export const PROVER_NODE_JOB_BLOCKS = {
939
+ name: 'aztec.prover_node.job_blocks',
940
+ description: 'Number of blocks in a proven epoch',
941
+ valueType: ValueType.INT
942
+ };
943
+ export const PROVER_NODE_JOB_TRANSACTIONS = {
944
+ name: 'aztec.prover_node.job_transactions',
945
+ description: 'Number of transactions in a proven epoch',
946
+ valueType: ValueType.INT
947
+ };
948
+ export const PROVER_NODE_REWARDS_TOTAL = {
949
+ name: 'aztec.prover_node.rewards_total',
950
+ description: 'The rewards earned (total)',
951
+ valueType: ValueType.DOUBLE
952
+ };
953
+ export const PROVER_NODE_REWARDS_PER_EPOCH = {
954
+ name: 'aztec.prover_node.rewards_per_epoch',
955
+ description: 'The rewards earned',
956
+ valueType: ValueType.DOUBLE
957
+ };
958
+ export const WORLD_STATE_FORK_DURATION = {
959
+ name: 'aztec.world_state.fork.duration',
960
+ description: 'Duration to fork world state',
961
+ unit: 'ms',
962
+ valueType: ValueType.INT
963
+ };
964
+ export const WORLD_STATE_SYNC_DURATION = {
965
+ name: 'aztec.world_state.sync.duration',
966
+ description: 'Duration to sync world state',
967
+ unit: 'ms',
968
+ valueType: ValueType.INT
969
+ };
970
+ export const WORLD_STATE_MERKLE_TREE_SIZE = {
971
+ name: 'aztec.world_state.merkle_tree_size',
972
+ description: 'Size of the merkle tree',
973
+ valueType: ValueType.INT
974
+ };
975
+ export const WORLD_STATE_DB_SIZE = {
976
+ name: 'aztec.world_state.db_size',
977
+ description: 'Size of the world state database',
978
+ unit: 'By',
979
+ valueType: ValueType.INT
980
+ };
981
+ export const WORLD_STATE_DB_MAP_SIZE = {
982
+ name: 'aztec.world_state.db_map_size',
983
+ description: 'The current configured map size for each merkle tree',
984
+ unit: 'By',
985
+ valueType: ValueType.INT
986
+ };
987
+ export const WORLD_STATE_DB_PHYSICAL_SIZE = {
988
+ name: 'aztec.world_state.db_physical_size',
989
+ description: 'The current physical disk space used for each database',
990
+ unit: 'By',
991
+ valueType: ValueType.INT
992
+ };
993
+ export const WORLD_STATE_TREE_SIZE = {
994
+ name: 'aztec.world_state.tree_size',
995
+ description: 'The current number of leaves in each merkle tree',
996
+ valueType: ValueType.INT
997
+ };
998
+ export const WORLD_STATE_UNFINALIZED_HEIGHT = {
999
+ name: 'aztec.world_state.unfinalized_height',
1000
+ description: 'The unfinalized block height of each merkle tree',
1001
+ valueType: ValueType.INT
1002
+ };
1003
+ export const WORLD_STATE_FINALIZED_HEIGHT = {
1004
+ name: 'aztec.world_state.finalized_height',
1005
+ description: 'The finalized block height of each merkle tree',
1006
+ valueType: ValueType.INT
1007
+ };
1008
+ export const WORLD_STATE_OLDEST_BLOCK = {
1009
+ name: 'aztec.world_state.oldest_block',
1010
+ description: 'The oldest historical block of each merkle tree',
1011
+ valueType: ValueType.INT
1012
+ };
1013
+ export const WORLD_STATE_DB_USED_SIZE = {
1014
+ name: 'aztec.world_state.db_used_size',
1015
+ description: 'The current used database size for each db of each merkle tree',
1016
+ unit: 'By',
1017
+ valueType: ValueType.INT
1018
+ };
1019
+ export const WORLD_STATE_DB_NUM_ITEMS = {
1020
+ name: 'aztec.world_state.db_num_items',
1021
+ description: 'The current number of items in each database of each merkle tree',
1022
+ valueType: ValueType.INT
1023
+ };
1024
+ export const WORLD_STATE_REQUEST_TIME = {
1025
+ name: 'aztec.world_state.request_time',
1026
+ description: 'The round trip time of world state requests',
1027
+ unit: 'us',
1028
+ valueType: ValueType.INT
1029
+ };
1030
+ export const WORLD_STATE_CRITICAL_ERROR_COUNT = {
1031
+ name: 'aztec.world_state.critical_error_count',
1032
+ description: 'The number of critical errors in the world state',
1033
+ valueType: ValueType.INT
1034
+ };
1035
+ export const PROOF_VERIFIER_COUNT = {
1036
+ name: 'aztec.proof_verifier.count',
1037
+ description: 'Number of proofs verified',
1038
+ valueType: ValueType.INT
1039
+ };
1040
+ export const VALIDATOR_RE_EXECUTION_TIME = {
1041
+ name: 'aztec.validator.re_execution_time',
1042
+ description: 'The time taken to re-execute a transaction',
1043
+ unit: 'ms',
1044
+ valueType: ValueType.INT
1045
+ };
1046
+ export const VALIDATOR_RE_EXECUTION_MANA = {
1047
+ name: 'aztec.validator.re_execution_mana',
1048
+ description: 'The mana consumed by blocks',
1049
+ unit: 'Mmana',
1050
+ valueType: ValueType.DOUBLE
1051
+ };
1052
+ export const VALIDATOR_RE_EXECUTION_TX_COUNT = {
1053
+ name: 'aztec.validator.re_execution_tx_count',
1054
+ description: 'The number of txs in a block proposal',
1055
+ unit: 'tx',
1056
+ valueType: ValueType.INT
1057
+ };
1058
+ export const VALIDATOR_FAILED_REEXECUTION_COUNT = {
1059
+ name: 'aztec.validator.failed_reexecution_count',
1060
+ description: 'The number of failed re-executions',
1061
+ valueType: ValueType.INT
1062
+ };
1063
+ export const VALIDATOR_ATTESTATION_SUCCESS_COUNT = {
1064
+ name: 'aztec.validator.attestation_success_count',
1065
+ description: 'The number of successful attestations',
1066
+ valueType: ValueType.INT
1067
+ };
1068
+ export const VALIDATOR_ATTESTATION_FAILED_BAD_PROPOSAL_COUNT = {
1069
+ name: 'aztec.validator.attestation_failed_bad_proposal_count',
1070
+ description: 'The number of failed attestations due to invalid block proposals',
1071
+ valueType: ValueType.INT
1072
+ };
1073
+ export const VALIDATOR_ATTESTATION_FAILED_NODE_ISSUE_COUNT = {
1074
+ name: 'aztec.validator.attestation_failed_node_issue_count',
1075
+ description: 'The number of failed attestations due to node issues (timeout, missing data, etc.)',
1076
+ valueType: ValueType.INT
1077
+ };
1078
+ export const NODEJS_EVENT_LOOP_DELAY_MIN = {
1079
+ name: 'nodejs.eventloop.delay.min',
1080
+ description: 'Minimum delay of the event loop',
1081
+ unit: 'ns',
1082
+ valueType: ValueType.INT
1083
+ };
1084
+ export const NODEJS_EVENT_LOOP_DELAY_MEAN = {
1085
+ name: 'nodejs.eventloop.delay.mean',
1086
+ description: 'Mean delay of the event loop',
1087
+ unit: 'ns',
1088
+ valueType: ValueType.INT
1089
+ };
1090
+ export const NODEJS_EVENT_LOOP_DELAY_MAX = {
1091
+ name: 'nodejs.eventloop.delay.max',
1092
+ description: 'Max delay of the event loop',
1093
+ unit: 'ns',
1094
+ valueType: ValueType.INT
1095
+ };
1096
+ export const NODEJS_EVENT_LOOP_DELAY_STDDEV = {
1097
+ name: 'nodejs.eventloop.delay.stddev',
1098
+ description: 'Stddev delay of the event loop',
1099
+ unit: 'ns',
1100
+ valueType: ValueType.INT
1101
+ };
1102
+ export const NODEJS_EVENT_LOOP_DELAY_P50 = {
1103
+ name: 'nodejs.eventloop.delay.p50',
1104
+ description: 'P50 delay of the event loop',
1105
+ unit: 'ns',
1106
+ valueType: ValueType.INT
1107
+ };
1108
+ export const NODEJS_EVENT_LOOP_DELAY_P90 = {
1109
+ name: 'nodejs.eventloop.delay.p90',
1110
+ description: 'P90 delay of the event loop',
1111
+ unit: 'ns',
1112
+ valueType: ValueType.INT
1113
+ };
1114
+ export const NODEJS_EVENT_LOOP_DELAY_P99 = {
1115
+ name: 'nodejs.eventloop.delay.p99',
1116
+ description: 'P99 delay of the event loop',
1117
+ unit: 'ns',
1118
+ valueType: ValueType.INT
1119
+ };
1120
+ export const NODEJS_EVENT_LOOP_UTILIZATION = {
1121
+ name: 'nodejs.eventloop.utilization',
1122
+ description: 'How busy is the event loop',
1123
+ valueType: ValueType.DOUBLE
1124
+ };
1125
+ export const NODEJS_EVENT_LOOP_TIME = {
1126
+ name: 'nodejs.eventloop.time',
1127
+ description: 'How much time the event loop has spent in a given state',
1128
+ unit: 'ms',
1129
+ valueType: ValueType.INT
1130
+ };
1131
+ export const NODEJS_MEMORY_HEAP_USAGE = {
1132
+ name: 'nodejs.memory.v8_heap.usage',
1133
+ description: 'Memory used by the V8 heap',
1134
+ unit: 'By'
1135
+ };
1136
+ export const NODEJS_MEMORY_HEAP_TOTAL = {
1137
+ name: 'nodejs.memory.v8_heap.total',
1138
+ description: 'The max size the V8 heap can grow to',
1139
+ unit: 'By'
1140
+ };
1141
+ export const NODEJS_MEMORY_NATIVE_USAGE = {
1142
+ name: 'nodejs.memory.native.usage',
1143
+ description: 'Memory allocated for native C++ objects',
1144
+ unit: 'By'
1145
+ };
1146
+ export const NODEJS_MEMORY_BUFFER_USAGE = {
1147
+ name: 'nodejs.memory.array_buffer.usage',
1148
+ description: 'Memory allocated for buffers (includes native memory used)',
1149
+ unit: 'By'
1150
+ };
1151
+ export const TX_PROVIDER_TXS_FROM_PROPOSALS_COUNT = {
1152
+ name: 'aztec.tx_collector.txs_from_proposal_count',
1153
+ description: 'The number of txs taken from block proposals',
1154
+ valueType: ValueType.INT
1155
+ };
1156
+ export const TX_PROVIDER_TXS_FROM_MEMPOOL_COUNT = {
1157
+ name: 'aztec.tx_collector.txs_from_mempool_count',
1158
+ description: 'The number of txs taken from the local mempool',
1159
+ valueType: ValueType.INT
1160
+ };
1161
+ export const TX_PROVIDER_TXS_FROM_P2P_COUNT = {
1162
+ name: 'aztec.tx_collector.txs_from_p2p_count',
1163
+ description: 'The number of txs taken from the p2p network',
1164
+ valueType: ValueType.INT
1165
+ };
1166
+ export const TX_PROVIDER_MISSING_TXS_COUNT = {
1167
+ name: 'aztec.tx_collector.missing_txs_count',
1168
+ description: 'The number of txs not found anywhere',
1169
+ valueType: ValueType.INT
1170
+ };
1171
+ export const TX_PROVIDER_P2P_TXS_REQUESTED_FRACTION = {
1172
+ name: 'aztec.tx_collector.txs_requested_fraction',
1173
+ description: 'The fraction of transaction requested from peers',
1174
+ valueType: ValueType.DOUBLE
1175
+ };
1176
+ export const TX_PROVIDER_P2P_TXS_REQUEST_DELAY = {
1177
+ name: 'aztec.tx_collector.txs_requested_delay',
1178
+ description: 'The time it took to request missing transactions from p2p',
1179
+ unit: 'ms',
1180
+ valueType: ValueType.INT
1181
+ };
1182
+ export const TX_COLLECTOR_COUNT = {
1183
+ name: 'aztec.tx_collector.tx_count',
1184
+ description: 'The number of txs collected',
1185
+ valueType: ValueType.INT
1186
+ };
1187
+ export const TX_COLLECTOR_DURATION_PER_REQUEST = {
1188
+ name: 'aztec.tx_collector.duration_per_request',
1189
+ description: 'Total duration of an individual tx collection request',
1190
+ unit: 'ms',
1191
+ valueType: ValueType.INT
1192
+ };
1193
+ export const TX_COLLECTOR_DURATION_PER_TX = {
1194
+ name: 'aztec.tx_collector.duration_per_tx',
1195
+ description: 'Average duration per tx of an individual tx collection request',
1196
+ unit: 'ms',
1197
+ valueType: ValueType.INT
1198
+ };
1199
+ export const IVC_VERIFIER_TIME = {
1200
+ name: 'aztec.ivc_verifier.time',
1201
+ description: 'Duration to verify chonk proofs',
1202
+ unit: 'ms',
1203
+ valueType: ValueType.INT
1204
+ };
1205
+ export const IVC_VERIFIER_TOTAL_TIME = {
1206
+ name: 'aztec.ivc_verifier.total_time',
1207
+ description: 'Total duration to verify chonk proofs, including serde',
1208
+ unit: 'ms',
1209
+ valueType: ValueType.INT
1210
+ };
1211
+ export const IVC_VERIFIER_FAILURE_COUNT = {
1212
+ name: 'aztec.ivc_verifier.failure_count',
1213
+ description: 'Count of failed IVC proof verifications',
1214
+ valueType: ValueType.INT
1215
+ };
1216
+ export const IVC_VERIFIER_AGG_DURATION_MIN = {
1217
+ name: 'aztec.ivc_verifier.agg_duration_min',
1218
+ description: 'MIN ivc verification',
1219
+ unit: 'ms',
1220
+ valueType: ValueType.DOUBLE
1221
+ };
1222
+ export const IVC_VERIFIER_AGG_DURATION_MAX = {
1223
+ name: 'aztec.ivc_verifier.agg_duration_max',
1224
+ description: 'MAX ivc verification',
1225
+ unit: 'ms',
1226
+ valueType: ValueType.DOUBLE
1227
+ };
1228
+ export const IVC_VERIFIER_AGG_DURATION_P50 = {
1229
+ name: 'aztec.ivc_verifier.agg_duration_p50',
1230
+ description: 'P50 ivc verification',
1231
+ unit: 'ms',
1232
+ valueType: ValueType.DOUBLE
1233
+ };
1234
+ export const IVC_VERIFIER_AGG_DURATION_P90 = {
1235
+ name: 'aztec.ivc_verifier.agg_duration_p90',
1236
+ description: 'P90 ivc verification',
1237
+ unit: 'ms',
1238
+ valueType: ValueType.DOUBLE
1239
+ };
1240
+ export const IVC_VERIFIER_AGG_DURATION_AVG = {
1241
+ name: 'aztec.ivc_verifier.agg_duration_avg',
1242
+ description: 'AVG ivc verification',
1243
+ unit: 'ms',
1244
+ valueType: ValueType.DOUBLE
1245
+ };