如何在wmi_exporter中配置多个查询?

How to configure multiple queries in wmi_exporter?

I downloaded the "wmi_exporter-0.7.0-386.exe" from the link wmi exporter and ran the '.exe' file using command prompt.

我也遵循了指导 link prometheus wmi guidance to run the command in the command prompt ,it executed as expected and i am able to check the metrics in "http://localhost:9182/metrics"。

我的问题是,如果我 运行 命令“./wmi_exporter-0.7.0-386.exe”单独使用命令提示,我可以检查我的 system.For 示例的内存利用率,它显示了内存利用率的详细信息,如“wmi_cs_physical_memory_bytes 3.4673408e+10”和所有内存详细信息以及浏览器指标。

但是如果我 运行 命令“.\wmi_exporter.exe --collectors.enabled "process" --collector.process.processes-where "Name LIKE 'firefox%'"”,在指标中它只过滤“firefox”浏览器相关的东西,我无法检查系统内存利用率的详细信息,如“wmi_cs_physical_memory_bytes 3.4673408e+10".

Kindly suggest me how to get the system utilization details as well as firefox related details in metrics.

Querying is very simple , just need to add the collector in the query itself,

.\wmi_exporter.exe --collectors.enabled "process,cs,logical_disk" --collector.process.processes-where "Name LIKE 'firefox%'"

where 'cs' collects local system details , 'logical_disk' collects local drives memory details (such as 'C:\','D:\')

和 "Name LIKE 'firefox'" 部分收集 fixefox 详细信息

您只需要为您想要的所有服务添加收集器查询monitor.Like,

msiexec /i C:\Users\Administrator\Downloads\wmi_exporter-0.4.3-amd64 ENABLED_COLLECTORS="cpu,cs,logical_disk,os,net,system,process,service,memory" --% EXTRA_FLAGS="--collector.service.services-where ""Name LIKE 'sisense%'"""