New to Kestra?
Use blueprints to kickstart your first workflows.
Monitors Google Cloud Pub/Sub oldest_unacked_message_age to detect subscriber processing stalls and message backlog.
This workflow executes gcloud monitoring timeseries list to evaluate pubsub.googleapis.com/subscription/oldest_unacked_message_age. In event-driven architectures, when subscriber applications crash, deadlock on external database calls, or encounter poison-pill messages, unacknowledged messages pile up in the subscription backlog. If messages remain unacked beyond the threshold, Slack is notified immediately before message retention deadlines expire.
GCP_SERVICE_ACCOUNT and SLACK_WEBHOOK configured in Kestra.num_undelivered_messages to monitor backlog depth alongside message age.