From 7206f020cb2c9ad2efe8d3c3c3e8f33a4713b8c4 Mon Sep 17 00:00:00 2001 From: Martin Lindhe Date: Thu, 10 Aug 2017 02:07:52 +0200 Subject: [PATCH] README: add an example for -collector.process.processes-where --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 6530127e..e510f378 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,14 @@ See [open issues](https://github.com/martinlindhe/wmi_exporter/issues) The prometheus metrics will be exposed on [localhost:9182](http://localhost:9182) +## Examples + +Please note: The quotes in the parameter names are required because of how Powershell parses command line arguments. + +### Enable only process collector and specify a custom query + + .\wmi_exporter.exe "-collectors.enabled" "process" "-collector.process.processes-where" "Name='firefox'" + ## License Under [MIT](LICENSE)