-
Notifications
You must be signed in to change notification settings - Fork 621
Add RPC usage dashboard with rate limit monitoring #6733
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
Add RPC usage dashboard with rate limit monitoring #6733
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6733 +/- ##
=======================================
Coverage 54.79% 54.79%
=======================================
Files 895 895
Lines 56376 56376
Branches 3849 3849
=======================================
Hits 30894 30894
Misses 25387 25387
Partials 95 95
🚀 New features to boost your workflow:
|
a644828 to
4cc2acc
Compare
apps/dashboard/src/app/team/[team_slug]/(team)/~/usage/rpc/page.tsx
Outdated
Show resolved
Hide resolved
size-limit report 📦
|
4cc2acc to
90d62a2
Compare
90d62a2 to
46c4abe
Compare
Merge activity
|
currently blocked by analytics API needing to go to prod
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces a new RPC usage dashboard for monitoring requests over the last 24 hours. It adds new components for visualizing request data and enhances the existing layout to accommodate this functionality.
### Detailed summary
- Added a new `RPC` tab in the usage layout.
- Introduced `CountGraph` and `RateGraph` components for visualizing RPC data.
- Implemented API call to fetch last 24 hours RPC usage data.
- Enhanced `ThirdwebAreaChart` to support max limit display.
- Updated error handling and user feedback for API data fetching.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
46c4abe to
348e3ab
Compare

currently blocked by analytics API needing to go to prod
PR-Codex overview
This PR focuses on enhancing the RPC usage dashboard in the application by adding new components for visualizing request data, updating existing UI elements, and integrating new API responses for more detailed usage analytics.
Detailed summary
RPCin the usage layout.maxLimitin the chart component.CountGraphandRateGraphcomponents to visualize RPC usage over time.Last24HoursRPCUsageApiResponse.getLast24HoursRPCUsagefunction to fetch and return detailed usage data.ThirdwebAreaChartto supportmaxLimitandfooterprops.RPCUsagecomponent.RPCUsagedashboard.