Add Prometheus Metrics Exporter + Grafana Dashboard (Bounty #504)#474
Closed
ansomeck wants to merge 5 commits intoScottcjn:mainfrom
Closed
Add Prometheus Metrics Exporter + Grafana Dashboard (Bounty #504)#474ansomeck wants to merge 5 commits intoScottcjn:mainfrom
ansomeck wants to merge 5 commits intoScottcjn:mainfrom
Conversation
- Prometheus-compatible metrics exporter for RustChain nodes - Collects metrics: node health, miners, epoch, balances, Hall of Fame, fees - Pre-built Grafana dashboard with 10 panels - Docker Compose setup (exporter + Prometheus + Grafana) - Alert rules for node health, miner status, and balances - Systemd service file for production deployment - Comprehensive README with setup instructions Metrics exposed on :9100/metrics Grafana dashboard auto-refresh every 30s Closes Scottcjn#504
There was a problem hiding this comment.
Welcome to RustChain! Thanks for your first pull request.
Before we review, please make sure:
- Your PR has a
BCOS-L1orBCOS-L2label - New code files include an SPDX license header
- You've tested your changes against the live node
Bounty tiers: Micro (1-10 RTC) | Standard (20-50) | Major (75-100) | Critical (100-150)
A maintainer will review your PR soon. Thanks for contributing!
- Use stats object from API instead of iterating categories - Fix epoch_seconds_remaining to handle negative values - All metrics now working correctly
- Was showing 88.44 instead of 0.44 (wrong by 100x) - Now correctly uses (slot % blocks) / blocks for 0-1 range - epoch_seconds_remaining now calculates remaining blocks in current epoch - Matches bounty requirements exactly
Owner
|
Closing — @Joshualover submitted #472 for this bounty ~80 minutes earlier. First complete PR wins. Thanks @ansomeck. |
lustsazeus-lab
pushed a commit
to lustsazeus-lab/Rustchain
that referenced
this pull request
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds a complete Prometheus monitoring solution for RustChain nodes.
Features
✅ Prometheus Exporter
✅ Grafana Dashboard
✅ Docker Compose Setup
✅ Alert Rules
✅ Production Ready
Testing
Tested against https://rustchain.org API - all endpoints working correctly.
Bounty
Closes #504 (40 RTC base + 15 RTC bonus = 55 RTC total)
RTC Wallet: RTCf4c3ff0e8443fb3c4206cde61cab
Ready for review! 🚀