Skip to content

Conversation

chredeur
Copy link

Context

The system endpoint previously lacked essential information, limiting the available data for use within the panel or in direct communication with the Wings service. This PR enhances the data returned by this endpoint by adding detailed system resource metrics (CPU, RAM, and disk usage), providing better visibility into the server's resource status.

Main Changes

  • Enhanced system endpoint: Added CPU, RAM, and disk usage information.
  • Improved readability: Used gopsutil to collect metrics and rounded percentages to two decimal places.
  • Error handling: Ensured stability by handling cases where certain metrics may be unavailable.

Impact

These additional metrics enable more thorough resource monitoring from the panel or through direct communication with Wings, making it easier to track performance and quickly identify resource overloads or other potential issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant