-
Notifications
You must be signed in to change notification settings - Fork 709
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
v0.29.0-rc.0 Installer #1622
Comments
Hey @Kherm13 thanks for open a report. I appreciate that you test pre-releases.
Thats an error that I even observe on healthy system from windows_exporter. At the moment, I have no idea what the root cause here. I will introduce a separate flag similar to EXTRA_FLAGS which makes the config file configurable. If empty, the flat will be omit. If I guess the best solution here is to revert the change and leave the property with an empty value by default. |
Hi, could you test a snapshot build https://github.com/prometheus-community/windows_exporter/actions/runs/10820325762/artifacts/1922009735 if it meets your expectation? keep the new docs in mind, https://github.com/jkroepke/windows_exporter/blob/arm64/README.md |
Ran the amd64 installer with the following command
It not longer has the --collectors.enabled [defaults] but it still has the first --config.file entry for the windows_exporter service windows_exporter path to executable |
This is expected. You have 2 choices here:
or
|
Got ya - will give it another try and report back! Thanks for the quick responses |
This appears to work
|
I'm aware that there is a breaking change, I will try to highlight this more at the final changelog. The background was that some users had serious issues like #1466 and the msi installer is not so fully flexible to cover a breaking change. I hope thats fine here. |
Current Behavior
Installing new version windows_exporter v0.29.0.rc.0 how I normally would via PowerShell and windows service not starting up. Windows Event Viewer shows 'Cannot create another system semaphore.'
Normal Install Process:
msiexec.exe /i "C:\temp\windows_exporter-0.29.0-rc.0-amd64.msi" /q --% EXTRA_FLAGS="--config.file=C:\windows_exporter\config\windows_exporter-config.yml"
After looking at the windows service, it looks like its passing the new default path for --config.file AND also my extra_flags (along with --collectors.enabled [defaults])
windows_exporter path to executable
"C:\Program Files\windows_exporter\windows_exporter.exe" --log.file eventlog --config.file="C:\Program Files\windows_exporter\config.yaml" --collectors.enabled [defaults] --config.file=C:\windows_exporter\config\windows_exporter-config.yml
If I remove the first --config.file and --collectors.enabled[defaults] via the registry for the windows service, it works as expected.
"C:\Program Files\windows_exporter\windows_exporter.exe" --log.file eventlog --config.file=C:\windows_exporter\config\windows_exporter-config.yml
Expected Behavior
powershell install with custom config file should work normally. With the new installer, its passing arguments that I don't want/need. It should take into consideration what's being passed unless there is some other way I should be passing them now?
Steps To Reproduce
Environment
windows_exporter logs
Anything else?
No response
The text was updated successfully, but these errors were encountered: