feat: Service status indicators on fleet overview (GH #254)#256
Open
vivekchand wants to merge 2 commits intomainfrom
Open
feat: Service status indicators on fleet overview (GH #254)#256vivekchand wants to merge 2 commits intomainfrom
vivekchand wants to merge 2 commits intomainfrom
Conversation
- Add /api/nodes/<node_id>/service-status endpoint with per-service health - Services tracked: Gateway, Sync Daemon, Channels (per channel), Resources (CPU/mem/disk) - Status levels: healthy (green), degraded (yellow), down (red), unknown (gray) - StatusBar component on each node card with tooltip per indicator - Drill-down modal on card click showing full per-service breakdown with child rows - Local node: real checks via socket/proc/filesystem; remote nodes: use pushed metrics - Auto-refresh every 30s (consistent with existing fleet poll interval)
… glance (closes #254) - Add _detect_channel_status(): reads openclaw.json + session JSONL to find active channels - Add _get_service_status(): gateway port check, channel list, sync daemon detection, CPU/RAM via psutil, system uptime - Add GET /api/service-status endpoint (bp_health blueprint) - Add Service Status and Channels sections to System Health panel (both themes) - Add loadServiceStatus() JS: renders colored pills for Gateway, Sync, RAM, CPU, uptime; channel pills per configured/active channel - startSystemHealthRefresh() now calls both loadSystemHealth() and loadServiceStatus() - 5 new tests in TestServiceStatus, all 81 existing tests pass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds color-coded service status indicators to the ClawMetry fleet overview page.
What is added
New API endpoint:
GET /api/nodes/<node_id>/service-statusunknownFleet page UI updates:
Status levels
Testing
python dashboard.pyhttp://localhost:8900/fleetCloses #254