Process exporter configuration file (jpc_process_exporter.yml)
- Organization of this page
Syntax
Written in YAML format.
process_names:
- name: "{{.ExeBase}};{{.Username}};{{.Matches.cmdline}}"
exe:
- /usr/local/bin/process
cmdline:
- (?P<cmdline>.*)
File
jpc_process_exporter.yml
jpc_process_exporter.yml.model (model file)
Storage directory
- In Linux
-
- When using a physical host
-
/opt/jp1ima/conf/
- When using a logical host
-
shared-directory/jp1ima/conf/
Description
The configuration file that determines the behavior of Process exporter.
Character encoding
UTF-8 (without BOM)
Linefeed code
In Linux: LF
Timing in which definitions are reflected
When Process exporter is restarted.
Content description
|
Item# |
Description |
Modifiable |
Content set by the user in JP1/IM - Agent |
Default value in JP1/IM - Agent |
||
|---|---|---|---|---|---|---|
|
process_names |
-- |
-- |
-- |
-- |
||
|
- |
[name] |
Each item in process_names gives a recipe for identifying and naming processes. The optional name tag defines a template to use to name matching processes; if not specified, name defaults to {{.ExeBase}}.
|
Y |
Specify this to change the process name to a value other than the default value (executable file name). |
{{.ExeBase}};{{.Username}};{{.Matches.cmdline}} |
|
|
<selector> |
comm, exe or cmdline. If more than one selector is present, they must all match. |
REQ |
Monitored process selector |
cmdline |
||
|
- |
<any> |
For "comm" and "exe", the list of strings is an OR, meaning any process matching any of the strings will be added to the item's group. For "cmdline", the list of regexes is an AND, meaning they all must match. Any capturing groups in a regexp must use the ?P<name> option to assign a name to the capture, which is used to populate ".Matches".
If more than one value is specified, OR condition is used for comm and exe, and AND condition is used for cmdline. |
REQ |
Monitored process selector value |
- (?P<cmdline>.*) |
|
- Legend:
-
REQ: Required setting, Y: Modifiable, --: Not applicable
- #
-
Brackets ([]) denote optional items.