New to Kestra?
Use blueprints to kickstart your first workflows.
Audit semantic metrics with Malloy and DuckDB in Kestra, detect KPI drift against baseline thresholds, and alert Slack to prevent reporting corruption.
Automated semantic data quality sentinel that executes reusable Malloy modeling queries over DuckDB on a recurring schedule to evaluate key performance indicators (KPIs), calculate statistical metric drift against historical baselines, and trigger alerts on critical deviations.
io.kestra.plugin.malloy.CLI task compiles and executes an embedded Malloy model against DuckDB, aggregating target business metrics across input partitions.NORMAL, DRIFT_WARNING, or CRITICAL_ANOMALY.Switch flow control task routes execution according to the evaluated status:NORMAL: Logs an informational audit record confirming metric stability within SLA tolerances.DRIFT_WARNING: Records an advisory warning alerting analytics engineers to subtle data shifts before reports break.CRITICAL_ANOMALY: Dispatches a formatted Slack incident alert via webhook with metric values and execution deep links, followed by an execution failure gate to quarantine downstream consumption.ghcr.io/kestra-io/malloy container image.SLACK_WEBHOOK_URL: Slack Incoming Webhook URL used to transmit critical metric drift alerts (required when alerts fire).SLACK_WEBHOOK_URL secret within your Kestra namespace or environment variables.company.analytics.metric_audit_schedule trigger for continuous monitoring.dataset_uri to production Parquet files on S3 or Google Cloud Storage to monitor live lakehouse tables.