There were multiple issues:
* `hostname` in the header is coming from resources, and the one in API
data was unused
* we should update to `n/a` if the value is not available
* if the node is unavailable, the response contains a message with
placeholders with a proxy error, and that should be honored to ignore
the response; if instead we use it as it is, it puts zero value, which
results in funny output.
Fixes#10383
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
Dashboard now shows the active frequency of each CPU core when cpufreq
is available on non-virtualized systems, enhancing real-time accuracy.
Solves the issue of displaying 0MHz on certain SBCs due to
/proc/cpuinfo limitations.
Signed-off-by: Nico Berlee <nico.berlee@on2it.net>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
Instead of doing excessive get/list requests, do a watch per node in an infinite retry.
Additionally, refactor the dashboard code to make the various data listener namings more consistent and reorganize the packages.
Closessiderolabs/talos#6960.
Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>