Skip to content

[metrics] Add mempool monitoring series to charon-metrics exporter #300

@obchain

Description

@obchain

Tracking issue filed from PR #54 dashboard review (#283).

Scope

The Grafana dashboard (deploy/grafana/charon.json) omits a mempool panel because backing series do not exist. Add:

  • charon_mempool_pending_oracle_updates (gauge) — count of pending Venus oracle updates observed in the mempool
  • charon_mempool_drained_total (counter) — total oracle updates drained from mempool at block confirmation, labeled by chain
  • charon_mempool_websocket_reconnects_total (counter) — reconnect attempts, to catch flaky upstreams

Emission site: crates/charon-scanner/src/mempool.rs (MempoolMonitor). Wire-up tracked separately in #299.

Acceptance

  • New series registered in crates/charon-metrics/src/lib.rs
  • MempoolMonitor increments/sets each series on the appropriate event
  • Dashboard panel added post-merge referencing these series

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlayer:rustRust crates (core / scanner / protocols / executor / cli)priority:p2-polishNice-to-have / polishstatus:readyScoped and ready to pick uptype:featureNew capability or deliverable

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions