admin: vector servers on the dashboard

A Vector servers count in the Cluster card and a Vector Servers table
after S3 Servers, from the engines the dashboard already discovers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
This commit is contained in:
Chris LuandClaude Opus 5.5 committed 2026-11-12 22:54:46 -08:00
1 parent a576398662
commit 405efc2fbb
4 files changed
+424 -231

No files matched your search

+3 -1
View File
@@ -18,6 +18,8 @@ import (
type VectorNode struct {
Address string `json:"address"`
// Kind is "engine" for a weed-vector engine.
Kind string `json:"kind"`
Version string `json:"version"`
Status string `json:"status"`
}
@@ -45,7 +47,7 @@ func (s *AdminServer) getVectorNodesStatus(ctx context.Context) VectorOperations
err = callErr
if err == nil {
for _, node := range response.ClusterNodes {
data.Engines = append(data.Engines, VectorNode{Address: node.Address, Version: node.Version, Status: "Registered"})
data.Engines = append(data.Engines, VectorNode{Address: node.Address, Kind: "engine", Version: node.Version, Status: "Registered"})
}
}
}