My colleague worked on Lumina which solves a related problem of tracking compute cost with discounts and spot pricing: https://github.com/Nextdoor/lumina