blumeops/ansible/roles/alloy/handlers/main.yml
Erich Blume 358bbcdffb Add macOS power/thermal metrics collection and dashboard
- Add powermetrics collector to Alloy role (via LaunchDaemon, requires root)
- Collect CPU, GPU, ANE power (watts) and thermal pressure level
- Add "Power & Thermal" section to macOS Grafana dashboard with:
  - Total power stat
  - Thermal pressure indicator (Nominal/Moderate/Heavy/Critical)
  - Stacked power consumption graph (CPU/GPU/ANE)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 16:59:07 -08:00

13 lines
521 B
YAML

---
- name: Restart alloy
ansible.builtin.shell: |
launchctl unload ~/Library/LaunchAgents/mcquack.eblume.alloy.plist 2>/dev/null || true
launchctl load ~/Library/LaunchAgents/mcquack.eblume.alloy.plist
changed_when: true
- name: Reload macos-power-metrics
ansible.builtin.shell: |
launchctl unload /Library/LaunchDaemons/mcquack.eblume.macos-power-metrics.plist 2>/dev/null || true
launchctl load /Library/LaunchDaemons/mcquack.eblume.macos-power-metrics.plist
become: true
changed_when: true