README: add an example for -collector.process.processes-where

This commit is contained in:
Martin Lindhe 2017-08-10 02:07:52 +02:00
parent 2e0842573d
commit 7206f020cb
1 changed files with 8 additions and 0 deletions

View File

@ -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)