@aztec/telemetry-client 0.0.1-commit.b655e406 → 0.0.1-commit.b6e433891

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