Agent Templates
Cost Optimizer Agent
Cloud spend analysis and recommendations
Cost Optimizer Agent
The Cost Optimizer Agent analyzes your cloud spending and recommends optimizations to reduce costs without sacrificing performance.
What It Does
- Analyzes cloud spend - Breaks down costs by service
- Identifies waste - Finds unused or orphaned resources
- Right-sizes instances - Recommends optimal sizing
- Schedules resources - Suggests scheduling for dev/test
- Reservation planning - Calculates savings from commitments
Supported Platforms
| Cloud | Cost Analysis | Recommendations | |-------|---------------|-----------------| | AWS | Full | Full | | GCP | Full | Full | | Azure | Full | Full | | Multi-cloud | Full | Full |
Configuration
agents:
- name: cost-optimizer
template: cost-optimizer
triggers:
schedule:
- cron: "0 9 * * 1" # Weekly on Monday
config:
# Cloud providers to analyze
providers:
- aws
- gcp
# Cost allocation tags
cost_tags:
- environment
- team
- project
# Minimum monthly savings to report
savings_threshold: 50
# Analysis scope
scope:
include_accounts:
- "123456789012"
exclude_services:
- AWSSupport
Cost Report Example
## Monthly Cost Optimization Report
### Summary
- **Current Monthly Spend:** $45,230
- **Potential Savings:** $8,450 (18.7%)
### Top Recommendations
| Category | Resource | Current | Recommended | Savings |
|----------|----------|---------|-------------|---------|
| Right-size | i3.2xlarge (db-prod) | $1,248/mo | i3.xlarge | $624/mo |
| Unused | EBS vol-0abc123 | $230/mo | Delete | $230/mo |
| Reserved | EC2 On-Demand | $5,400/mo | 1yr RI | $2,160/mo |
| Schedule | Dev instances | $2,100/mo | Stop nights/weekends | $1,400/mo |
### Orphaned Resources
- 12 unattached EBS volumes ($345/mo)
- 8 unused Elastic IPs ($29/mo)
- 3 stale snapshots >1yr ($156/mo)