-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨ enhance dashboard with daily retrieval metrics and new visual…
…ization - Replaced "wide" theme with "dashboard" for improved aesthetics. - Introduced a script to calculate daily retrieval metrics using DuckDB. - Updated dashboard to include sections for "Retrieval Service Class Conformance" and "Durability" with relevant visualizations. - Bumped `lru-cache` dependency to v11.0.2 to ensure compatibility and security.
- Loading branch information
1 parent
6732a3f
commit b537717
Showing
5 changed files
with
123 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
#!/usr/bin/env bash | ||
|
||
duckdb :memory: << EOF | ||
SET enable_progress_bar = false; | ||
COPY ( | ||
with retrieval_rates as ( | ||
select | ||
date, | ||
provider_id, | ||
case | ||
when total_retrieval_requests > 0 | ||
then successful_retrieval_requests * 1.0 / total_retrieval_requests | ||
else 0 | ||
end as retrieval_rate | ||
from read_parquet('https://data.filecoindataportal.xyz/filecoin_daily_storage_providers_metrics.parquet') | ||
where date >= current_date() - interval '90 days' | ||
) | ||
select | ||
date, | ||
count(distinct provider_id) as meet_retrieval_sli, | ||
count(distinct provider_id) * 1.0 / ( | ||
select count(distinct provider_id) | ||
from retrieval_rates | ||
where date = r.date | ||
) as meet_retrieval_sli_percent | ||
from retrieval_rates r | ||
where retrieval_rate > 0.9 | ||
group by date | ||
order by date desc | ||
) TO STDOUT (FORMAT 'CSV'); | ||
EOF |
This file contains 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
This file contains 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