connext / monorepo

Connext is a modular stack for trust-minimized, generalized communication between blockchains.
https://docs.connext.network
MIT License
292 stars 173 forks source link

Dashboard or API metrics for Sequencer #1690

Closed sanchaymittal closed 9 months ago

sanchaymittal commented 2 years ago

Problem A clear and concise description of what the problem is

Ideas to solve this A clear and concise description of what you think could solve this problem.

Tasks that will be completed after working on this issue:

Acceptance Criteria

Other Update per P2P

P2 sequencer metrics (how many requests it got, how many bids per request were recieved, is there any request that got no bids for a long time)

  1. RPCs/Subgraphs/Watcher/Gelato/etc. Some of them I know you monitor at your side, I plan to do RPCs monitoring for those endpoints that are specified in router config (once I would finish with all main metrics and alerts, I would move on to RPCs)
  2. we definitely need to be calculated and exported on router container side: number of RPC connections per RPC endpoint. Cause not all RPC endpoints give such stats as above and we cannot get this info from anywhere else. If you can expose this info (just number of requests made, optionally you can specify method - it would simplify debug, as a label e.g. connext_rpc_requests{domain="6450786", url="https://bsc-dataseed.binance.org"} 351 or connext_rpc_requests{domain="6450786", url="https://bsc-dataseed.binance.org", method="eth_call"} 269 ) - it would be great. Just increase this count on any request, don't need to store it - once container is restarted just start from 0. The only thing - it's better to cut off URI part not to expose credentials. It would have additional side effect - we would see when router failovers to other RPCs, not using the first one
alexwhte commented 1 year ago

updated with feedback from P2P

preethamr commented 9 months ago

Implementing a lightweight version of tracking last bid time from the sequencer, instead of detailed metrics.