Skip to content

Commit

Permalink
feat: add provider level health rate
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgasquez authored Nov 26, 2024
1 parent 65d839f commit 6bbb4d7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
4 changes: 4 additions & 0 deletions src/data/[provider]_daily_metrics.csv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ if [ ! -f "$TMPDIR/storage_providers_metrics.parquet" ]; then
-- Sector Events
sector_added_events_count,
sector_faulted_events_count,
-- Sector Health
active_sectors,
sector_health_rate * 100 as sector_health_rate,
FROM read_parquet('https://data.filecoindataportal.xyz/filecoin_daily_storage_providers_metrics.parquet')
WHERE date >= CURRENT_DATE() - INTERVAL '90 days'
ORDER BY date desc
Expand Down
33 changes: 22 additions & 11 deletions src/provider/[provider].md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@
- [Power](#power)
- [Sectors](#sectors)


```js
const provider_metrics = FileAttachment(`../data/${observable.params.provider}_daily_metrics.csv`).csv({typed: true});
```

## Service Class Performance

_How an SP performs against the [various defined service classes and their coresponding service level objectives](https://github.com/filecoin-project/service-classes)._

### "Warm" Service Class

_How an SP performs again the [(TBD) "warm" service class](https://github.com/filecoin-project/service-classes/service-classes/warm.md)._

#### Retrievability
Expand Down Expand Up @@ -47,6 +48,7 @@ _How an SP performs again the [(TBD) "warm" service class](https://github.com/fi
]
}))
```

</div>
<div class="card">

Expand Down Expand Up @@ -78,10 +80,11 @@ _How an SP performs again the [(TBD) "warm" service class](https://github.com/fi
}
}))
```

</div>
</div>

#### Durability
#### Durability

<div class="card">

Expand All @@ -98,15 +101,15 @@ resize((width) => Plot.plot({
width,
marks: [
Plot.ruleY([0]),
Plot.text(
["To be implemented"],
{
x: 0,
y: 40,
fontSize: 48,
fill: "var(--theme-foreground-faint)"
}
)
Plot.rectY(provider_metrics, {
x: "date",
y: "sector_health_rate",
fill: "orange",
fillOpacity: 0.6,
interval: "day",
tip: true
}),
Plot.ruleY([95], {stroke: "green", strokeWidth: 3}),
]
}))
```
Expand Down Expand Up @@ -137,6 +140,7 @@ resize((width) => Plot.plot({
]
}))
```

</div>

<div class="card">
Expand All @@ -158,10 +162,12 @@ resize((width) => Plot.plot({
]
}))
```

</div>
</div>

### Power

<div class="grid grid-cols-2">
<div class="card">

Expand All @@ -182,6 +188,7 @@ resize((width) => Plot.plot({
]
}))
```

</div>

<div class="card">
Expand All @@ -203,10 +210,12 @@ resize((width) => Plot.plot({
]
}))
```

</div>
</div>

### Sectors

<div class="grid grid-cols-2">
<div class="card">

Expand All @@ -228,6 +237,7 @@ resize((width) => Plot.plot({
]
}))
```

</div>

<div class="card">
Expand All @@ -250,5 +260,6 @@ resize((width) => Plot.plot({
]
}))
```

</div>
</div>

0 comments on commit 6bbb4d7

Please sign in to comment.