New to Kestra?
Use blueprints to kickstart your first workflows.
Monitors Milvus vector database for compaction backlogs and uncompacted segment growth to prevent query latency spikes.
This workflow queries the Prometheus /metrics endpoint of the Milvus DataCoord component (default port 9091) to monitor the milvus_datacoord_compacting_segment_count metric. In Milvus, continuous insert and delete operations create numerous small segments and tombstone records. Compaction merges small segments into larger indexed files (e.g. 512MB) to maintain fast index scans and clean deleted entities. When compaction falls behind, query nodes must scan dozens of unoptimized segments, causing vector query latency degradation. This workflow tracks compaction health and triggers alerts when backlogs build up.
SLACK_WEBHOOK configured in Kestra./v2/vectordb/entities/compact) when backpressure clears.