Add S3 metrics
This commit is contained in:
2
go.mod
2
go.mod
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user