bluerobotics / BlueOS

The open source platform for ROV, USV, robotic system operation, development, and expansion.
https://blueos.cloud/docs/
Other
169 stars 80 forks source link

core: frontend: improve monitoring and management of resource usage #3009

Open ES-Alexander opened 6 days ago

ES-Alexander commented 6 days ago

Current behaviour

Services, extensions, and the system as a whole have known resource limits / allocations and usage, but we don't always display them in a transparent manner, or allow easily acting on them via preferences or controls.

Expected or desired behaviour

Building on #1482, #2328, #2572, #2820, etc, it would be nice to have a cohesive page and/or set of interface elements for

  1. Displaying resource limits
  2. Displaying resource usage
  3. Configuring resource allocations
  4. Providing reasonable resource-freeing action options
  5. Configuring automatic usage threshold behaviour preferences
    • Including notification options, both through BlueOS and MAVLink/Cockpit

For a given service/extension, it would be useful to have some kind of traffic light system (e.g. usage as expected, usage high, usage critical), combined with direct options to restart the service, clear logs, and/or clear data, and potentially include a preference for automatic old file deletion (file rotation) when particular limits are hit.

It would also be useful to show things in different views, e.g. the extensions page could have action icons/buttons corresponding to the existing usage bars, but a dedicated overview page could show comparative usage of each extension+service (and/or docker image/container) within a combined diagram per resource.

Prerequisites