Skip to content

Conversation

@DracoLi
Copy link
Contributor

@DracoLi DracoLi commented Jan 5, 2026

Why this should be merged

Enables reexecution benchmarks to collect leveldb and meterdb metrics. This allows existing leveldb or meterdb related Grafana dashboards to work with metrics from benchmark runs.

With this change, metrics like avalanche_db_non_level_0_comps and avalanche_meterdb_calls{method="get"} are available during reexecution tests as well, allowing us to monitor db performance.

How this works

  • Registers leveldb metrics under avalanche_db namespace
  • Wraps the database with meterdb and registers metrics under avalanche_meterdb namespace

How this was tested

I ran a reexecution benchmark and confirmed that the leveldb and meterdb metrics are visible.

Need to be documented in RELEASES.md?

No

@DracoLi DracoLi marked this pull request as ready for review January 5, 2026 18:34
@DracoLi DracoLi requested a review from a team as a code owner January 5, 2026 18:34
Copilot AI review requested due to automatic review settings January 5, 2026 18:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables the collection of leveldb and meterdb metrics during reexecution benchmarks, allowing Grafana dashboards to monitor database performance during benchmark runs.

  • Registers leveldb metrics under the avalanche_db namespace
  • Wraps the database with meterdb to collect method call metrics under the avalanche_meterdb namespace

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DracoLi DracoLi requested a review from RodrigoVillar January 7, 2026 14:14
@maru-ava maru-ava added this pull request to the merge queue Jan 7, 2026
Merged via the queue into master with commit 311ca97 Jan 7, 2026
57 of 58 checks passed
@maru-ava maru-ava deleted the dl/metrics-reexecution-blocks branch January 7, 2026 16:34
@github-project-automation github-project-automation bot moved this to Done 🎉 in avalanchego Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants