Commands icon
If icon
SlackIncomingWebhook icon
Schedule icon

Apache Druid Real-Time Ingestion and Unserved Segment Drift Sentinel

Audits Apache Druid Coordinator for unserved segments and historical tier imbalances to prevent analytical query errors.

Categories
DataInfrastructure

How it works

This workflow connects to the Apache Druid Coordinator REST API (/druid/coordinator/v1/loadstatus?full) to audit datasource segment serving percentages across historical tiers. In Apache Druid, real-time ingestion tasks push published segments to deep storage (S3, GCS, HDFS), after which historical nodes download and serve them in memory. If historical tier disks run out of capacity, or network timeouts prevent segment downloads, segment load percentages drop below 100%. Queries hitting affected intervals return incomplete data or throw query exceptions. This workflow detects unserved segments and alerts analytics teams.

What you get

  • Real-time visibility into Apache Druid segment serving health.
  • Prevents silent analytical reporting gaps and missing time-window metrics.
  • Quantitative tracking of datasources with incomplete segment loads.

Who it's for

  • Real-Time Analytics Engineers and Druid Database Administrators.
  • SREs maintaining high-throughput OLAP reporting clusters.

Why orchestrate this with Kestra

  • Continuous Cluster Health Auditing: Regularly audits Coordinator load status automatically.
  • Decoupled Monitoring: Uses standard Druid REST endpoints without external monitoring agents.
  • Instant Team Escalation: Delivers notifications with affected datasources directly to Slack.

Prerequisites

  • Apache Druid cluster with Coordinator HTTP API accessible.
  • Secret SLACK_WEBHOOK configured in Kestra.

Quick start

  1. Import the blueprint.
  2. Input Druid Coordinator URL.
  3. Run the workflow to inspect segment load status.

How to extend

  • Query /druid/coordinator/v1/tiers to identify specific historical tiers running low on disk space.
  • Dynamically update retention rules via Coordinator API to purge stale historical partitions.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.