Hi
@Jens, yes I think it's something you can definitely achieve with DBT. But I don't really get why you would do this in a custom transformation for monitoring, because the datetimediff (and now() ) will be computed at transformation time and won't be updated afterward. I'd rather suggest you to create a view and your datawarehouse for this use case such as:
SELECT
DATETIME_DIFF(CURRENT_TIMESTAMP(), _airbyte_normalized_at, MINUTE) as normalization_delay
FROM
my_normalized_table