Skip to content

Add Storage Metrics to System Status API#111

Closed
mateeullahmalik wants to merge 3 commits intomasterfrom
updateStatusApi
Closed

Add Storage Metrics to System Status API#111
mateeullahmalik wants to merge 3 commits intomasterfrom
updateStatusApi

Conversation

@mateeullahmalik
Copy link
Collaborator

@mateeullahmalik mateeullahmalik commented Aug 1, 2025

This PR adds storage metrics collection to the supernode system status API, enabling monitoring of disk usage across configured storage volumes.

Key Changes

  • Storage Metrics Collection: Added CollectStorageMetrics method in metrics.go to gather disk usage information for specified paths
  • Proto Updates: Extended the system resources message to include a Storage message type with path, total/used/available bytes, and usage percentage
  • Status API Enhancement: Updated the status server to report storage metrics for monitored volumes
  • Multi-Volume Support: Supports monitoring multiple storage paths with fallback to root filesystem if none specified

@mateeullahmalik mateeullahmalik changed the title Refactor system status api Add Storage Metrics to System Status API Aug 1, 2025
@mateeullahmalik mateeullahmalik deleted the updateStatusApi branch August 12, 2025 11:25
@mateeullahmalik mateeullahmalik restored the updateStatusApi branch August 12, 2025 11:25
@mateeullahmalik mateeullahmalik deleted the updateStatusApi branch August 12, 2025 11:25
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