Cost Guard
Cost Guard monitors your cloud infrastructure spending against configurable thresholds and alerts your team before costs spiral out of control. Instead of discovering surprise bills at the end of the month, you get notified the moment spending crosses your budget limits.
How It Works
Cost Guard connects to your cloud service APIs, polls for current usage data on a schedule, and compares metrics against your defined thresholds. When a threshold is breached, TinyOps sends a notification through your preferred channel.
Live Rules
Vercel Budget Alert
Monitors your Vercel month-to-date spend and alerts when it exceeds your configured threshold.
| Setting | Default |
|---|---|
| Metric | Month-to-date spend |
| Threshold | $50 |
| Trigger | Schedule (9 AM daily) |
| Notification | Slack |
name: vercel-budget-alert
trigger:
type: schedule
cron: "0 9 * * *"
provider: vercel
condition:
field: billing.mtd_spend
operator: gte
value: 50
action:
type: notify
channel: slack
message: "Vercel MTD spend is ${{billing.mtd_spend}}, exceeding $50 threshold"Supabase Row Limit
Monitors per-table row counts in your Supabase database and alerts when a table exceeds the configured row limit.
| Setting | Default |
|---|---|
| Metric | Table row count |
| Threshold | 10,000 rows |
| Trigger | Poll (every 1 hour) |
| Notification |
name: supabase-row-limit
trigger:
type: poll
interval: 1h
provider: supabase
condition:
field: table.row_count
operator: gte
value: 10000
action:
type: notify
channel: email
message: "Table '{{table.name}}' has {{table.row_count}} rows, exceeding 10,000 limit"Supabase row count checks use the database statistics view for performance. Counts may lag slightly behind real-time values. For exact counts, consider a lower poll interval.
Coming Soon
| Rule | Description |
|---|---|
| Daily Cost Digest | Aggregated daily summary of spending across all connected services |
Configuration Options
You can customize thresholds and notification channels for each Cost Guard rule:
| Option | Type | Description |
|---|---|---|
threshold | number | The spending or usage limit that triggers an alert |
channel | string | Notification destination: slack, email, or webhook |
schedule | string | Cron expression or poll interval for checking |
provider | string | Cloud service to monitor: vercel, supabase |
Related
- Schedules - configure when Cost Guard checks run
- Policies - enforce cost budgets as merge conditions
- Dashboard & Analytics - view cost alert trends over time