Process

Process Attributes

An operating system process.

AttributeTypeDescriptionExamplesStability
process.args_countintLength of the process.command_args array [1]4Development
process.commandstringThe command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in proc/[pid]/cmdline. On Windows, can be set to the first parameter extracted from GetCommandLineW.cmd/otelcolDevelopment
process.command_argsstring[]All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from proc/[pid]/cmdline. For libc-based executables, this would be the full argv vector passed to main.["cmd/otecol", "--config=config.yaml"]Development
process.command_linestringThe full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of GetCommandLineW. Do not set this if you have to assemble it just for monitoring; use process.command_args instead.C:\cmd\otecol --config="my directory\config.yaml"Development
process.context_switch_typestringSpecifies whether the context switches for this data point were voluntary or involuntary.voluntary; involuntaryDevelopment
process.creation.timestringThe date and time the process was created, in ISO 8601 format.2023-11-21T09:25:34.853ZDevelopment
process.executable.build_id.gnustringThe GNU build ID as found in the .note.gnu.build-id ELF section (hex string).c89b11207f6479603b0d49bf291c092c2b719293Development
process.executable.build_id.gostringThe Go build ID as retrieved by go tool buildid <go executable>.foh3mEXu7BLZjsN9pOwG/kATcXlYVCDEFouRMQed_/WwRFB1hPo9LBkekthSPG/x8hMC8emW2cCjXD0_1aYDevelopment
process.executable.build_id.htlhashstringProfiling specific build ID for executables. See the OTel specification for Profiles for more information.600DCAFE4A110000F2BF38C493F5FB92Development
process.executable.namestringThe name of the process executable. On Linux based systems, this SHOULD be set to the base name of the target of /proc/[pid]/exe. On Windows, this SHOULD be set to the base name of GetProcessImageFileNameW.otelcolDevelopment
process.executable.pathstringThe full path to the process executable. On Linux based systems, can be set to the target of proc/[pid]/exe. On Windows, can be set to the result of GetProcessImageFileNameW./usr/bin/cmd/otelcolDevelopment
process.exit.codeintThe exit code of the process.127Development
process.exit.timestringThe date and time the process exited, in ISO 8601 format.2023-11-21T09:26:12.315ZDevelopment
process.group_leader.pidintThe PID of the process’s group leader. This is also the process group ID (PGID) of the process.23Development
process.interactivebooleanWhether the process is connected to an interactive shell.Development
process.ownerstringThe username of the user that owns the process.rootDevelopment
process.paging.fault_typestringThe type of page fault for this data point. Type major is for major/hard page faults, and minor is for minor/soft page faults.major; minorDevelopment
process.parent_pidintParent Process identifier (PPID).111Development
process.pidintProcess identifier (PID).1234Development
process.real_user.idintThe real user ID (RUID) of the process.1000Development
process.real_user.namestringThe username of the real user of the process.operatorDevelopment
process.runtime.descriptionstringAn additional description about the runtime of the process, for example a specific vendor customization of the runtime environment.Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0Development
process.runtime.namestringThe name of the runtime of this process.OpenJDK Runtime EnvironmentDevelopment
process.runtime.versionstringThe version of the runtime of this process, as returned by the runtime without modification.14.0.2Development
process.saved_user.idintThe saved user ID (SUID) of the process.1002Development
process.saved_user.namestringThe username of the saved user.operatorDevelopment
process.session_leader.pidintThe PID of the process’s session leader. This is also the session ID (SID) of the process.14Development
process.titlestringProcess title (proctitle) [2]cat /etc/hostname; xfce4-session; bashDevelopment
process.user.idintThe effective user ID (EUID) of the process.1001Development
process.user.namestringThe username of the effective user of the process.rootDevelopment
process.vpidintVirtual process identifier. [3]12Development
process.working_directorystringThe working directory of the process./rootDevelopment

[1] process.args_count: This field can be useful for querying or performing bucket analysis on how many arguments were provided to start a process. More arguments may be an indication of suspicious activity.

[2] process.title: In many Unix-like systems, process title (proctitle), is the string that represents the name or command line of a running process, displayed by system monitoring tools like ps, top, and htop.

[3] process.vpid: The process ID within a PID namespace. This is not necessarily unique across all processes on the host but it is unique within the process namespace that the process exists within.


process.context_switch_type has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
involuntaryinvoluntaryDevelopment
voluntaryvoluntaryDevelopment

process.paging.fault_type has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
majormajorDevelopment
minorminorDevelopment

Process Linux Attributes

Describes Linux Process attributes

AttributeTypeDescriptionExamplesStability
process.linux.cgroupstringThe control group associated with the process. [4]1:name=systemd:/user.slice/user-1000.slice/session-3.scope; 0::/user.slice/user-1000.slice/user@1000.service/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scopeDevelopment

[4] process.linux.cgroup: Control groups (cgroups) are a kernel feature used to organize and manage process resources. This attribute provides the path(s) to the cgroup(s) associated with the process, which should match the contents of the /proc/[PID]/cgroup file.

Deprecated Process Attributes

Deprecated process attributes.

AttributeTypeDescriptionExamplesStability
process.cpu.statestringDeprecated, use cpu.mode instead.system; user; waitDeprecated
Replaced by cpu.mode
process.executable.build_id.profilingstring“Deprecated, use process.executable.build_id.htlhash instead.”600DCAFE4A110000F2BF38C493F5FB92Deprecated
Replaced by process.executable.build_id.htlhash

process.cpu.state has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
systemsystemDevelopment
useruserDevelopment
waitwaitDevelopment