diff --git a/observablehq.config.js b/observablehq.config.js index aec4105..60dda3f 100644 --- a/observablehq.config.js +++ b/observablehq.config.js @@ -19,8 +19,7 @@ export default { root: "src", theme: [ "parchment", - "alt", - "wide", // 2024-10-30: this didn't have the expected impact + "dashboard" ], footer: false, sidebar: false, diff --git a/package-lock.json b/package-lock.json index e135069..b973bb0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3865,9 +3865,9 @@ } }, "node_modules/rimraf/node_modules/lru-cache": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.1.tgz", - "integrity": "sha512-CgeuL5uom6j/ZVrg7G/+1IXqRY8JXX4Hghfy5YE0EhoYQWvndP1kufu58cmZLNIDKnRhZrXfdS9urVWx98AipQ==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.2.tgz", + "integrity": "sha512-123qHRfJBmo2jXDbo/a5YOQrJoHF/GNQTLzQ5+IdK5pWpceK17yRc6ozlWd25FxvGKQbIUs91fDFkXmDHTKcyA==", "dev": true, "license": "ISC", "engines": { diff --git a/src/data/daily_retrieval_metrics.csv.sh b/src/data/daily_retrieval_metrics.csv.sh new file mode 100644 index 0000000..6559fe9 --- /dev/null +++ b/src/data/daily_retrieval_metrics.csv.sh @@ -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 diff --git a/src/index.md b/src/index.md index 559f808..cb4316b 100644 --- a/src/index.md +++ b/src/index.md @@ -11,6 +11,7 @@ This dasbhoard is a scrappy work-in-progress to help spur discussion at [FDS-5 B ```js const daily_metrics = FileAttachment("data/daily_metrics.csv").csv({typed: true}); +const daily_retrieval_metrics = FileAttachment("data/daily_retrieval_metrics.csv").csv({typed: true}); // Mutates the provided plotConfig by adding a caption if one doesn't exist function addPlotCaption(plotConfig, href) { @@ -109,6 +110,60 @@ This is an aggregate view looking at all Storage Providers on the network. +### Retrieval Service Class Conformance + +