Skip to content

Commit

Permalink
improve descriptions
Browse files Browse the repository at this point in the history
Signed-off-by: ChrsMark <[email protected]>
  • Loading branch information
ChrsMark committed May 13, 2024
1 parent b9fb285 commit 57eee6d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .chloggen/merge_cpu_states.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ change_type: breaking
component: system

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Merge *.cpu.state attributes into a common cpu.state attribute
note: Rename `process.cpu.state`, `container.cpu.state`, and `system.cpu.state` attributes into a common `cpu.state` attribute

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
# The values here must be integers.
Expand Down
3 changes: 1 addition & 2 deletions model/registry/cpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ groups:
- id: registry.cpu
prefix: cpu
type: attribute_group
brief: >
A cpu instance
brief: Attributes specific to a cpu instance.
attributes:
- id: state
brief: "The state of the CPU"
Expand Down
4 changes: 2 additions & 2 deletions model/registry/deprecated/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ groups:
stability: experimental
deprecated: "Replaced by `container.label`."
- id: container.cpu.state
brief: "The CPU state for this data point."
brief: "Deprecated, use `cpu.state` instead."
type:
allow_custom_values: true
members:
Expand All @@ -28,4 +28,4 @@ groups:
stability: experimental
stability: experimental
deprecated: 'Removed, report cpu state with `cpu.state` common attribute'
examples: [ "user", "kernel" ]
examples: [ "user", "kernel" ]
3 changes: 1 addition & 2 deletions model/registry/deprecated/process.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ groups:
brief: "Deprecated process attributes."
attributes:
- id: process.cpu.state
brief: >
The CPU state of the process.
brief: "Deprecated, use `cpu.state` instead."
deprecated: 'Removed, report cpu state with `cpu.state` common attribute'
type:
allow_custom_values: true
Expand Down
2 changes: 1 addition & 1 deletion model/registry/deprecated/system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ groups:
- id: steal
value: 'steal'
stability: experimental
brief: "The state of the CPU"
brief: "Deprecated, use `cpu.state` instead."
stability: experimental
deprecated: 'Removed, report cpu state with `cpu.state` common attribute'
examples: [ "idle", "interrupt" ]

0 comments on commit 57eee6d

Please sign in to comment.