relayer/src/metrics/docs_and_dashboards/transactions.md
Monitoring the reliability, latency, and error rates of on-chain transaction submissions.
This document outlines the metrics used to track the interaction between the Relayer and the Blockchain (EVM). These metrics are crucial for detecting stuck transactions, RPC instability, and critical failures where transactions are dropped after exhaustion.
relayer_transaction_pending_gaugetransaction_type: input_request, user_decrypt_request, public_decrypt_requestrelayer_transaction_counttransaction_type: input_request, ...transaction_status: confirmed, failedrelayer_transaction_duration_secs0.01, to 10.0 secstransaction_type, statusrelayer_transaction_errors_totalerror_type:
max_retries_exceeded: CRITICAL. The engine gave up on the transaction.nonce_error: Account sequence mismatch.transport_error: Network connection or HTTP issues.rpc_error: EVM execution revert or internal node errors.reverted: Transaction failed because of revert.invalid_address: Malformed address format/Invalid contract destination address.unknown_error: Error that has not been triaged on the transaction engine.Visualizes the specific reasons why transactions are failing or retrying.
sum by (error_type) (increase(relayer_transaction_errors_total[$__range]))
Visualizes the time it takes for a transaction to be mined.
histogram_quantile(0.95, sum by (le, transaction_type) (
rate(relayer_transaction_duration_secs[5m])
))
Visualizes the current load on the transaction manager.
sum by (transaction_type) (relayer_transaction_pending_gauge)