New to Kestra?
Use blueprints to kickstart your first workflows.
Monitor nginx 5xx response rate from the access log and alert Slack when it exceeds your ceiling.
Error rates spike silently between dashboards. This blueprint samples the trailing nginx access log lines, computes the 5xx share, and alerts Slack past your ceiling every ten minutes.
rate_errors (io.kestra.plugin.scripts.shell.Commands on Alpine) tails the log, counts 5xx status codes, and emits the rate via the ::{"outputs": ...}:: protocol. Missing log or empty sample reports 100%.rate_breached (io.kestra.plugin.core.flow.If) branches to alert_high_rate or log_ok.errors block alerts on failure.*/10 Schedule.grep counts 5xx lines; the flow turns it into a decision on a cadence, with alerts and history. The next step (rollback trigger, upstream restart, page on-call) is one task away.
SLACK_WEBHOOK_URL: webhook for breach and failure alerts.log_path, window_lines, max_error_rate_percent.error_rate_percent.