You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Budget alerts are sent to the billing account administrators via email.
To add specific notification channels (e.g., Pub/Sub, Slack), configure them in the
GCP Console under Billing > Budgets & alerts.
Manual Budget Setup (Console)
If the gcloud budget command fails (permission issues):
Go to GCP Console → Billing → Budgets & alerts
Click Create Budget
Set Name: ai-product-detector-monthly
Scope → Select your project
Amount → Set per environment (10 EUR dev, 50 EUR prod), Budget type: Specified amount
Thresholds → Add rules at 50%, 80%, 100% of actual spend
Under Notifications, add your email via a Monitoring Notification Channel
Click Finish
Cloud Run Configuration
Parameter
Value
Cost Impact
Max instances
3
Caps parallel compute
Min instances
0
Scale to zero = no idle cost
CPU
1 vCPU
Allocated per request
Memory
1 GiB
Per container instance
Concurrency
80 (default)
Requests per instance
Timeout
300s (default)
Max request duration
Startup probe
TCP, 240s timeout
Allows time for model loading
These values are defined in terraform/environments/prod/main.tf. The dev
environment uses smaller defaults (512 Mi memory, max 2 instances).
For a project with light traffic, monthly costs should stay well under the configured budget.
The main potential cost driver is Artifact Registry storage if many large images accumulate.