Библиотека / Мониторинг, эксплуатация и инциденты
Мониторинг, эксплуатация и инциденты
Обнаружение аномалий в расходах AWS и GCP с GPT-4o-mini и оповещения в Slack
Запускается каждое утро, сравнивает расходы AWS и GCP за вчера с недавней историей, отмечает всплески сверх пороговых значений в долларах, процентах и z-score и отправляет в Slack оповещения с AI-сводкой.
Что делает
## 💸 FinOps – Cloud Cost Anomaly Agent (AWS + GCP) For engineering and finance teams who find out about a runaway NAT gateway, a forgotten GPU instance or a BigQuery job gone wild when the monthly bill lands, weeks after the money is spent. ### How it works Every morning the workflow pulls yesterday's spend by service and region from AWS Cost Explorer and your GCP billing export. It compares each line with the previous day and the past week, and flags only real spikes that pass a dollar floor, a percentage jump and a z-score. For each AWS spike it pulls recent CloudTrail changes in that region. GPT-4o-mini combines them with the usage-type breakdown to suggest the most likely cause. Slack gets an alert with the cost, monthly impact, probable cause and two buttons: mark it expected, or ignore it for seven days. Every anomaly and decision is logged in Google Sheets. ### Setup steps 1. Create a Google Sheet with an Anomaly_Log tab. 2. Add AWS credentials with ce:GetCostAndUsage and cloudtrail:LookupEvents, and Google OAuth2 with BigQuery read for GCP. 3. Connect Slack and OpenAI. 4. In Set Cost Agent Config, turn each cloud on or off and set the GCP project, billing table, thresholds and your n8n base URL (used for the buttons). 5. Run once manually, then activate.
Шаги
- Every Day at 9 AM IST
- Set Cost Agent Config
- Read Anomaly Log Sheet
- AWS Enabled?
- Get AWS Cost by Service & Region
- Get AWS Cost by Usage Type
- Normalize AWS Costs
- GCP Enabled?
- Query GCP Billing Export
- Normalize GCP Costs
- Detect Day-over-Day Anomalies
- Loop Over Anomalies
- Build Run Summary
- Post Run Summary to Slack
Всего шагов: 29.
Похожие автоматизации
Изображения, видео и аудиоТранскрибация аудио из AWS S3 с помощью AWS TranscribeШагов: 4Изображения, видео и аудиоРасшифровка аудио из Google Drive с помощью AWS TranscribeШагов: 9Изображения, видео и аудиоРасшифровка аудиофайлов с помощью AWS TranscribeШагов: 8Документы, PDF и OCRИзвлечение текста из файлов Telegram через AWS Textract в AirtableШагов: 5