Closed tune007 closed 4 months ago
Try
windows_exporter-0.25.1-amd64.exe --collector.process.include="instana.*" --collector.process.exclude="ssm.*"
hi previous comment was incorrect I already had the settings like this
windows_exporter-0.25.1-amd64.exe --collector.process.include="instana.*" --collector.process.exclude="ssm.*"
did you enable the process collector?
--collectors.enabled="[defaults],process"
Running
.\windows_exporter-0.25.1-amd64.exe --collector.process.include="asus.*" --collector.process.exclude=".*ns" --collectors.enabled="[defaults],process"
works for me:
windows_process_cpu_time_total{creating_process_id="13828",mode="privileged",process="asus_framework",process_id="14944"} 0.0625
windows_process_cpu_time_total{creating_process_id="13828",mode="privileged",process="asus_framework",process_id="17720"} 0.5
windows_process_cpu_time_total{creating_process_id="13828",mode="privileged",process="asus_framework",process_id="18412"} 0.09375
windows_process_cpu_time_total{creating_process_id="13828",mode="privileged",process="asus_framework",process_id="18812"} 0.28125
windows_process_cpu_time_total{creating_process_id="13828",mode="privileged",process="asus_framework",process_id="18864"} 0.1875
windows_process_cpu_time_total{creating_process_id="13828",mode="privileged",process="asus_framework",process_id="18884"} 0.03125
windows_process_cpu_time_total{creating_process_id="13828",mode="user",process="asus_framework",process_id="14944"} 0.09375
windows_process_cpu_time_total{creating_process_id="13828",mode="user",process="asus_framework",process_id="17720"} 1.140625
windows_process_cpu_time_total{creating_process_id="13828",mode="user",process="asus_framework",process_id="18412"} 0.40625
windows_process_cpu_time_total{creating_process_id="13828",mode="user",process="asus_framework",process_id="18812"} 0.40625
windows_process_cpu_time_total{creating_process_id="13828",mode="user",process="asus_framework",process_id="18864"} 0.25
windows_process_cpu_time_total{creating_process_id="13828",mode="user",process="asus_framework",process_id="18884"} 0.1875
windows_process_cpu_time_total{creating_process_id="2160",mode="privileged",process="asus_framework",process_id="13828"} 0.765625
windows_process_cpu_time_total{creating_process_id="2160",mode="user",process="asus_framework",process_id="13828"} 0.8125
For Windows Server 2022, you may need this one:
lodctr.exe /E:Lsa lodctr.exe /E:PerfProc lodctr.exe /R
awesome that worked thank you, must have missed the enable part somehwere in the documentation
closing the issue
Good day, apologies if this is the incorrect place to log this, I am trying to switch on processes inside the windows_exporter to only expose CPU usage for a single process but it does not seem to be working. Running the following line to test windows_exporter starts and metrics are available but not for process, please can you tell me what I am doing wrong here: windows_exporter-0.25.1-amd64.exe --collector.process.include="instana." --collector.process.exclude="ssm."