Feature request: Outbound bandwidth usage API endpoint

Hi folks, thought I’d toss out a feature request for an API endpoint to get bandwidth usage for a Fly app.

My use case is for automatically billing end-users for outbound bandwidth used. Currently this is a pain, but I know Fly is tracking bandwidth, so it would be amazing to be able to get that with an API call.

Ideally we’d be able to request with date ranges or the current period, but I’d be happy with just the current period for now.

Thanks for considering it!

1 Like

Hey there! I think we already have what you need:

Spoilers: we use that same thing to track bandwidth.

Oh wow, I didn’t realize we could directly access metrics over an API. That’s perfect!

1 Like

Is the outbound bandwidth number calculated with the fly edge data out metric? Or something else?

I don’t have context on that bit so I’ll leave for others to reply :sweat_smile:

I’m also interested in this since I’m running user code via FLy Machine and would like to bill them for bandwidth just like I’m charged

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.