PVCWatch - Kubernetes stuck PersistentVolumeClaim watcher
Watches Kubernetes PVCs and alerts on Slack when one gets stuck in Pending.
Monitor NATS JetStream consumer lag with Kestra, classify backlog severity, trigger Slack alerts, and publish remediation signals to prevent message stalls.
Automated Day 2 Operations sentinel that probes NATS JetStream durable consumers on a regular schedule to sample unacknowledged backlog accumulation, classify severity, alert engineering channels on threshold breaches, and publish quarantine control signals.
io.kestra.plugin.nats.core.Consume task binds to the designated durable consumer and samples available unacknowledged messages within the bounded poll duration.HEALTHY, WARNING, or CRITICAL).Switch flow control task branches based on the evaluated status:HEALTHY: Emits an informational log confirming consumer group latency is within acceptable tolerance.WARNING: Records an advisory warning log for engineering review before backlogs cascade.CRITICAL: Dispatches a formatted Slack incident alert via webhook, and optionally publishes a dead-letter drain control payload via io.kestra.plugin.nats.core.Produce when auto-remediation is enabled.-js flag).SLACK_WEBHOOK_URL: Slack Incoming Webhook URL used to transmit critical consumer lag alerts (required when critical alerts fire).SLACK_WEBHOOK_URL secret within your Kestra namespace or environment variables.company.team.nats://localhost:4222).consumer_lag_schedule trigger for continuous monitoring.CRITICAL branch for high-priority on-call paging during off-hours.