windows_exporter icon indicating copy to clipboard operation
windows_exporter copied to clipboard

textfile_dir not inst

Open irnmn opened this issue 1 year ago • 4 comments

use command msiexec /i windows_exporter-0.25.0-amd64.msi ENABLED_COLLECTORS="cpu,cs,iis,logical_disk,memory,net,os,process,scheduled_task,service,system,tcp,textfile" LISTEN_PORT="9182" TEXTFILE_DIR="C:\custom_metrics" freezing process in progress But if you run without the last command, then everything is successful

irnmn avatar Jan 11 '24 14:01 irnmn

This my fault, because as I was implementing #1262 (v0.24.0) I forgot to update the wxs https://github.com/prometheus-community/windows_exporter/blob/6ede10e29aeea4e5aa250a20ade395ce14058fdc/installer/windows_exporter.wxs#L47-L48

With #1262 the flag --collector.textfile.directory was marked deprecated and then in the next release removed by #1337 (v0.25.0)

@breed808 should I bump in a PR to fix? If so my question would be, should I also update the ID like Id="TEXTFILE_DIRS" instead of Id="TEXTFILE_DIR"

DiniFarb avatar Jan 11 '24 15:01 DiniFarb

Yes please, a PR is welcome. I'd go with Id="TEXTFILE_DIRS" as that clearly indicates that multiple directories can be supplied. The TEXTFILE_DIR reference in the main README will need to be updated too.

breed808 avatar Jan 11 '24 19:01 breed808

will there be a new version 0.25.1 or what?

irnmn avatar Jan 16 '24 09:01 irnmn

https://github.com/prometheus-community/windows_exporter/releases/tag/v0.25.1 - please let us know, if you issue is resolved

jkroepke avatar Jan 16 '24 17:01 jkroepke

This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

github-actions[bot] avatar Apr 16 '24 02:04 github-actions[bot]