Kütüphane / Veri Senkronizasyonu ve ETL
Veri Senkronizasyonu ve ETL
Score PostgreSQL table data quality and send issue alerts to Slack
When you run it, it moves and syncs data using Postgres, Slack.
Ne yapar
## Data Quality Engine: Missing, Duplicate and Anomalous Records ### How it works Scans any PostgreSQL table on a schedule (or on demand) and scores its quality. 1. Missing: required columns that are NULL or blank. 2. Duplicates: records that share the same business key, compared after trimming, lower-casing and collapsing spaces (so USER5@x.com matches user5@x.com). 3. Anomalies: numeric outliers found with a robust z-score (median and MAD, so the outliers themselves do not distort the baseline). Above 2x the threshold is critical. 4. Table health: freshness (is new data arriving?) and volume (is today's load far from the recent average?). Each run gets a 0-100 score from four dimensions (completeness, uniqueness, validity, timeliness), stored in dq_runs. Individual problems go to dq_issues, only once while they stay open, and are resolved automatically when fixed. Slack is notified only when something needs attention. ### Setup steps - Add Postgres credentials to all Postgres nodes and run the manual setup once. - Edit Set DQ Config: table, primary key, timestamp column, required, duplicate-key and numeric columns, thresholds, Slack webhook. The defaults check the demo table. - Set scopeHours to e.g. 24 to check only recent rows (0 = whole table, which also enables auto-resolve). - Activate the workflow. Trigger it any time with POST /dq-run. ### Layout 1 Setup 2 Triggers and configuration 3 Checks 4-5 Score, persist and alert
Adımlar
- Manual Trigger - Run Setup Once
- Postgres - Create DQ Tables
- Schedule Trigger - Hourly
- Webhook - Run Check On Demand
- Set DQ Config
- Code - Build Check Queries
- Config Valid?
- HTTP - Slack Config Error Alert
- Postgres - Detect Missing Values
- Postgres - Detect Duplicate Records
- Postgres - Detect Anomalous Values
- Postgres - Table Health Stats
- Code - Score & Classify
- Postgres - Save Run & Issues
Toplam 18 adım.
Benzer otomasyonlar
CRM ve Satış HattıPostgreSQL verileriyle müşteri kayıp riskini puanla ve Gemini ile Slack'i uyar17 adımVeri Senkronizasyonu ve ETLPostgreSQL Tablosunu CSV Dosyasına Aktarma4 adımVeri Senkronizasyonu ve ETLPostgreSQL Tablosunu CSV Dosyasına Aktarma6 adımVeri Senkronizasyonu ve ETLCSV Dosyalarını PostgreSQL'e Aktarma7 adım