Skip to content

Add error percentage to cpu and ram monitor#548

Open
sangteak601 wants to merge 6 commits into
ros:ros2from
sangteak601:add_configuration
Open

Add error percentage to cpu and ram monitor#548
sangteak601 wants to merge 6 commits into
ros:ros2from
sangteak601:add_configuration

Conversation

@sangteak601
Copy link
Copy Markdown

At the moment, it is not possible to configure cpu_monitor or ram_monitor to publish ERROR status. It would be good to have ERROR state. It would allow us to take actions before program exhibits unexpected behaviour.

Also, cpu_monitor was updated to compare threshold to average cpu usage rather than individual cpu usage. This is aligned with how ram_monitor works and makes more sense, as in most cases users are more interested in average usage than individual usage.

@mergify mergify Bot added the ros2 PR tackling a ROS2 branch label Dec 17, 2025
@sangteak601
Copy link
Copy Markdown
Author

@ct2034
It seems I can't add a reviewer. Would you be able to take a look at this?

Comment thread diagnostic_common_diagnostics/diagnostic_common_diagnostics/cpu_monitor.py Outdated
Comment thread diagnostic_common_diagnostics/diagnostic_common_diagnostics/cpu_monitor.py Outdated
Comment thread diagnostic_common_diagnostics/README.md
Comment thread diagnostic_common_diagnostics/diagnostic_common_diagnostics/cpu_monitor.py Outdated
@ct2034 ct2034 added the needs more work Someone has worked on this but more work is needed label Apr 20, 2026
@ct2034 ct2034 added the enhancement This tackles a new feature of the code (and not a bug) label May 21, 2026
@ct2034
Copy link
Copy Markdown
Collaborator

ct2034 commented May 21, 2026

@sangteak601 are you planning to work on this?

@sangteak601
Copy link
Copy Markdown
Author

@sangteak601 are you planning to work on this?

All comments are addressed now I believe. Can you take another look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This tackles a new feature of the code (and not a bug) needs more work Someone has worked on this but more work is needed ros2 PR tackling a ROS2 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants