Copacetic Container Vulnerability Hotpatch Engine
In-place container OS package hotpatching with SecOps approval gates and post-patch verification.
Monitor Apache Kafka partition replication and prevent data loss risks with Kestra. Query cluster metadata, open GitHub issues, and alert Slack.
Mission-critical streaming platforms rely on Apache Kafka's distributed replication protocol to safeguard event data against broker node failures. When a broker falls behind due to network saturation, I/O bottlenecks, or JVM garbage collection pauses, it drops out of the In-Sync Replicas (ISR) set, leaving partitions in an under-replicated state. If additional brokers fail while partitions are under-replicated, data loss or topic unavailability occurs. This blueprint queries Kafka cluster topic metadata periodically via an admin client, identifies partitions whose ISR count is smaller than configured replicas, opens a prioritized GitHub SRE incident ticket, and alerts the streaming platform team on Slack.
periodic_kafka_partition_check (io.kestra.plugin.core.trigger.Schedule) initiates the audit every 15 minutes (shipped disabled for safe verification).probe_under_replicated_partitions (io.kestra.plugin.scripts.python.Script) connects to the bootstrap brokers using KafkaAdminClient and reads partition replica vs ISR arrays across all topics.branch_on_under_replicated (io.kestra.plugin.core.flow.If) evaluates whether any partitions have fewer in-sync replicas than configured replicas (has_under_replicated == true):then: Automatically files a GitHub tracking issue via create_kafka_incident_issue (io.kestra.plugin.github.issues.Create) and alerts the Slack channel via alert_streaming_slack (io.kestra.plugin.slack.notifications.SlackIncomingWebhook).else: Emits an informational log entry (log_cluster_healthy) confirming all partitions are fully replicated.log_audit_complete (io.kestra.plugin.core.log.Log) records the final health summary.errors block alerts Slack if broker connection times out or authentication fails.Kestra coordinates external cluster admin API querying, replica metadata comparison, conditional escalation, and chat alerting in a single declarative workflow. It provides complete execution history and eliminates the need for separate standalone monitoring daemons or fragmented bash cron scripts.
GITHUB_TOKEN: GitHub token used to open incident issues.SLACK_WEBHOOK: Incoming Webhook URL for streaming alerts.bootstrap_servers (STRING, default kafka-broker1.internal.company.com:9092,kafka-broker2.internal.company.com:9092): Comma-separated list of Kafka broker endpoints.target_repository (STRING, default my-org/streaming-platform): Target GitHub repository for logging incident issues.outputs.probe_under_replicated_partitions.vars.total_partitions: Total count of partitions inspected.outputs.probe_under_replicated_partitions.vars.under_replicated_count: Number of partitions currently under-replicated.outputs.probe_under_replicated_partitions.vars.under_replicated_partitions: List of degraded partition objects (topic, partition, configured_replicas, in_sync_replicas).GITHUB_TOKEN and SLACK_WEBHOOK in your Kestra namespace.bootstrap_servers to match your cluster endpoints.periodic_kafka_partition_check trigger for continuous streaming health monitoring.kafka-reassign-partitions.sh) to rebalance partitions across healthy brokers.