New to Kestra?
Use blueprints to kickstart your first workflows.
Audit ArangoDB multi-model cluster supervision, monitor node health, detect failed cluster members, and dispatch Slack incident alerts via Kestra.
Continuously audits distributed ArangoDB multi-model clusters by querying Agency supervision health endpoints, evaluating coordinator and DBServer heartbeat vitality, classifying cluster status, and dispatching incident alerts to Slack.
probe_cluster_health queries the ArangoDB administrative endpoint /_admin/cluster/health using HTTP authentication to retrieve real-time supervision status for all cluster nodes.probe_server_role queries /_admin/server/role to verify that the targeted endpoint is operating as an active coordinator.probe_engine_version queries /_api/version to extract server version and engine attributes.classify_cluster_status evaluates supervision responses through a Pebble conditional expression:FAILED (prolonged missed heartbeats) and classifies state as CRITICAL_NODE_FAILURE.BAD (transient heartbeat failure) and classifies state as WARNING_DEGRADED_NODE.GOOD status to classify state as HEALTHY.CLUSTER_UNREACHABLE.route_by_cluster_status branches workflow execution based on the classification:HEALTHY: Logs cluster identifiers, member node counts, and engine versions.WARNING_DEGRADED_NODE: Alerts operations on Slack with exact node IDs, roles, and endpoints missing heartbeats.CRITICAL_NODE_FAILURE: Dispatches a high-priority Slack alert naming failed coordinators or DBServers requiring immediate remediation.CLUSTER_UNREACHABLE: Alerts on-call engineers that coordinator HTTP endpoints are offline.log_audit_summary produces structured outputs recording cluster IDs, node counts, and classification states for compliance tracking.errors catches unexpected task exceptions and posts a diagnostic notice to Slack.ArangoDB clusters depend on the Agency and Supervision consensus to maintain active shard leases and coordinator routing. If a DBServer fails or an agent drops out, running unmonitored can degrade graph queries and compromise transactional integrity. Kestra delivers automated, declarative orchestration with built-in scheduling, unified credential management, granular failure classification, and auditable execution history across all environments.
ARANGODB_AUTH_TOKEN: Base64-encoded username:password string or token used for HTTP authentication.SLACK_WEBHOOK: Incoming Slack webhook URL used by alert_warning_slack, alert_critical_slack, alert_unreachable_slack, and the errors handler.ARANGODB_AUTH_TOKEN (e.g. root:open-sesame encoded) and SLACK_WEBHOOK secrets in your Kestra namespace.docker run -d --name arangodb -e ARANGO_NO_AUTH=1 -p 8529:8529 arangodb:latest
arangodb_host: "localhost" or "arangodb-coordinator".HEALTHY, and records audit outputs.every_15_minutes trigger to automate continuous background monitoring./_admin/cluster/shardDistribution to detect unaligned shard replicas.CRITICAL_NODE_FAILURE is detected.io.kestra.plugin.scripts.shell.Commands.