# system_monitor.yaml — Config for saltybot_system_monitor (Issue #631)
system_monitor_node:
  ros__parameters:
    # Publishing rate in Hz
    publish_rate_hz: 1.0

    # Stats source: auto | jtop | tegrastats | mock
    # auto = prefer jtop, fall back to tegrastats, then mock
    stats_source: "auto"

    # Alert thresholds — WARN at these values, ERROR at +10% (or +5% for disk/ram)
    cpu_warn_pct:  85.0   # CPU utilisation  (%)
    gpu_warn_pct:  85.0   # GPU utilisation  (%)
    temp_warn_c:   80.0   # Any temperature sensor (°C)
    disk_warn_pct: 90.0   # Disk usage       (%)
    ram_warn_pct:  90.0   # RAM usage        (%)
    power_warn_mw: 30000.0  # Total board power (mW)
