-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
--version to stderr? #1271
Comments
Looks like it's because kingpin (our flag library) uses stderr for its version output by default: It's possible to override the |
@juliusv good to know. Don't want to bikeshed, etc. but |
Ah, seems like this will change upstream in |
We also log to stderr, which I've always found to be a strange thing. This is something that we would want to keep consistent across all Prometheus components, so we should probably start this as a conversation on [email protected]. |
@SuperQ I've shared my "feedback", I agree |
Hello,
|
@bmillemathias Thanks for letting us know. I'll close the issue then. |
Is there a good reason to have
--version
go tostderr
? I've been trying to patch up some ansible roles to installnode_exporter
and I spend some time trying to figure out why I couldn't grab the output the other day.So I wanted to make a ticket and ask.
I can confirm it's stderr (just wondering if this is maybe bug or intentional):
Host operating system: output of
uname -a
node_exporter version: output of
node_exporter --version
node_exporter command line flags
none
Are you running node_exporter in Docker?
no
What did you expect to see?
Version output on
stdout
.What did you see instead?
Version output on
stderr
.The text was updated successfully, but these errors were encountered: