Add S3 metrics

This commit is contained in:
2026-10-06 16:19:23 +02:00
parent 8a41307700
commit 9f8a985c63
4 changed files with 6 additions and 4 deletions

2
go.mod
View File

@@ -1,6 +1,6 @@
module fornaxian.tech/nova_web module fornaxian.tech/nova_web
go 1.26 go 1.27
replace ( replace (
fornaxian.tech/nova_server => ../nova_server fornaxian.tech/nova_server => ../nova_server

View File

@@ -285,11 +285,11 @@ onMount(() => {
<h3>Cache nodes</h3> <h3>Cache nodes</h3>
</section> </section>
<PeerTable peers={status.peers.reduce((acc, val) => {if (val.role === "cache") {acc.push(val)}; return acc}, [])}/> <PeerTable peers={status.peers.filter(peer => peer.services?.includes("cache"))}/>
<section> <section>
<h3>Storage nodes</h3> <h3>Storage nodes</h3>
</section> </section>
<PeerTable peers={status.peers.reduce((acc, val) => {if (val.role === "storage") {acc.push(val)}; return acc}, [])}/> <PeerTable peers={status.peers.filter(peer => peer.services?.includes("storage"))}/>
<section> <section>
<h3>Query statistics</h3> <h3>Query statistics</h3>

View File

@@ -55,6 +55,8 @@ const groups: {
data_type: "duration", data_type: "duration",
}, },
{metric: "filesystem_index_walk_child", data_type: "number"}, {metric: "filesystem_index_walk_child", data_type: "number"},
{metric: "s3_request", data_type: "number"},
{metric: "s3_error_500", data_type: "number"},
] ]
}, { }, {
title: "Task scheduler", expanded: false, title: "Task scheduler", expanded: false,

View File

@@ -45,7 +45,7 @@ export type Peer = {
ip: string ip: string
port: number port: number
hostname: string hostname: string
role: string services: string[] | null
reachable: boolean reachable: boolean
unreachable_count: number unreachable_count: number
latency: number latency: number