API Evolution Watchtower
Monitor third-party OpenAPI specifications for consumer-impacting contract changes and govern accepted revisions with persistent PASS/WARN/BLOCK decisions.
Read a Render service's deploys every hour, change nothing, and alert Slack when the latest deploy failed, failures pile up or a deploy is stuck.
On Render, a failed deploy does not take the service down: the previous version keeps serving traffic, the push to main looks done, and the failure only shows up as build_failed, pre_deploy_failed or update_failed on the service's Events page. The migration, the hotfix or the new endpoint the team is waiting for is simply not live. Auto-deploys that fail on every push, or a deploy that hangs on its pre-deploy command, are just as easy to miss. This blueprint turns a scheduled, read-only call to the Render API into a deploy health gate: io.kestra.plugin.core.http.Request reads the service's recent deploys, one jq query finds the latest result, the failure rate and deploys that are stuck, and the result routes to a quiet log or a Slack alert.
list_deploys (io.kestra.plugin.core.http.Request) calls GET /v1/services/{serviceId}/deploys?limit=100&createdAfter=... with a bearer API key, which returns deploys created in the lookback window, each wrapped as {deploy, cursor}. It is a read: nothing is deployed, rolled back, suspended or restarted. Retries cover short network blips, and allowFailed plus allowFailure keep an API error from aborting the flow so it can be reported instead.summarize_deploys (io.kestra.plugin.core.debug.Return) first guards for a missing or non-200 response (UNREACHABLE). Otherwise one jq query treats live and deactivated (a deploy that went live and was later replaced) as successful, build_failed, update_failed and pre_deploy_failed as failed, and created, queued, build_in_progress, pre_deploy_in_progress and update_in_progress as in flight, flagging the ones older than stuck_minutes. canceled deploys are ignored. If the latest finished deploy failed, the check is CRITICAL; a failure rate at or above warning_failure_rate, or any stuck deploy, is WARNING; no finished deploy in the window is LOW_VOLUME; otherwise HEALTHY.route_by_deploys (io.kestra.plugin.core.flow.Switch) branches on that classification: HEALTHY and LOW_VOLUME log quietly, WARNING posts a Slack note, CRITICAL and UNREACHABLE page Slack. A defaults fallback logs anything unexpected.log_audit_result (io.kestra.plugin.core.log.Log) writes one audit line per run with the HTTP status and the full summary.errors block pages Slack if the flow itself fails, and the hourly_check trigger runs at 45 minutes past every hour, shipped disabled: true.status output (HEALTHY / WARNING / CRITICAL / LOW_VOLUME / UNREACHABLE) other flows can gate on, for example to hold a dependent release until the API really deployed.new_commit, manual, deploy_hook, ...), the commit and the number of stuck deploys.Render can notify on deploy events, but it does not tell you that the latest deploy is still failed an hour later, that half of today's pushes failed, or that a deploy has been running its pre-deploy command for 30 minutes. Kestra turns a plain, read-only API call into a scheduled, typed classification with retries, a failure path and an execution history, and the same flow runs against any number of services by changing service_id.
srv-...) from the service URL or its Settings page.RENDER_API_KEY: a Render API key for a user with access to the service.SLACK_WEBHOOK: Slack incoming webhook used for every alert branch and the flow-failure alert.In Kestra OSS, secrets are supplied as environment variables prefixed SECRET_ and base64-encoded, for example SECRET_RENDER_API_KEY=$(echo -n 'your-render-api-key' | base64), and read back with {{ secret('RENDER_API_KEY') }}. Use the Enterprise secrets backend for encryption at rest and access control.
RENDER_API_KEY and SLACK_WEBHOOK as secrets.service_id and run the flow manually; compare the counts and the latest deploy in the logs with the service's Events page.hourly_check.io.kestra.plugin.core.flow.ForEach and one service_id per item.status query parameter to read only failed deploys over a longer window.service_id: type STRING, default srv-your-service-id.lookback_hours: type INT, default 24.warning_failure_rate: type FLOAT, default 20.0 (percent).stuck_minutes: type INT, default 30.status: one of HEALTHY, WARNING, CRITICAL, LOW_VOLUME, UNREACHABLE.{{ fromJson(outputs.summarize_deploys.value).latest }} for the latest finished deploy.LOW_VOLUME even if an older deploy failed.cursor for more.LOW_VOLUME, since canceled deploys are not judged.