Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/expand-sector-stats-types.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@siafoundation/indexd-types': minor
---

Expanded sector stats response with lost, checked, and checkFailed fields.
5 changes: 5 additions & 0 deletions .changeset/expand-sector-stats-ui.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'indexd': minor
---

Expanded sector stats metrics with lost, checked, and check failed sectors.
24 changes: 24 additions & 0 deletions apps/indexd/components/Metrics/MetricsSectors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@ export function MetricsSectors() {
label="Unpinned Sectors"
value={<Skeleton className="h-12 w-[150px]" />}
/>
<InfoRow
label="Lost Sectors"
value={<Skeleton className="h-12 w-[150px]" />}
/>
<InfoRow
label="Checked Sectors"
value={<Skeleton className="h-12 w-[150px]" />}
/>
<InfoRow
label="Check Failed Sectors"
value={<Skeleton className="h-12 w-[150px]" />}
/>
</div>
}
notFound={<StateNoneYet message="No metrics found." />}
Expand All @@ -68,6 +80,18 @@ export function MetricsSectors() {
label="Unpinned Sectors"
value={stats.unpinned.toLocaleString()}
/>
<InfoRow
label="Lost Sectors"
value={stats.lost.toLocaleString()}
/>
<InfoRow
label="Checked Sectors"
value={stats.checked.toLocaleString()}
/>
<InfoRow
label="Check Failed Sectors"
value={stats.checkFailed.toLocaleString()}
/>
</div>
)}
/>
Expand Down
3 changes: 3 additions & 0 deletions libs/indexd-types/src/admin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ export type AdminStatsSectorsResponse = {
pinned: number
unpinnable: number
unpinned: number
lost: number
checked: number
checkFailed: number
}

export const adminStatsAccountsRoute = '/stats/accounts'
Expand Down
Loading