chore: Change TTFB chart tick from day to month#30
Conversation
Deploying spark-dashboard with
|
| Latest commit: |
7b3c1cd
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f38298f8.spark-dashboard.pages.dev |
| Branch Preview URL: | https://chore-change-ttfb-chart-tick.spark-dashboard.pages.dev |
bajtos
left a comment
There was a problem hiding this comment.
Great idea! 👏
Please fix the CI build before landing.
I've taken a look at the logs and it looks like our miner summary is too large for Cloudflare pages to handle. We're currently fetching miner RSR summary for past 31 days. Maybe reducing it to last week wound be more appropriate? import { jsonFetcher } from './json-fetcher.js'
import { getDateXDaysAgo } from '../utils/date-utils.js'
const from = getDateXDaysAgo(7)
const to = getDateXDaysAgo(1)
const output = await jsonFetcher(
`https://stats.filspark.com/miners/retrieval-success-rate/summary?from=${from}&to=${to}`,
)
process.stdout.write(JSON.stringify(output)) |
Is it possible to increase the supported size from 25MB to for example 50MB? |
Looking at their docs we can't increase the max size, but we could upload assets and serve them using R2 bucket. |
With the introduction of the TTFB stat, we initially set the Spark TTFB chart to display data by day due to the limited dataset. Now that we've gathered a substantial amount of data, the charts are starting to look like this:
This PR changes chart tick back from
daytomonthmaking charts look like this in return: