From 9148728b872815e85cb1a30b700f6fd0206dea9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Hofst=C3=A4tter?= Date: Fri, 3 Apr 2020 21:05:05 +0200 Subject: [PATCH] Expand process collector docs to show more regexp (#497) --- docs/collector.process.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/collector.process.md b/docs/collector.process.md index 7e25f547..3a25738c 100644 --- a/docs/collector.process.md +++ b/docs/collector.process.md @@ -26,9 +26,17 @@ metrics. ### Example To match all firefox processes: `--collector.process.whitelist="firefox.+"`. 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. +: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 Name | Description | Type | Labels