Watch SQL Server tempdb Before It Fills the Instance
Sample tempdb usage on a schedule or webhook, escalate to Slack and GitHub above your threshold, and keep per-file recommendations.
Audit GreptimeDB time-series database health, monitor table inventory, classify node status, and trigger automated LSM-tree storage compaction via Kestra.
Continuously audits GreptimeDB time-series clusters by probing administrative health endpoints, verifying table inventory across information schemas, classifying node availability, alerting engineering teams on Slack, and orchestrating guarded storage compaction.
probe_greptimedb_health issues an HTTP GET probe against /health to verify that the GreptimeDB HTTP server and runtime loops are operational.probe_table_inventory queries information_schema.tables via the /v1/sql HTTP endpoint, extracting active table counts and storage engines.classify_health_status evaluates response codes and table metrics through a Pebble conditional expression, categorizing the cluster into HEALTHY, WARNING, CRITICAL, or NODE_UNREACHABLE.route_by_health_status switches execution based on classification:HEALTHY: Logs database metrics, total active tables, and SQL query execution latency.WARNING: Dispatches a Slack notification warning of table count anomalies, and if enabled, delegates to safe table compaction.CRITICAL: Alerts on-call engineers via Slack that /v1/sql queries are failing despite a reachable process.NODE_UNREACHABLE: Notifies operations that GreptimeDB HTTP port 4000 is down or experiencing network partitions.check_auto_compaction evaluates auto_compact and dry_run inputs. When enabled with dry_run: false, it issues ADMIN COMPACT_TABLE('<target_table>', 'regular') to merge fragmented SST files and purge expired rows.log_audit_summary produces structured outputs capturing health classifications and execution parameters for compliance tracking.errors captures unexpected task exceptions and posts a high-priority incident notice to Slack.auto_compact with a mandatory dry_run safety latch.Time-series databases like GreptimeDB continuously ingest high-velocity data, causing rapid accumulation of uncompacted SST files and MemTable flushes. Running unmanaged cron scripts to monitor health or trigger maintenance lacks observability, centralized secret management, retry mechanisms, and auditable history. Kestra provides declarative, reproducible orchestration with built-in scheduling, granular failure alerts, dynamic parameterization, and stateful tracking across all cluster nodes.
SLACK_WEBHOOK: Incoming Slack webhook URL used by alert_warning_slack, alert_critical_slack, alert_unreachable_slack, and the errors handler.SLACK_WEBHOOK secret within your Kestra namespace or environment variables.docker run -d --name greptimedb -p 4000:4000 greptime/greptimedb:latest standalone start
dry_run: true to verify connectivity against greptimedb:4000 (or localhost:4000).target_table name (e.g., cpu_metrics) and set auto_compact: true with dry_run: false to test automated compaction.every_15_minutes trigger to automate continuous health monitoring and maintenance.io.kestra.plugin.scripts.shell.Commands to scrape /metrics and alert on write amplification or disk queue depth.io.kestra.plugin.core.flow.Loop.