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