-
Notifications
You must be signed in to change notification settings - Fork 662
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
Allow logs to go to stdout #676
Comments
cc @ingvagabund |
Checking https://github.com/kubernetes/klog/blob/main/klog.go there's no option for klog to write into stdout. |
@hlascelles how does the datadog consume the data? Parsing container's stdout/stderr? |
Just curious, what are we doing with this: https://github.com/kubernetes-sigs/descheduler/blob/e6314d2/cmd/descheduler/descheduler.go#L32 Which passes to this: Seems like we are trying to specify the output as Stdout, but is that not respected anymore? It seems really odd that klog would not allow stdout |
Based on https://github.com/spf13/cobra/blob/master/command.go#L247-L251:
So only for the usage text. |
@ingvagabund Yes, as I understand it the agent just streams the STDOUT and STDERR to the Datadog servers. I have searched their docs (and the agent config) on a way to override the level, but I cannot find a way. |
@hlascelles any way to verify the fix in #680 by building a container and having the datadog collect the logs? |
I will have a look, thanks! In the meantime I see that Wordpress docker has the same issue: docker-library/wordpress#311 (comment) |
I am seeing:
|
I was never able to test this because of the build error above, sorry. I will try the new build. Also, for the record, here is how (in Datadog) to change any stream with the first char as I,E,W to the correct status:
|
That is weird, I get the same error running |
for some reason it still reproduces (Datadog user as well) on v0.23.1 and even v0.24.0. If I add the argument
Am i missing something? Opened a new bug #811. |
Hey Everyone, Is there a way to fix this issue from descheduler itself rather than having workaround on the datadog level? Thank you |
I've never found a generic way, and I think there isn't one in this app. I've also found many other k8s utilities work in the same way. I've just added lots of Datadog parsing rules. |
At present, logs go to
stderr
. For Datadog, this means they show up as Errors.See https://docs.datadoghq.com/agent/docker/log/?tab=containerinstallation (screenshot below).
It would be good to be able to log to
stdout
natively in descheduler.descheduler version: 0.22.1
descheduler chart version: 0.22.1
In action:
The text was updated successfully, but these errors were encountered: