Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support collecting system information on Windows #6980

Open
2 tasks done
nazar-pc opened this issue Dec 23, 2024 · 1 comment
Open
2 tasks done

Support collecting system information on Windows #6980

nazar-pc opened this issue Dec 23, 2024 · 1 comment
Labels
I5-enhancement An additional feature request.

Comments

@nazar-pc
Copy link
Contributor

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Motivation

We have ~61% of consensus nodes running Windows right now and have no idea what systems they are running it on.

Currently Substrate only collects system information on Linux systems, which is a problem:

/// Gathers information about node's hardware and software.
pub fn gather_sysinfo() -> SysInfo {
#[allow(unused_mut)]
let mut sysinfo = SysInfo {
cpu: None,
memory: None,
core_count: None,
linux_kernel: None,
linux_distro: None,
is_virtual_machine: None,
};
#[cfg(target_os = "linux")]
crate::sysinfo_linux::gather_linux_sysinfo(&mut sysinfo);
sysinfo
}

Request

Collect system information on Windows similarly to how it is done on Linux.

There is unfortunately a hardcoded notion of "Linux Kernel" and "Linux Distro", would be nice to convert it to "OS kernel" and "OS Version" or something like that to be able to distinguish Windows versions as well (10 vs 11 vs various server editions, maybe Home/Pro/Enterprise flavors).

Solution

No response

Are you willing to help with this request?

Maybe (please elaborate above)

@bkchr
Copy link
Member

bkchr commented Dec 23, 2024

Feel free to open a pr that adds support for it, but we don't have any CI jobs right now that will ensure that this doesn't break.

For linux_distro and linux_kernel, the best for now would be probably to put Windows as distro and the version as kernel. We will need to change the telemetry backends to support any new variants, but I would do this as a second step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I5-enhancement An additional feature request.
Projects
None yet
Development

No branches or pull requests

2 participants