Use Pulsar Realtime Trigger to push events into MySQL
Stream Apache Pulsar messages straight into MySQL in real time, one row per event.
Watch warehouse tables against freshness SLAs in Kestra. One query returns hours since the newest row per table, stale tables alert Slack with age and SLA.
A broken pipeline that stops loading does not usually fail - it stops producing rows. The dashboard keeps rendering yesterday's numbers with today's timestamp on the page, and the first person to notice is the analyst who sees their order count flatline. Freshness is the cheapest data-quality signal there is: newest row, compare against an allowance, and someone hears about it. This blueprint makes that signal a scheduled workflow instead of a widget nobody watches.
check_freshness (io.kestra.plugin.jdbc.postgresql.Query, FETCH) renders one UNION ALL statement over the tables input - for each entry it selects max(column) as last_row_at and the age in seconds, coexisting with the table's own max_age_hours. One round trip covers the whole watch list.classify (io.kestra.plugin.scripts.python.Script, stdlib only) compares every age against its SLA. A NULL age means the table has no rows at all - an empty table is stale, never fresh - and is reported with an age_display of no rows.freshness_gate (io.kestra.plugin.core.flow.If) posts one Slack message listing each stale table with its real age, its SLA, and the last row timestamp; a clean run logs a one-line all-clear.errors handler alerts Slack when the check itself fails, so a dead connection or a dropped table never reads as "everything is fresh".The watch list is a plain input: add a table by appending an entry with its timestamp column and hours of tolerance, no SQL edits required.
checked_count, stale_count, and the stale list as flow outputs for dashboards or escalation flows.Freshness checks are usually a cron script that nobody maintains until it silently dies. Kestra gives the check scheduled and webhook triggers, retries, a failure path that alerts instead of hiding, execution history with the actual ages recorded as outputs, and a shape you can extend into paging (add a Squadcast or PagerDuty task in the then branch) without rewriting the logic.
jdbc.postgresql plugin against most Postgres-backed warehouses).POSTGRES_JDBC_URL: JDBC URL for the warehouse (for example jdbc:postgresql://host:5432/analytics).POSTGRES_USERNAME: database username.POSTGRES_PASSWORD: database password.SLACK_WEBHOOK_URL: Slack incoming webhook URL for breach and failure alerts.tables input with your real tables, columns, and SLAs.check_freshness rows before trusting the gate.on_demand webhook after a load, then enable the hourly schedule.then branch to a data on-call tool (Squadcast, PagerDuty) instead of, or alongside, Slack.Flow trigger so freshness is checked the moment data lands.Switch on the table name.stale_count to a history table to chart freshness reliability over time.