New to Kestra?
Use blueprints to kickstart your first workflows.
Audits Dragonfly cluster metrics to detect replica offset drift and stream desync, alerting SRE teams on Slack.
Automates continuous replication health and data consistency surveillance of Dragonfly in-memory datastore clusters across enterprise cloud architectures. Interrogates Dragonfly Prometheus metrics to detect primary-replica offset drift, network buffer backpressure, and disconnected replica nodes before stale cache reads corrupt application workflows.
flowchart TD
A[periodic_dragonfly_audit Schedule Trigger] --> B[scan_dragonfly_replication_metrics Python Script]
B --> C[evaluate_drift_threshold Flowable If]
C -- Offset Drift Exceeded --> D[notify_slack_cache_sre Slack Webhook]
C -- Replication Operating Nominally --> E[log_nominal_dragonfly_state Core Log]
D --> F[emit_audit_manifest Debug Return]
E --> F
periodic_dragonfly_audit): Automated cron trigger executing regular surveillance sweeps across production Dragonfly clusters.scan_dragonfly_replication_metrics): Dockerized Python runtime querying Dragonfly metrics with connection timeout safeguards.evaluate_drift_threshold): Conditional branching logic isolating severe replication desync from routine write flushes.notify_slack_cache_sre): Formatted Slack webhook message delivering actionable telemetry and remediation runbooks.emit_audit_manifest): Standardized JSON output recording exact run parameters for compliance and reliability reporting.connected_slaves == 0), eliminating high-availability failover protection.| Name | Type | Default | Description |
|---|---|---|---|
dragonfly_metrics_url |
STRING |
http://dragonfly-master.cache.svc.cluster.local:6379/metrics |
Base HTTP URL exposing Prometheus metrics for the Dragonfly in-memory datastore master node. |
cluster_name |
STRING |
dragonfly-production-cache |
Identifier of the target Dragonfly in-memory cluster under active replication surveillance. |
max_offset_drift_bytes |
INT |
1048576 |
Maximum allowable replication offset lag in bytes between primary and replica nodes before alerting. |
lookback_minutes |
INT |
15 |
Time duration in minutes across which Dragonfly replication metrics are evaluated. |
alert_on_drift |
BOOL |
true |
Toggle whether Slack alerts are dispatched upon detecting elevated replication offset drift. |
{{ outputs.scan_dragonfly_replication_metrics.vars.master_repl_offset }}: Integer representing the current master replication byte offset position.{{ outputs.scan_dragonfly_replication_metrics.vars.replica_repl_offset }}: Integer representing the acknowledged replica replication byte offset position.{{ outputs.scan_dragonfly_replication_metrics.vars.replication_offset_drift_bytes }}: Total byte difference between master and replica offset positions.{{ outputs.scan_dragonfly_replication_metrics.vars.connected_replicas_count }}: Number of replica nodes actively connected to the master.{{ outputs.scan_dragonfly_replication_metrics.vars.is_alerting }}: Boolean flag indicating whether observed drift breached tolerance limits.SLACK_WEBHOOK_URL: Secret webhook URL for dispatching incident notifications to team Slack rooms.SLACK_WEBHOOK_URL secret within the target Kestra namespace.company.data namespace.dragonfly_metrics_url with your internal Dragonfly master service DNS name.periodic_dragonfly_audit trigger to commence automated background monitoring.--metrics_port=6379 or --prometheus_port to expose the Prometheus telemetry endpoint.--dbfilename and memory limits) to prevent disconnects.