windows_exporter的官方文档
windows_exporter是可以带参数启动的
–collector.process.whitelist
Regexp of processes to include. Process name must both match whitelist and not match blacklist to be included. Recommended to keep down number of returned metrics.
–collector.process.blacklist Regexp of processes to exclude. Process name must both match whitelist and not match blacklist to be included.
Recommended to keep down number of returned metrics.
Example To match all firefox processes:
–collector.process.whitelist=“firefox.+”. Note that multiple processes with the same name will be disambiguated by Windows by
adding a number suffix, such as firefox#2. Your regexp must take these
suffixes into consideration.
⚠️ The regexp is case-sensitive, so
–collector.process.whitelist=“FIREFOX.+” will NOT match a process named firefox .To specify multiple names, use the pipe | character:
–collector.process.whitelist=“firefox.+|FIREFOX.+|chrome.+” This will match all processes named firefox, FIREFOX or chrome .