Couchbase TTL expiry triage sentinel
Scan a Couchbase collection for documents nearing TTL expiry and either log a dry-run triage report or quarantine them, with a Slack report per run.
Audit SingleStore streaming pipelines, detect stalled or error states, dispatch Slack incident alerts, and automate START PIPELINE recovery.
SingleStore is a high-performance, distributed SQL database engineered for operational and real-time analytical workloads. Its native Pipelines feature provides scalable, exactly-once streaming ingestion from Kafka, AWS S3, Google Cloud Storage, Azure Blob Storage, and file systems directly into relational tables without third-party ETL plumbing. In production, unannounced schema drift, corrupted JSON payloads, expired cloud storage access keys, or transient upstream broker timeouts cause pipelines to enter an Error state and halt ingestion. When a pipeline stops, real-time dashboards and analytics applications serve increasingly stale data without raising query-level SQL errors. This blueprint provides continuous automated surveillance over information_schema.PIPELINES and information_schema.PIPELINES_ERRORS, classifies ingestion health, escalates incident alerts to Slack, and safely executes START PIPELINE remediation to recover streaming data flows.
every_fifteen_minutes) initiates diagnostic pipeline health checks every 15 minutes, with manual runs supported via customizable inputs.probe_stalled_pipelines) connects to SingleStore over the MySQL wire protocol (port 3306) via io.kestra.plugin.jdbc.mysql.Query and queries information_schema.PIPELINES joined with recent error details from information_schema.PIPELINES_ERRORS for any pipeline whose state is not Running.Error state (CRITICAL), manually stopped (WARNING), all operating normally (HEALTHY), or if the database connection failed (PROBE_FAILED).route_by_pipeline_health) switches execution along dedicated paths according to the classified severity.CRITICAL or WARNING states, structured Slack incident cards notify operations channels with impacted database names, pipeline identifiers, failure counts, and remediation states.check_remediation) checks whether auto_restart is enabled and dry_run is disabled. If confirmed, restart_pipelines iterates across stalled pipelines and executes START PIPELINE commands to safely resume streaming ingestion.PROBE_FAILED, dedicated alerts notify administrators of unreachable ports or authentication failures.log_audit_summary) writes execution metadata and evaluated pipeline counts to task logs.START PIPELINE commands for failed ingestion streams.information_schema.PIPELINES and information_schema.PIPELINES_ERRORS, plus administrative privileges to run START PIPELINE.SINGLESTORE_USERNAME: Username for authenticating to the SingleStore MySQL wire protocol port.SINGLESTORE_PASSWORD: Password for the SingleStore database user.SLACK_WEBHOOK_URL: Incoming webhook URL for posting incident cards to Slack.SINGLESTORE_USERNAME, SINGLESTORE_PASSWORD, and SLACK_WEBHOOK_URL in your Kestra namespace secrets.dry_run: true to verify connectivity against your SingleStore cluster.information_schema.PIPELINES.every_fifteen_minutes schedule trigger to activate automated continuous monitoring and remediation.CLEAR PIPELINE ERRORS FOR <pipeline>; preceding START PIPELINE for pipelines blocked by error buffer limits.io.kestra.plugin.pagerduty.notifications.PagerDutyAlert for high-priority production data landing stalls.