New to Kestra?
Use blueprints to kickstart your first workflows.
Audits Fluentd metrics to detect forward protocol ACK timeouts and buffer queue backpressure, alerting SRE teams on Slack.
Automates continuous health and data pipeline surveillance of Fluentd log aggregator clusters across enterprise cloud architectures. Interrogates internal Prometheus telemetry to detect forward protocol acknowledgment timeouts, downstream TCP socket disconnects, and buffer queue backpressure before log chunks drop from memory or disk overflow.
flowchart TD
A[periodic_fluentd_audit Schedule Trigger] --> B[scan_fluentd_forward_metrics Python Script]
B --> C[evaluate_retry_threshold Flowable If]
C -- Output Retries Exceeded --> D[notify_slack_logging_team Slack Webhook]
C -- Forward Protocol Nominal --> E[log_nominal_fluentd_state Core Log]
D --> F[emit_audit_manifest Debug Return]
E --> F
periodic_fluentd_audit): Automated cron trigger executing regular surveillance sweeps across production Fluentd aggregator tiers.scan_fluentd_forward_metrics): Dockerized Python runtime querying Fluentd metrics with connection timeout safeguards.evaluate_retry_threshold): Conditional branching logic isolating severe downstream pipeline stalls from transient network flushes.notify_slack_logging_team): 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.| Name | Type | Default | Description |
|---|---|---|---|
fluentd_metrics_url |
STRING |
http://fluentd-aggregator.logging.svc.cluster.local:24231/metrics |
Base HTTP URL exposing Prometheus metrics for the Fluentd log aggregator service. |
target_tier |
STRING |
production-log-aggregators |
Identifier of the Fluentd aggregator tier or log pipeline group under active surveillance. |
max_retry_count_threshold |
INT |
15 |
Maximum allowable forward output retry events across the lookback period before triggering alerts. |
lookback_minutes |
INT |
15 |
Time duration in minutes across which Fluentd forward protocol metrics are evaluated. |
alert_on_timeouts |
BOOL |
true |
Toggle whether Slack alerts are dispatched upon detecting elevated forward protocol retries. |
{{ outputs.scan_fluentd_forward_metrics.vars.retry_count }}: Total number of retry attempts executed by forward output plugins due to ACK timeouts.{{ outputs.scan_fluentd_forward_metrics.vars.buffer_queue_length }}: Number of un-flushed chunk buffers currently queued in memory or on disk.{{ outputs.scan_fluentd_forward_metrics.vars.buffer_total_bytes }}: Total byte footprint occupied by pending log chunks.{{ outputs.scan_fluentd_forward_metrics.vars.is_alerting }}: Boolean flag indicating whether observed retries breached tolerance limits.{{ outputs.scan_fluentd_forward_metrics.vars.audit_timestamp }}: ISO-8601 UTC timestamp recording exact time of sentinel verification.@type prometheus in fluent.conf).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.fluentd_metrics_url with your internal Fluentd service DNS name.periodic_fluentd_audit trigger to commence automated background monitoring.<buffer> configurations define retry_wait and retry_max_interval to prevent aggressive retry storms against struggling destinations.total_limit_size is reached, Fluentd discards incoming logs or throws BufferOverflowError; size persistent volumes generously.send_keepalive_packet true in forward output configurations to prevent silent socket dropouts through cloud NAT gateways.fluent-plugin-prometheus is installed in the Fluentd container image to expose internal output statistics.