More information added to the system endpoint. #204
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
system
endpoint: Added CPU, RAM, and disk usage information.gopsutil
to collect metrics and rounded percentages to two decimal places.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.