Pulling costs from API

Hello people, how are you?

I’ve been struggling to pull the costs per app/machine through Fly’s Machines REST API, but I still can’t do it as I’d like.
So far, I’ve created:

  • An app to get the costs of all 6 apps
  • An index.js as main script that consults Fly’s Machines REST API, calculates/obtains the daily cost per app/database and inserts it into Snowflake
  • A Docker file to deploy in Fly
  • Fly.toml to setup the app in Fly

All I could save in Snowflake so far is the information visible in the picture below from the partial table:

Does any body have tried pulling total costs (RUN_DATE APP_NAME COMPUTE_USD EXTRA_RAM_USD TOTAL_USD BANDWIDTH_USD REDIS_USD) from each of your apps by day?

If I comparte the sum of TOTAL_USD of one month with what the invoice says, I´m way behind that number.

Do yo need more information to help me? Please help me!

Thank you in advance.

Regards.

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