From 91c2e3b8aae6ad70ca9c6b6017f1c7407260f43c Mon Sep 17 00:00:00 2001 From: Nick Cabatoff Date: Wed, 1 Jan 2020 10:54:56 -0500 Subject: [PATCH] Document PID and StartTime template options. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 42000ae..11e3720 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,14 @@ Template variables available: - `{{.ExeFull}}` contains the fully qualified path of the executable - `{{.Username}}` contains the username of the effective user - `{{.Matches}}` map contains all the matches resulting from applying cmdline regexps +- `{{.PID}}` contains the PID of the process. Note that using PID means the group + will only contain a single process. +- `{{.StartTime}}` contains the start time of the process. This can be useful + in conjunction with PID because PIDs get reused over time. + +Using `PID` or `StartTime` is discouraged: this is almost never what you want, +and is likely to result in high cardinality metrics which Prometheus will have +trouble with. #### Using a config file: process selectors