Skip to content

Commit

Permalink
deprecate *.cpu.state attributes
Browse files Browse the repository at this point in the history
Signed-off-by: ChrsMark <[email protected]>
  • Loading branch information
ChrsMark committed May 10, 2024
1 parent 8ffe146 commit dbd49a4
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 22 deletions.
28 changes: 14 additions & 14 deletions docs/attributes-registry/container.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/attributes-registry/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ An operating system process.

Attributes for process CPU

| Attribute | Type | Description | Examples | Stability |
| ------------------- | ------ | ----------------------------- | ------------------------ | ---------------------------------------------------------------- |
| `process.cpu.state` | string | The CPU state of the process. | `system`; `user`; `wait` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| Attribute | Type | Description | Examples | Stability |
| ------------------- | ------ | ----------------------------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------- |
| `process.cpu.state` | string | The CPU state of the process. | `system`; `user`; `wait` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Removed, report cpu state with `cpu.state` common attribute |

`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.

Expand Down
8 changes: 4 additions & 4 deletions docs/attributes-registry/system.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Describes System attributes

Describes System CPU attributes

| Attribute | Type | Description | Examples | Stability |
| --------------------------- | ------ | ------------------------------- | ------------------------ | ---------------------------------------------------------------- |
| `system.cpu.logical_number` | int | The logical CPU number [0..n-1] | `1` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `system.cpu.state` | string | The state of the CPU | `user`; `system`; `nice` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| Attribute | Type | Description | Examples | Stability |
| --------------------------- | ------ | ------------------------------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------- |
| `system.cpu.logical_number` | int | The logical CPU number [0..n-1] | `1` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `system.cpu.state` | string | The state of the CPU | `user`; `system`; `nice` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Removed, report cpu state with `cpu.state` common attribute |

`system.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.

Expand Down
1 change: 1 addition & 0 deletions model/registry/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,5 @@ groups:
brief: "When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows)."
stability: experimental
stability: experimental
deprecated: 'Removed, report cpu state with `cpu.state` common attribute'
examples: ["user", "kernel"]
2 changes: 1 addition & 1 deletion model/registry/cpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ groups:
value: 'kernel'
stability: experimental
stability: experimental
examples: [ "user", "system" ]
examples: [ "user", "system" ]
1 change: 1 addition & 0 deletions model/registry/process.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ groups:
- id: state
brief: >
The CPU state of the process.
deprecated: 'Removed, report cpu state with `cpu.state` common attribute'
type:
allow_custom_values: true
members:
Expand Down
1 change: 1 addition & 0 deletions model/registry/system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ groups:
stability: experimental
brief: "The state of the CPU"
stability: experimental
deprecated: 'Removed, report cpu state with `cpu.state` common attribute'
examples: ["idle", "interrupt"]
- id: logical_number
type: int
Expand Down

0 comments on commit dbd49a4

Please sign in to comment.