Cloud cost
Daily spend by service from AWS, Google Cloud or Azure.
In the console: Console → Observe → Cloud (Cost)
All guides
Cloud cost imports daily spend by service from AWS, Google Cloud or Azure and shows it next to load. Imports are idempotent: the same day and service update in place, so a daily cron is safe to re-run.
Why use it
- You want cloud spend by service next to the load it serves, and a warning on spikes.
How it works
- 1A daily job reads yesterday’s cost from your cloud’s billing API and posts it; repeated imports of the same day update in place.
What you get
- Daily spend by service and provider.
- Cost-by-service share and trends.
- Cost guard alerts on spend spikes.
Set it up
Get Started shows these commands with your key already filled in — copying from there is the quickest path. Here, <your-key> marks where it goes.
- 1
Run daily (cron or Lambda)
terminalaws ce get-cost-and-usage --granularity DAILY \ --time-period Start=$(date -d yesterday +%F),End=$(date +%F) \ --metrics UnblendedCost --group-by Type=DIMENSION,Key=SERVICE \ | jq '{items:[.ResultsByTime[0].Groups[] | {usage_date:"'$(date -d yesterday +%F)'",provider:"aws",service:.Keys[0],cost_usd:(.Metrics.UnblendedCost.Amount|tonumber)}]}' \ | curl -s -X POST "https://agent.appstatus.io/api/v1/ingest/cloud-cost" \ -H "Authorization: Bearer <your-key>" -H "Content-Type: application/json" --data-binary @-
- 1
From the billing export
Get Started shows a BigQuery query for the Google Cloud billing export and an Azure Cost Management call. Both map rows to {usage_date, provider, service, cost_usd} and POST them to /api/v1/ingest/cloud-cost.
Uninstall / remove
- 1
Stop the job
Remove the cron entry or scheduled function, then revoke the key.
Troubleshooting
The problems seen most, each with what to run. Still stuck? See the general Troubleshooting guide.
Yesterday is missing
Cloud billing data lags by up to a day. Import yesterday (not today) and let the next run update it.
Related guides
Something here does not match what you see in the console? Open Help → Support in AppStatus or write to support@appstatus.io with the page and what you ran.