Library / Monitoring, Ops & Incidents
Monitoring, Ops & Incidents
Detect and remediate data pipeline anomalies with Claude, PostgreSQL and Slack
Every 15 minutes checks the latest data batch in PostgreSQL for anomalies, has Claude draft and run fixes, validates results, logs outcomes, and escalates failed remediations for human review.
What it does
## Untitled workflow ### How it works This workflow monitors data pipelines for anomalies using statistical and ML-based methods. It triggers every 15 minutes to fetch and analyze the latest data batch. Anomalies are classified and remediation plans are generated using AI. Remediation actions are executed and validated for success. Critical issues trigger PagerDuty alerts, while failures escalate to human review. Successful remediations and incidents are logged for further analysis. ### Setup steps - [ ] Configure PostgreSQL credentials for fetching and logging data. - [ ] Set up Anthropic API credentials for anomaly classification and remediation planning. - [ ] Configure Slack credentials for notifications and human review escalation. - [ ] Set up PagerDuty API credentials for critical alerts. - [ ] Configure DataDog API credentials for metrics and baseline updates. ### Customization Adjust the nullThreshold, outlierIQRMultiplier, and slackChannel in the Workflow Configuration node based on pipeline requirements. Modify the SQL queries in PostgreSQL nodes to match your schema.
The steps
- When Scheduled Run Starts
- Set Pipeline Parameters
- Fetch Latest Data from PostgreSQL
- Run Statistical Quality Checks
- Check If Anomaly Detected
- AI Anomaly Classifier Agent
- AI Remediation Planner Agent
- Route by Remediation Type
- Remediate Missing Values
- Remediate Outliers
- Remediate Schema Format
- Retry Upstream Data Fetch
- Merge Remediated Data Streams
- Re-run Quality Checks on Remediated Data
33 steps in total.
Similar automations
Alerts & NotificationsDetect and investigate subscription revenue anomalies with Postgres and Claude34 stepsMonitoring, Ops & IncidentsTriage and remediate incidents with Anthropic Claude and Slack40 stepsMonitoring, Ops & IncidentsDetect Meta Ads spend anomalies and creative fatigue with OpenAI and Slack54 stepsCode, Git & Developer ToolsMonitor KPI anomalies with Postgres, Slack, Gmail, GitHub and Claude58 steps