Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More information added to the system endpoint. #204

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

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