Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Autonomous FinOps Sentinel: Orchestrating TimescaleDB Anomaly Detection with Google Gemini AI in Kestra

Описание и применение

Автономный FinOps Sentinel использует TimescaleDB, Google Gemini и Kestra для обнаружения аномалий расходов в реальном времени, диагностики причин с помощью ИИ и отправки контекстных оповещений в Slack, уменьшая время расследования и устраняя шум от статических правил.

Задача

End‑of‑month cloud billing surprises caused by uncoordinated resource provisioning, alert fatigue from static thresholds, and lack of contextual insight into spending spikes.

Результат

The sentinel detects spending spikes in sub‑millisecond time, provides AI‑generated remediation steps, and sends severity‑based Slack alerts, cutting on‑call investigation time and eliminating alert fatigue.

Рабочий процесс

  • Trigger hourly schedule in Kestra
  • Query TimescaleDB continuous aggregates to compute rolling mean, variance, and z‑score for each spend category
  • If z‑score exceeds threshold, build anomaly JSON payload
  • Send payload to Google Gemini 1.5 Flash for structured root‑cause analysis
  • Receive JSON with severity, summary, remediation_action, urgency_score
  • If severity is CRITICAL or HIGH, record incident in Kestra KV store and send Slack Block Kit alert; otherwise log nominal status

Доказательства

It creates a real‑time, automated financial surveillance system that monitors cloud spending timeseries in TimescaleDB Continuous Aggregates (CAGGs), detects statistical spending spikes, invokes Google Gemini 1.5 Flash for contextual root‑cause diagnosis, and orchestrates remediation alerts directly into Slack.

Источник

Uncoordinated Provisioning: A developer spins up on‑demand GPU clusters (p4d.24xlarge) or an unthrottled LLM embedding pipeline, forgetting to terminate it on Friday night.

Источник

The workflow triggers at the top of every hour (io.kestra.plugin.core.trigger.Schedule). It calculates rolling standard deviations over recent hourly buckets from Timescale continuous aggregates:

Источник

json { "severity": "CRITICAL", "summary": "Cloud Infrastructure spend surged by 470% (Z-Score: 4.2) due to uncoordinated on‑demand GPU instance provisioning.", "remediation_action": "Audit active AWS us-east EC2 clusters and terminate orphaned p4d.24xlarge on‑demand instances immediately.", "urgency_score": 9 }

Источник

  • Дата записи: 2026-10-15T00:56:08.065Z