Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions release/models/system/openconfig-procmon.yang
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ module openconfig-procmon {
"This module provides data definitions for process health
monitoring of one or more processes running on the system.";

oc-ext:openconfig-version "0.4.0";
oc-ext:openconfig-version "0.5.0";

revision "2026-07-14" {
description
"Deprecate cpu-utilization and add cpu-utilization-pct as
uint32 to support multi-core systems where CPU utilization
can exceed 100 percent.";
reference "0.5.0";
}

revision "2019-03-15" {
description
Expand Down Expand Up @@ -153,9 +161,22 @@ module openconfig-procmon {
}

leaf cpu-utilization {
status deprecated;
type oc-types:percentage;
description
"The percentage of CPU that is being used by the process.";
"The percentage of CPU that is being used by the process.
This leaf is deprecated because its type constrains values
to 0-100, which is insufficient for multi-core systems.
Use cpu-utilization-pct instead.";
}

leaf cpu-utilization-pct {
Comment thread
navaneethyv marked this conversation as resolved.
type uint32;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One additional thought that I think would be helpful here for various renderings is make this a typedef, take the type, units, description verbatim - call the typedef something like oc-types:multi-core-percentage then we get a descriptive type and reuse as this will probably come up in other future uses

units "percent";
description
"The percentage of CPU that is being used by the process.
On multi-core systems, this value may exceed 100 percent,
up to 100 percent per core.";
}
Comment thread
charanjith-anet marked this conversation as resolved.

leaf memory-usage {
Expand Down
Loading