You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: HEARTBEAT.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,16 @@ Silent. No Discord message.
18
18
19
19
## 2. Infrastructure Monitoring (every run)
20
20
21
-
Run `df -h /` and `free -m`. Also run `mcporter call x402 get_wallet_info` to check wallet balance. Only alert if:
21
+
Run `df -h /` and `mcporter call x402 get_wallet_info` to check disk and wallet.
22
+
23
+
For RAM: read `/tmp/craig-ram-peak` which tracks the highest RAM % since last reset (sampled every 15s by `craig-ram-monitor.service`). After reading, reset it: `echo "0" > /tmp/craig-ram-peak`.
24
+
25
+
Only alert if:
22
26
- Disk usage > 70%
23
-
- RAM usage > 75%
27
+
-Peak RAM usage > 75% (since last heartbeat)
24
28
- x402 wallet balance < $2.00
25
29
26
-
If any threshold is breached: send one short message to Discord with the number(s). If all fine: say nothing.
30
+
If any threshold is breached: send one short message to Discord with the number(s) and timestamp. If all fine: say nothing.
0 commit comments