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

Print `uname -a` as part of startup #1480

Closed
RichiH opened this Issue Mar 9, 2016 · 3 comments

Comments

Projects
None yet
5 participants
@RichiH
Copy link
Member

RichiH commented Mar 9, 2016

This would better fit into prometheus/common, but it seems every part of prometheus does this on its own.

To prevent questions about OS, architecture, etc, it would be nice if the output of uname -a, or the relevant subset, could just be printed along with build info during startup.

@CrazyByDefault

This comment has been minimized.

Copy link
Contributor

CrazyByDefault commented May 10, 2017

Looks like this could be addded to either prometheus/cmd/prometheus/main.go or to common/version/info.go.

But the question of what to put is kinda tricky. Not all OSes are compatible with uname -a (especially Windows).

Also, I'm new to Golang (not to mention Open Source contrib in general), and I'd like to contribute to Prometheus.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented May 10, 2017

We wouldn't actually shell out to uname, any way you can get roughly the same information is fine and if it's missing/incomplete on some platforms that's okay. https://github.com/prometheus/node_exporter/blob/master/collector/uname_linux.go should get you started.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 23, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.