Skip to content

monitoring

marie-fourier edited this page Jan 6, 2025 · 1 revision

Monitoring

Monitoring with Prometheus

Skandha uses prometheus to monitor the health of the services and gather statistics. The prometheus server is configured to scrape the metrics from the services at regular intervals. The metrics are exposed by the services on a specific port. The prometheus server is configured to scrape the metrics from the services at regular intervals.

Metrics

Common metrics

  • skandha_user_ops_in_mempool_count - Number of user ops submitted to mempool
  • skandha_user_ops_attempted_count - Number of user ops attempted to submit on-chain
  • skandha_user_ops_submitted_count - Number of user ops submitted on-chain
  • skandha_bundles_submitted_count - Number of bundles successfully submitted on-chain
  • skandha_bundles_failed_count - Number of bundles failed to submit
  • skandha_user_ops_estimated_count - Number of user ops estimated
  • skandha_user_op_time_to_process - How long did it take for userop to get submitted
  • skandha_userops_in_bundle - Number of bundles with 1, 2, 3 or 4 userops

P2P metrics

  • skandha_p2p_user_ops_sent_counter - Number of user ops sent over p2p
  • skandha_p2p_user_ops_received_counter - Number of user ops received from shared mempools

How to enable monitoring

To enable monitoring, set the metrics.enable flag to true in the configuration file. By default, the metrics are exposed on http://127.0.0.1:8008/metrics

Clone this wiki locally