mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-05 10:06:35 +00:00
Expand process collector docs to show more regexp (#497)
This commit is contained in:
@@ -26,9 +26,17 @@ metrics.
|
|||||||
### Example
|
### Example
|
||||||
To match all firefox processes: `--collector.process.whitelist="firefox.+"`.
|
To match all firefox processes: `--collector.process.whitelist="firefox.+"`.
|
||||||
Note that multiple processes with the same name will be disambiguated by
|
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
|
Windows by adding a number suffix, such as `firefox#2`. Your [regexp](https://en.wikipedia.org/wiki/Regular_expression) must take
|
||||||
these suffixes into consideration.
|
these suffixes into consideration.
|
||||||
|
|
||||||
|
:warning: 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` .
|
||||||
|
|
||||||
## Metrics
|
## Metrics
|
||||||
|
|
||||||
Name | Description | Type | Labels
|
Name | Description | Type | Labels
|
||||||
|
|||||||
Reference in New Issue
Block a user