Repair stale Pushgateway labels for a live Kestra batch job
Reconcile stale Pushgateway labels with Kestra execution history then rewrite the batch metrics behind approval.
Audit ZincSearch index storage depth, detect unpruned index bloat and health degradation, alert on Slack, and safely enforce storage capacity quotas.
ZincSearch is a modern, lightweight, open-source search engine written in Go as a resource-efficient alternative to Elasticsearch for full-text search and log analytics. Requiring less than 100 megabytes of memory to index millions of records, ZincSearch is widely adopted across lightweight Kubernetes clusters, edge nodes, and developer environments. In production log aggregation and telemetry pipelines, unattended indexes can rapidly accumulate millions of documents, exhausting container volume capacity and triggering unrecoverable disk saturation. This blueprint establishes an automated operational sentinel that continuously verifies ZincSearch engine health, audits index storage usage against enterprise capacity limits, routes incident alerts to Slack, and provides guarded automated pruning of stale ephemeral indexes.
periodic_zincsearch_audit (io.kestra.plugin.core.trigger.Schedule) initiates automated surveillance every 15 minutes. Shipped disabled so initial manual verification can be performed first.probe_server_health (io.kestra.plugin.core.http.Request) invokes GET /healthz to verify node uptime and indexing core responsiveness.probe_index_registry (io.kestra.plugin.core.http.Request) invokes GET /api/index with basic authentication to inspect all registered indexes, document tallies, and storage volume sizes.classify_index_storage (io.kestra.plugin.core.flow.Switch) analyzes probe results:INSTANCE_UNHEALTHY: Fires when the health check endpoint returns a non-200 code or error status, routing an emergency Slack alert via io.kestra.plugin.slack.notifications.SlackIncomingWebhook.STORAGE_QUOTA_EXCEEDED: Fires when index storage approaches capacity bounds, notifying the SRE channel. If auto_purge_stale_indexes is enabled with dry_run disabled, executes purge_ephemeral_index (DELETE /api/index/{name}) to safely reclaim disk space.HEALTHY: Confirms nominal engine responsiveness and healthy storage margins.log_audit_summary (io.kestra.plugin.core.log.Log) writes an immutable audit record documenting evaluated index counts and operational health.errors handler catches network connection drops or invalid credentials, immediately dispatching a probe failure alert to Slack.dry_run defaults to true to ensure zero unexpected data loss during rollout.ZincSearch provides native REST endpoints but lacks built-in alerting, scheduling, or multi-step self-healing workflows. Relying on custom shell scripts or ad-hoc cron jobs introduces single points of failure, credential exposure, and zero audit lineage. Kestra delivers a declarative, version-controlled YAML blueprint with native scheduling, credential protection through secret masking, conditional branching, and complete execution observability.
zincsearch/zincsearch:latest) requiring no commercial license.SLACK_WEBHOOK_URL: Slack incoming webhook URL for operational alert notifications.ZINCSEARCH_ADMIN_USER: Administrative username for authenticating to the ZincSearch REST API.ZINCSEARCH_ADMIN_PASSWORD: Administrative password for authenticating to the ZincSearch REST API.docker run -d --name zincsearch-test -p 4080:4080 -e ZINC_FIRST_ADMIN_USER=admin -e ZINC_FIRST_ADMIN_PASSWORD=ComplexPassword123! zincsearch/zincsearch:latest
SLACK_WEBHOOK_URL, ZINCSEARCH_ADMIN_USER, and ZINCSEARCH_ADMIN_PASSWORD in your Kestra namespace secrets.dry_run: true).log_healthy_state logs nominal index counts and capacity status.curl -X POST http://localhost:4080/api/index -u admin:ComplexPassword123! -H "Content-Type: application/json" -d '{"name": "test-log-index", "storage_type": "disk"}'
alert_storage_quota_slack firing.periodic_zincsearch_audit to activate recurring 15-minute surveillance.io.kestra.plugin.prometheus to track index storage expansion trends and document velocity over time.io.kestra.plugin.pagerduty.notifications.PagerDutyAlert for high-severity search cluster outages.io.kestra.plugin.aws.s3.Upload before index pruning to preserve cold log archives.