Hey team,
I’m using Sprites fairly heavily and want to track usage programmatically so I can understand where my costs are going. Right now I’m finding it difficult to reconcile what I’m being charged.
A couple of specific questions:
1. Is there an API for per-sprite usage data?
I need to see CPU-hours, memory-hours, and storage per sprite. The Sprites API gives me status, last_started_at, and last_active_at, but nothing about actual resource consumption. I can see totals in the Fly.io Cost Explorer dashboard, but I need this data programmatically — ideally broken down per sprite so I can track which environments are costing what.
Is there an existing API endpoint for this, or is it on the roadmap? Even a daily usage dump or webhook on billing events would work.
2. Help understanding a high bill last month
My bill for March was significantly higher than expected, specifically RAM costing nearly $60 just with my personal experimentation for a few hours. I’m using auto_stop with a 30-minute idle timeout and actively stopping sprites when sessions end, so I didn’t expect the compute hours to be this high. It’s hard to debug without per-sprite usage breakdowns.
Is there any way to see which sprites consumed the most resources, or get a breakdown of CPU vs memory vs storage costs? The Cost Explorer groups everything under “Sprites” > “RAM” without much granularity.
Thanks!