New to Kestra?
Use blueprints to kickstart your first workflows.
Audit Cube.js semantic layer pre-aggregation partitions and build status, detect refresh failures, and dispatch automated Slack incident alerts.
Automated drift auditor and health gate that continuously monitors Cube.js universal semantic layer pre-aggregation tables and partition build statuses. Dispatches structured Slack incident notifications upon build failures or missing pre-aggregation models, preventing expensive raw table scans and degraded analytical dashboard response times.
probe_cube_readiness task queries GET /readyz on the target Cube.js server to confirm HTTP service status and background orchestration readiness.probe_pre_aggregations_status task queries GET /cubejs-api/v1/pre-aggregations using an authenticated API token to extract partition metadata, build statuses, and error details across registered cubes.target_cube, counting build failures, and checking partition availability against min_expected_pre_aggregations.evaluate_pre_aggregation_health flow-control Switch evaluates the classified operational state:COMPLIANT: Logs clean audit metrics when all expected pre-aggregation tables are built and healthy.BUILD_FAILED: Formats and dispatches a rich Slack warning containing target cube details and failed partition alerts.PRE_AGGREGATION_MISSING: Posts a high-priority Slack incident alert notifying data engineers that pre-aggregation definitions or storage tables are missing.SERVICE_UNHEALTHY: Alerts on-call teams immediately if the Cube.js readiness probe returns non-ok status.log_audit_summary task records execution audit telemetry, and an errors block intercepts connection timeouts or authentication failures with automated Slack escalations.{{ secret(...) }} without plaintext exposure.Switch tasks.CUBEJS_API_TOKEN: Administrative API secret or JWT token for authenticating against the Cube.js REST API.SLACK_WEBHOOK_URL: Slack Incoming Webhook endpoint URL used for operational alerts.CUBEJS_API_TOKEN, SLACK_WEBHOOK_URL) in your Kestra namespace settings.company.analytics).cube_host and target_cube to validate connectivity against your instance.scheduled_sentinel_audit trigger to establish recurrent 4-hour automated freshness evaluations.POST /cubejs-api/v1/pre-aggregations/jobs).Flow trigger immediately following dbt model materialization.SERVICE_UNHEALTHY states directly to PagerDuty or Opsgenie on-call schedules.ForEach loop task to iterate across an array of critical semantic cube models.