@aztec/telemetry-client 0.0.1-commit.9593d84 → 0.0.1-commit.96dac018d

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