New to Kestra?
Use blueprints to kickstart your first workflows.
Monitor worker disk usage on a schedule and alert Slack before the filesystem fills.
A full disk turns "everything is fine" into failed executions within one deploy. This blueprint reads df for your path hourly, alerts Slack past your threshold, and logs below it so the execution history is your usage trend.
check_disk (io.kestra.plugin.scripts.shell.Commands on Alpine) parses df -P and emits the usage percent via the ::{"outputs": ...}:: protocol. Parse failure reports 100%.over_threshold (io.kestra.plugin.core.flow.If) branches: breach -> alert_disk; passing -> log_ok.errors block alerts when the check itself fails.Schedule.df prints a number; the flow gives it state, a branch, an alert, and history. The next step (prune Docker images, rotate logs, page on-call) is one task away.
SLACK_WEBHOOK_URL: webhook for usage and failure alerts.path and threshold_percent.disk_usage.ForEach.