-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move process to the root namespace
- Loading branch information
Showing
6 changed files
with
31 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,6 @@ | |
|
||
# Linux | ||
|
||
- [Linux Memory Attributes](#linux-memory-attributes) | ||
- [Linux Process Attributes](#linux-process-attributes) | ||
|
||
## Linux Memory Attributes | ||
|
||
Describes Linux Memory attributes | ||
|
@@ -23,13 +20,3 @@ Describes Linux Memory attributes | |
|---|---|---| | ||
| `reclaimable` | reclaimable | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
| `unreclaimable` | unreclaimable | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
|
||
## Linux Process Attributes | ||
|
||
Describes Linux Process attributes | ||
|
||
| Attribute | Type | Description | Examples | Stability | | ||
|---|---|---|---|---| | ||
| <a id="linux-process-cgroup" href="#linux-process-cgroup">`linux.process.cgroup`</a> | string | The control group associated with the process. [1] | `1:name=systemd:/user.slice/user-1000.slice/session-3.scope`; `0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
|
||
**[1] `linux.process.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](https://man7.org/linux/man-pages/man7/cgroups.7.html) file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
# Process | ||
|
||
- [Process Attributes](#process-attributes) | ||
- [Process Linux Attributes](#process-linux-attributes) | ||
- [Deprecated Process Attributes](#deprecated-process-attributes) | ||
|
||
## Process Attributes | ||
|
@@ -68,6 +69,16 @@ An operating system process. | |
| `major` | major | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
| `minor` | minor | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
|
||
## Process Linux Attributes | ||
|
||
Describes Linux Process attributes | ||
|
||
| Attribute | Type | Description | Examples | Stability | | ||
|---|---|---|---|---| | ||
| <a id="process-linux-cgroup" href="#process-linux-cgroup">`process.linux.cgroup`</a> | string | The control group associated with the process. [4] | `1:name=systemd:/user.slice/user-1000.slice/session-3.scope`; `0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
|
||
**[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](https://man7.org/linux/man-pages/man7/cgroups.7.html) file. | ||
|
||
## Deprecated Process Attributes | ||
|
||
Deprecated process attributes. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ | |
| [`process.command_line`](/docs/attributes-registry/process.md) | string | The 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"` | `Conditionally Required` [3] | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
| [`process.executable.name`](/docs/attributes-registry/process.md) | string | The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. | `otelcol` | `Conditionally Required` [4] | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
| [`process.executable.path`](/docs/attributes-registry/process.md) | string | The 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/otelcol` | `Conditionally Required` [5] | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
| [`linux.process.cgroup`](/docs/attributes-registry/linux.md) | string | The control group associated with the process. [6] | `1:name=systemd:/user.slice/user-1000.slice/session-3.scope`; `0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope` | `Recommended` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
| [`process.linux.cgroup`](/docs/attributes-registry/process.md) | string | The control group associated with the process. [6] | `1:name=systemd:/user.slice/user-1000.slice/session-3.scope`; `0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope` | `Recommended` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
| [`process.owner`](/docs/attributes-registry/process.md) | string | The username of the user that owns the process. | `root` | `Recommended` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
| [`process.parent_pid`](/docs/attributes-registry/process.md) | int | Parent Process identifier (PPID). | `111` | `Recommended` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
| [`process.pid`](/docs/attributes-registry/process.md) | int | Process identifier (PID). | `1234` | `Recommended` | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | ||
|
@@ -57,7 +57,7 @@ | |
|
||
**[5] `process.executable.path`:** See [Selecting process attributes](#selecting-process-attributes) for details. | ||
|
||
**[6] `linux.process.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](https://man7.org/linux/man-pages/man7/cgroups.7.html) file. | ||
**[6] `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](https://man7.org/linux/man-pages/man7/cgroups.7.html) file. | ||
|
||
<!-- markdownlint-restore --> | ||
<!-- prettier-ignore-end --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,20 +16,3 @@ groups: | |
stability: experimental | ||
brief: "The Linux Slab memory state" | ||
examples: ["reclaimable", "unreclaimable"] | ||
# linux.process.* attribute group | ||
- id: registry.linux.process | ||
type: attribute_group | ||
brief: "Describes Linux Process attributes" | ||
attributes: | ||
- id: linux.process.cgroup | ||
type: string | ||
stability: experimental | ||
brief: The control group associated with the process. | ||
examples: ["1:name=systemd:/user.slice/user-1000.slice/session-3.scope", "0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"] | ||
note: > | ||
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](https://man7.org/linux/man-pages/man7/cgroups.7.html) | ||
file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -241,3 +241,20 @@ groups: | |
value: 'minor' | ||
stability: experimental | ||
stability: experimental | ||
# process.linux* attribute group | ||
- id: registry.process.linux | ||
type: attribute_group | ||
brief: "Describes Linux Process attributes" | ||
attributes: | ||
- id: process.linux.cgroup | ||
type: string | ||
stability: experimental | ||
brief: The control group associated with the process. | ||
examples: ["1:name=systemd:/user.slice/user-1000.slice/session-3.scope", "0::/user.slice/user-1000.slice/[email protected]/tmux-spawn-0267755b-4639-4a27-90ed-f19f88e53748.scope"] | ||
note: > | ||
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](https://man7.org/linux/man-pages/man7/cgroups.7.html) | ||
file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters