Back to Templates
This template monitors a set of tables inside a Postgres database to ensure they're getting updated.
If the table hasn't been updated in 3 days (configurable), an email alert is sent containing the tables that are stale.
You must have a Postgres database containing one or more tables that you'd like to monitor.
Each table to monitor must have a date or timestamp column that tracks when data was pushed.
For example, this might be:
timestamp
column if your table holds event/timeseries datalast_updated
column if your rows are expected to be modifiedProduce tables + date columns
node to produce pairs of [table, date_column]
that should be monitored for freshness
Remove fresh tables
node for your desired staleness window (default is 3 days, but you can adjust as you please)Send alerts
node to call whichever alerting workflow you please (I recommend my alerting workflow for easiest plug-and-play)This template works by: