flow-go icon indicating copy to clipboard operation
flow-go copied to clipboard

[Mainnet25] Update Machine Account Status Reporting for FLIP 74

Open jordanschalm opened this issue 11 months ago • 1 comments

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 with ComponentManager
  • [ ] TODO: Update minimum balance recommendation constants

Localnet Testing

Node reporting a misconfiguration: image

Node reporting balance changes: image

Suggested query for balance alerts: image

jordanschalm avatar Mar 21 '24 16:03 jordanschalm