我正在使用命令.\wmi_exporter.exe --collectors.enabled "process,cs" --collector.process.processes-where "Name LIKE 'chrome%' OR Name LIKE 'firefox%'"来跟踪 chrome 和 firefox浏览器。
但是这些指标只收集我给出的第一个正在运行的进程,而不是收集另一个。
在我的指标中,我只能看到“chrome”而无法看到“firefox”的详细信息。请在我缺少语法的地方帮助我。
问问题
242 次
1 回答
0
从 wmi_exporter 的当前版本开始,您可以使用白名单指定多个收集器。
要包含以 firefox 或 FIREFOX 或 chrome 开头的进程,您可以提供以下标志:
--collector.process.whitelist="firefox.+|FIREFOX.+|chrome.+"
示例取自https://github.com/prometheus-community/windows_exporter/blob/master/docs/collector.process.md
于 2021-10-27T21:26:23.230 回答