OSVauco/scripts/cost-guard.sh
Chris Christiansen 9fcb9c354a
Some checks are pending
Check Python Version Consistency / Check Python Version (push) Waiting to run
feat(core): Fresh initialization - Deploy v3.6.1 Singularity Architecture
2026-09-03 04:03:09 +00:00

12 lines
491 B
Bash
Executable File

#!/bin/bash
# cost-guard.sh — Sjekk GCP-kostnader for propane-will-491900-m5
PROJECT="propane-will-491900-m5"
echo "=== Cost Guard ==="
gcloud billing budgets list \
--billing-account=$(gcloud billing accounts list --format='value(name)' | head -1) \
--format='table(displayName,amount.specifiedAmount.units,thresholdRules)'
echo ""
echo "=== Cloud Run metrics ==="
gcloud run services list --project=$PROJECT --region=us-central1 \
--format='table(SERVICE,REGION,LAST_DEPLOYED_AT)'