flow-go
flow-go copied to clipboard
[Mainnet25] Update Machine Account Status Reporting for FLIP 74
Context
This PR updates machine account status reporting, in preparation for FLIP 74 which we anticipate being applied around the Crescendo spork.
- Adds metrics for machine account misconfiguration and account balance notification (previously only logged)
- Adds metric for recommended minimum, so operators can uniformly alert on
balance - min < 0
- Adds the machine account address in the metric's constant labels
- Runs reporter routine persistently in the background, with a longer polling period
- Replaces
engine.Unit
withComponentManager
- [ ] TODO: Update minimum balance recommendation constants
Localnet Testing
Node reporting a misconfiguration:
Node reporting balance changes:
Suggested query for balance alerts: