Skip to main content

Crate newton_prover_metrics

Crate newton_prover_metrics 

Source
Expand description

Metrics for the newton prover task manager

Modules§

prometheus
Prometheus metrics exporter configuration and initialization

Functions§

inc_chain_watcher_events_filtered
Increment tasks filtered out (already seen by gateway)
inc_chain_watcher_events_received
Increment events received from WebSocket listener
inc_chain_watcher_events_relayed
Increment events successfully relayed to gateway
inc_chain_watcher_gateway_relay_errors
Increment failed gateway relay attempts (after retries)
inc_chain_watcher_redis_lookup
Increment Redis SISMEMBER lookup results
inc_chain_watcher_websocket_reconnections
Increment WebSocket reconnection count
inc_cleanup_tasks_removed
Increment counter for stale tasks removed by cleanup
inc_gateway_channel_retry_total
Increment channel retry total by channel
inc_gateway_channel_send_total
Increment channel send total by channel and status
inc_gateway_failure_notification_total
Increment failure notification total by type and channel
inc_gateway_privacy_auth_validation_total
Increment dual-signature auth validation total by result
inc_gateway_privacy_task_total
Increment privacy-enabled task total by status
inc_gateway_privacy_upload_total
Increment encrypted data upload total by status
inc_gateway_quorum_failures_total
Increment quorum failure total by reason
inc_gateway_task_total
Increment gateway task total by chain, mode, and status
inc_gateway_watcher_events_received
Increment events received by gateway /watcher endpoint
inc_gateway_watcher_tasks_processed
Increment watcher-originated tasks that completed processing
inc_gateway_webhook_delivery_total
Increment webhook delivery total by status
inc_num_tasks_accepted_by_aggregator
Increment the number of tasks accepted by aggregator (operator perspective)
inc_operator_privacy_decryption_total
Increment operator HPKE decryption total by status
inc_rpc_request_total
Increment RPC request total by method and status
inc_task_generator_cache_hits
Increment the number of task generator cache hits
inc_task_generator_cache_misses
Increment the number of task generator cache misses
inc_tasks_aggregator_respond_failure
Increment the number of failed aggregator responses
inc_tasks_aggregator_respond_success
Increment the number of successful aggregator responses
inc_tasks_challenge_detected
Increment the number of challenges detected
inc_tasks_challenge_failure
Increment the number of failed challenges
inc_tasks_challenge_submitted
Increment the number of challenges submitted
inc_tasks_challenge_success
Increment the number of successful challenges
inc_tasks_operator_evaluate_failure
Increment the number of failed task evaluations
inc_tasks_operator_evaluate_success
Increment the number of successfully evaluated tasks
inc_transporter_event_triggered_sync
Increment transporter event-triggered sync count
inc_transporter_sync_failure
Increment transporter sync failure count
inc_transporter_sync_success
Increment transporter sync success count
inc_two_phase_early_consensus
Increment early consensus counter (all responses identical)
inc_two_phase_normalization
Increment normalization counter (median normalization required)
inc_tx_submission_exhausted
Increment the number of transaction submission failures after all retries exhausted
inc_tx_submission_retry
Increment the number of transaction submission retries with a reason label
inc_tx_submission_timeout
Increment the number of transaction timeouts
new
Create a new instance of the metrics
record_centralized_aggregation_duration
Record centralized BLS aggregation duration in seconds
record_centralized_data_generation_duration
Record centralized data generation duration in seconds (gateway generates policyTaskData)
record_centralized_evaluate_duration
Record centralized Evaluate phase (evaluate + sign) duration in seconds
record_centralized_total_duration
Record centralized total duration in seconds
record_chain_watcher_gateway_relay_duration
Record time to POST event to gateway /watcher endpoint
record_challenger_verification_duration
Record challenger verification duration in seconds
record_challenger_zk_proof_generation_duration
Record ZK proof generation duration in seconds
record_cleanup_duration
Record cleanup task execution duration in seconds
record_gateway_bls_aggregation_duration
Record BLS aggregation duration in seconds
record_gateway_broadcast_duration
Record operator broadcast duration in seconds by chain
record_gateway_data_provider_duration
Record data provider duration in seconds
record_gateway_onchain_submit_duration
Record on-chain submission duration in seconds
record_gateway_privacy_auth_validation_duration
Record dual-signature auth validation duration in seconds
record_gateway_privacy_upload_duration
Record encrypted data upload duration in seconds
record_gateway_rpc_parallel_fetch_duration
Record parallel RPC fetch duration in seconds
record_gateway_watcher_task_duration
Record duration of watcher-originated task processing (broadcast to on-chain submit)
record_operator_fetch_policy_data_duration
Record operator fetch policy data duration in seconds (WASM execution)
record_operator_network_round_trip
Record network round-trip time to operator in seconds
record_operator_privacy_decryption_duration
Record operator HPKE decryption duration in seconds
record_operator_sign_consensus_duration
Record operator sign consensus duration in seconds (BLS signing)
record_rpc_request_duration
Record RPC request duration by method
record_task_aggregation_duration
Record task aggregation duration in seconds
record_task_evaluation_duration
Record task evaluation duration in seconds
record_transporter_operator_tables_synced
Record number of operator tables synced in a transport update
record_transporter_sync_duration
Record transporter sync duration in seconds
record_two_phase_aggregation_duration
Record BLS aggregation duration after Evaluate phase in seconds
record_two_phase_consensus_duration
Record consensus computation duration in seconds
record_two_phase_evaluate_duration
Record Evaluate phase (sign consensus) duration in seconds
record_two_phase_prepare_duration
Record Prepare phase (fetch policy data) duration in seconds
record_two_phase_total_duration
Record total Two-Phase Protocol duration in seconds
record_tx_submission_attempts
Record transaction submission attempt count before success or failure
set_aggregator_address
set aggregator address
set_centralized_response_count
Set response count for centralized mode
set_chain_watcher_websocket_connected
Set WebSocket connection status (1=connected, 0=disconnected)
set_challenger_address
set challenger address
set_gateway_circuit_breaker_state
Set circuit breaker state for an operator (0=closed, 1=open, 2=half-open)
set_gateway_task_states_size
Set task states size in aggregator
set_gateway_websocket_connections
Set WebSocket connection count
set_gateway_websocket_subscriptions
Set WebSocket subscription count
set_gateway_worker_queue_depth
Set worker queue depth by worker name
set_operator_address
set operator address
set_operator_id
set operator id
set_readiness_aggregator_confirmed_nonce
Set aggregator confirmed nonce for a chain
set_readiness_aggregator_in_flight
Set aggregator in-flight transaction count for a chain
set_readiness_aggregator_pending_nonce
Set aggregator pending nonce for a chain
set_readiness_database
Set database connectivity status (1=connected, 0=unavailable)
set_readiness_operator_pool_size
Set operator pool size for a chain
set_readiness_redis
Set Redis connectivity status (1=connected, 0=unavailable)
set_readiness_worker_queue_capacity
Set worker queue capacity for a chain
set_readiness_worker_queue_depth
Set worker queue depth for a chain
set_task_generator_address
set task generator address (gateway signer)
set_two_phase_response_count
Set response count for a phase