-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[RPM/MSI] Enable logging level #2255
Comments
Do you want to change the log-level for a running instance, or do you want to change the service configuration? |
@jpkrohling thx for response! we have logging level config in the yaml just for the logging exporter, for that, yes we can configure it, i'm pointing this out just in case we are confused with the logging exporter. today, we can use command line This feature request is assuming we are not expecting customers to touch the service config, and trying to figure out a way for customers to config the log level. |
Agree that we should allow CLI flags to be specified externally. For the moment, you can create a
|
@jpkrohling thx for the suggestion! it's doable. maybe better to build For long-term, do you have any idea? |
For the long term, we should consider using another instance of viper, to bind env vars to flags. |
* chore: adds vanity import check. * chore: runs vanity import check on ci. * fix: set right target on CI. * fix: fixes install for porto. * fix: install right proto bin. * chore: list all files insides the tools directory. * fix: fixes vanity import target Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com> * chore(vanity-imports): adds vanity import support. * fix: fixes internal generation. * chore: runs go mod tidy in tools. Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com> Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
Just upgraded from 0.56 to 0.66 docker images (get this is different from this issue but related) and noticed that
|
@niemyjski this was deprecated and removed from the collector. This was done in #6334. |
Closing this issue now as the original problem is fixed. Please consider opening a new issue if you see follow up work. |
@atoulme I saw that as well. For anyone reading this is there a better way to enable log level because I'm not seeing it. |
Is your feature request related to a problem? Please describe.
No, it's not a problem but a pain point for linux/windows instance customers who are installing rpm/msi, i find no way to enable the logging level since the collector is running within service. no parameters can be sent into it.
Describe the solution you'd like
I'd like to have a unified solution for both msi and rpm/deb so that customers can enable debug logging level.
One way i can think of is to ask customer to
touch
a file nameddebug
, so that collector can read it and change the logging level.Describe alternatives you've considered
I have been thinking about using env var, however the ways to set up env var for linux service and windows service are different, so that it's not a unified solution.
Additional context
I'm happy to implement this feature if it's reasonable to you.
The text was updated successfully, but these errors were encountered: