How ismailsarhrany/hps-dashboard works
HPS Dashboard monitors Unix resources through a web dashboard: users select servers and view live and historical metrics, anomaly detection, predictions, process information, and Oracle monitoring. The repository combines an Angular client with Django services and data models. Documented capabilities are included even where their implementation was not sampled; dashed links mark relationships whose wiring is not shown. The evidence supports selected module calls and references, not a fully verified end-to-end request flow.
Main entry points: pages-routing.module.ts Feature navigation · anomaly.component.ts Anomaly dashboard · oracle_service.py Oracle monitoring service · monitoring.service.ts Metric data services
Components 26
Dashboard client
- Angular application
frontend/src/app/app.module.ts - Feature navigation
frontend/src/app/pages/pages-routing.module.ts - Live metrics view
frontend/src/app/pages/realtime/realtime.component.ts - Historical analysis
frontend/src/app/pages/historic/historic.component.ts - Process view
frontend/src/app/pages/process/process.module.ts - Prediction view
frontend/src/app/pages/prediction/prediction.component.ts - Server configuration
frontend/src/app/pages/server-configuration/server-configuration.module.ts - Server client service
frontend/src/app/services/server.service.ts - Metric data services
frontend/src/app/services/monitoring.service.ts - Disk and network data
frontend/src/app/services/disk-data.service.ts
Metrics collection
- Metric API
backend/metrics/views.py - Metric records
backend/metrics/models.py - Metric collectors
backend/metrics/management/commands/collect_all_servers.py - SSH connections
backend/metrics/utils/ssh_client.py - Metric WebSocket consumers
backend/metrics/consumers/consumers.py
Anomaly analysis
- Anomaly dashboard
frontend/src/app/pages/anomaly/anomaly.component.ts - Anomaly API
backend/anomalies/views.py - Detection and training
backend/anomalies/management/commands/run_anomlay_detection.py - Anomaly models
backend/anomalies/models.py
Oracle monitoring
- Oracle dashboard
frontend/src/app/pages/oracle/oracle.component.ts - Oracle monitoring service
backend/metrics/management/services/oracle_service.py - Oracle records
backend/metrics/models.py - Oracle WebSocket route
backend/metrics/consumers/routing.py
Other components
- Dashboard user
- Oracle database
- Realtime transport
Connections 32
- Dashboard user → Angular application: uses
- Angular application → Feature navigation: routes to
- Feature navigation → Live metrics view: loads
frontend/src/app/pages/pages-routing.module.ts - Feature navigation → Historical analysis: loads
frontend/src/app/pages/pages-routing.module.ts - Feature navigation → Process view: loads
frontend/src/app/pages/pages-routing.module.ts - Feature navigation → Anomaly dashboard: loads
frontend/src/app/pages/pages-routing.module.ts - Feature navigation → Server configuration: loads
frontend/src/app/pages/pages-routing.module.ts - Feature navigation → Oracle dashboard: loads
frontend/src/app/pages/pages-routing.module.ts - Dashboard user → Server configuration: configures
- Server configuration → Server client service: uses
- Live metrics view → Metric data services: uses
- Historical analysis → Metric data services: uses
frontend/src/app/pages/historic/historic.component.ts - Historical analysis → Disk and network data: uses
frontend/src/app/pages/historic/historic.component.ts - Anomaly dashboard → Metric data services: uses
frontend/src/app/pages/anomaly/anomaly.component.ts - Anomaly dashboard → Disk and network data: uses
frontend/src/app/pages/anomaly/anomaly.component.ts - Anomaly dashboard → Server client service: uses
frontend/src/app/pages/anomaly/anomaly.component.ts - Metric data services → Metric API: requests
- Metric API → Metric records: reads
- Metric collectors → SSH connections: collects via
- Metric collectors → Metric records: records
- Metric WebSocket consumers → Realtime transport: streams
- Realtime transport → Live metrics view: delivers
- Detection and training → Anomaly models: uses
backend/anomalies/management/commands/run_anomlay_detection.py - Detection and training → Metric records: reads
backend/anomalies/management/commands/run_anomlay_detection.py - Anomaly API → Anomaly models: serves
- Anomaly dashboard → Anomaly API: requests
- Prediction view → Anomaly API: requests
- Oracle dashboard → Oracle monitoring service: requests
- Oracle monitoring service → Oracle database: queries
backend/metrics/management/services/oracle_service.py - Oracle monitoring service → Oracle records: stores snapshots
backend/metrics/management/services/oracle_service.py - Oracle monitoring service → Realtime transport: publishes updates
backend/metrics/management/services/oracle_service.py - Oracle WebSocket route → Realtime transport: routes updates