Multi-Tenant CI/CD, Promote Kestra Flows Across Environments and Tenants Automatically
Promote Kestra flows across tenants and environments automatically using the Kestra REST API on a schedule.
Monitors Thanos Compact for halted compaction cycles and overlapping TSDB block errors to prevent query inconsistencies.
This workflow monitors the Prometheus /metrics endpoint of the Thanos Compact component to audit the critical thanos_compact_halted metric. Thanos Compact is responsible for downsampling (5m and 1h resolutions) and merging 2-hour Prometheus TSDB blocks stored in cloud object storage (S3, GCS, Azure Blob). When it discovers overlapping blocks or corrupt meta files, it immediately halts processing to avoid corrupting global time-series data. This workflow detects halted states and raises critical alerts before historical queries fail.
/metrics port exposed.SLACK_WEBHOOK configured in Kestra.thanos tools bucket inspect to identify specific overlapping block ULIDs.