How darshan-stack/effective-parakeet works
GPUGuard observes GPU telemetry and ROS 2 topic performance, correlates their timelines, detects anomalies, and exposes live status through an API and dashboard. The README also describes AI root-cause diagnostics and actionable recommendations. The graph includes the ROS 2 node adapters as well as the core analysis path; relationships between the dashboard and API, and between telemetry streams and correlation, rely on README descriptions where sampled source does not show the wiring.
Main entry points: correlator.py GPU–ROS Correlator · routes.py REST and WS Routes · nvml_collector.py NVML Collector · sampler.py GPU Sampler
Components 25
Telemetry Collection
- NVML Collector
src/gpuguard/collector/nvml_collector.py - GPU Metrics
src/gpuguard/collector/metrics.py - GPU Sampler
src/gpuguard/collector/sampler.py - ROS Monitor
src/gpuguard/monitor/ros_monitor.py - Topic Tracker
src/gpuguard/monitor/topic_tracker.py - Configuration
src/gpuguard/utils/config.py
Correlation Analysis
- Time Synchronizer
src/gpuguard/correlation/time_sync.py - GPU–ROS Correlator
src/gpuguard/correlation/correlator.py - Anomaly Detection
src/gpuguard/anomaly/detector.py
Diagnostics
- Recommendations
src/gpuguard/diagnostic/recommendation_engine.py - AI Diagnostics
src/gpuguard/diagnostic/ai_diagnostic.py - Diagnostic Prompts
src/gpuguard/diagnostic/prompt_templates.py
API and Dashboard
- FastAPI App
src/gpuguard/api/main.py - REST and WS Routes
src/gpuguard/api/routes.py - WebSocket Manager
src/gpuguard/api/websocket_manager.py - Dash Application
src/gpuguard/dashboard/app.py - Dashboard Layouts
src/gpuguard/dashboard/layouts.py - Dashboard Callbacks
src/gpuguard/dashboard/callbacks.py
ROS 2 Integration
- Collector Node
src/gpuguard/ros2/gpuguard_ros2/collector_node.py - Monitor Node
src/gpuguard/ros2/gpuguard_ros2/monitor_node.py - Correlator Node
src/gpuguard/ros2/gpuguard_ros2/correlator_node.py - Anomaly Node
src/gpuguard/ros2/gpuguard_ros2/anomaly_node.py
Other components
- NVIDIA GPU
- ROS 2 Stack
- Robot Operator
Connections 31
- NVIDIA GPU → NVML Collector: provides telemetry
- NVML Collector → GPU Metrics: builds samples
src/gpuguard/collector/nvml_collector.py - NVML Collector → GPU Sampler: collects into
src/gpuguard/collector/cli.py - GPU Sampler → GPU Metrics: stores states
src/gpuguard/collector/sampler.py - ROS 2 Stack → ROS Monitor: provides topic data
- ROS Monitor → Topic Tracker: records samples
src/gpuguard/monitor/ros_monitor.py - GPU Sampler → GPU–ROS Correlator: supplies GPU stream
- Topic Tracker → GPU–ROS Correlator: supplies ROS metrics
- GPU–ROS Correlator → Time Synchronizer: aligns samples
src/gpuguard/correlation/correlator.py - GPU–ROS Correlator → Anomaly Detection: supports detection
- Anomaly Detection → Recommendations: informs advice
src/gpuguard/diagnostic/recommendation_engine.py - GPU–ROS Correlator → AI Diagnostics: provides root-cause context
- AI Diagnostics → Diagnostic Prompts: uses templates
src/gpuguard/diagnostic/__init__.py - FastAPI App → REST and WS Routes: registers routes
src/gpuguard/api/main.py - FastAPI App → WebSocket Manager: closes connections
src/gpuguard/api/main.py - REST and WS Routes → GPU Sampler: reads GPU state
src/gpuguard/api/routes.py - REST and WS Routes → Topic Tracker: reads topic stats
src/gpuguard/api/routes.py - REST and WS Routes → GPU–ROS Correlator: requests causality
src/gpuguard/api/routes.py - REST and WS Routes → WebSocket Manager: handles subscriptions
src/gpuguard/api/routes.py - FastAPI App → Dash Application: serves live data
- Dash Application → Dashboard Layouts: uses layouts
src/gpuguard/dashboard/app.py - Dash Application → Dashboard Callbacks: registers callbacks
src/gpuguard/dashboard/app.py - Dashboard Callbacks → Dashboard Layouts: updates views
- Robot Operator → Dash Application: views telemetry
- Collector Node → NVML Collector: uses collector
src/gpuguard/ros2/gpuguard_ros2/collector_node.py - Monitor Node → ROS Monitor: uses monitor
src/gpuguard/ros2/gpuguard_ros2/monitor_node.py - Correlator Node → GPU–ROS Correlator: uses engine
src/gpuguard/ros2/gpuguard_ros2/correlator_node.py - Anomaly Node → Anomaly Detection: runs detection
src/gpuguard/ros2/gpuguard_ros2/anomaly_node.py - Configuration → NVML Collector: configures polling
src/gpuguard/collector/nvml_collector.py - Configuration → ROS Monitor: configures topics
src/gpuguard/monitor/ros_monitor.py - Configuration → GPU–ROS Correlator: configures analysis
src/gpuguard/correlation/correlator.py