Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-miner RSR #106

Closed
bajtos opened this issue May 21, 2024 · 2 comments
Closed

Per-miner RSR #106

bajtos opened this issue May 21, 2024 · 2 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@bajtos
Copy link
Member

bajtos commented May 21, 2024

We have been asked to provide per-miner RSR stats in addition to the current "all miners leaderboard" dataset.

What we want

A new spark-stats API

  • Accept a miner ID (e.g. f0814049) and an optional date range (e.g. ?from=2024-11-01&to=2024-11-30).
  • The response should list RSR for each day in the date range for the selected miner only. RSR means the following fields: total, successful, success_rate - see the output of https://stats.filspark.com/retrieval-success-rate for an example.
  • Re-use the helpers & building blocks we already have in place in spark-stats.
  • Remember to update README to document the new endpoint

Stretch goal

A new Observable dashboard showing per-miner stats. At the top, the dashboard should provide a text field for entering the miner ID. Then, there should be a chart showing how this miner's RSR evolved over time. (We will be adding more charts incrementally over time.)

Prior art:

@bajtos
Copy link
Member Author

bajtos commented May 21, 2024

Workaround: implement a "scraper" that iterates over multiple days, downloads the "all miners" data for each day, and builds the database that way.

@patrickwoodhead
Copy link

Shipped to the dashboard. Great work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants