diff --git a/beszel/internal/agent/agent.go b/beszel/internal/agent/agent.go index 47f34b4..cc5a08f 100644 --- a/beszel/internal/agent/agent.go +++ b/beszel/internal/agent/agent.go @@ -201,7 +201,7 @@ func (a *Agent) getSystemStats() (system.Info, system.Stats) { // add host info if info, err := host.Info(); err == nil { systemInfo.Uptime = info.Uptime - // systemInfo.Os = info.OS + systemInfo.Hostname = info.Hostname } // add cpu stats if info, err := cpu.Info(); err == nil && len(info) > 0 { diff --git a/beszel/internal/entities/system/system.go b/beszel/internal/entities/system/system.go index d36a915..a013169 100644 --- a/beszel/internal/entities/system/system.go +++ b/beszel/internal/entities/system/system.go @@ -45,6 +45,8 @@ type NetIoStats struct { } type Info struct { + Hostname string `json:"h"` + Cores int `json:"c"` Threads int `json:"t"` CpuModel string `json:"m"` diff --git a/beszel/site/src/components/routes/system.tsx b/beszel/site/src/components/routes/system.tsx index 1d6fd92..0f6f383 100644 --- a/beszel/site/src/components/routes/system.tsx +++ b/beszel/site/src/components/routes/system.tsx @@ -9,6 +9,7 @@ import { CpuIcon, GlobeIcon, LayoutGridIcon, + MonitorIcon, StretchHorizontalIcon, XIcon, } from 'lucide-react' @@ -255,9 +256,23 @@ export default function SystemDetail({ name }: { name: string }) {