Clear Pulsar backlogs held by subscriptions nobody consumes
Detect Apache Pulsar subscriptions with no consumers that still pin a large backlog, then clear or remove them behind a dry run, an approval pause and a live re-read that fails the run.
Scrapes Fluent Bit Prometheus metrics to track output retries, dropped records, and buffer memory saturation with Slack alerting.
Production-grade telemetry reliability watchdog that continuously scrapes Prometheus metrics from Fluent Bit log processor instances. It tracks output buffer retry saturation, monitors discarded log chunk drops caused by downstream backpressure, identifies buffer memory exhaustion, and dispatches structured Slack alerts with remediation runbooks before critical audit and security logs are permanently lost.
/api/v1/metrics/prometheus).fluentbit_output_dropped_records_total) across output plugins.fluentbit_output_retries_failed_total).flowchart TD
A[Schedule Trigger: Every 15 Mins] --> B[scan_fluentbit_metrics]
B --> C{evaluate_fluentbit_threshold}
C -- Alert Triggered --> D[notify_slack_telemetry_team]
C -- Nominal State --> E[log_nominal_fluentbit_state]
D --> F[emit_audit_manifest]
E --> F[emit_audit_manifest]
periodic_fluentbit_audit): Recurring cron schedule executing every 15 minutes for proactive logging surveillance.scan_fluentbit_metrics): Docker-isolated Python script polling Fluent Bit metrics with error handling.evaluate_fluentbit_threshold): Evaluates dropped records and retry failures against user thresholds.notify_slack_telemetry_team): Sends rich Slack alert with dropped counts, retry numbers, and runbooks.emit_audit_manifest): Emits structured JSON summary for telemetry audit archives.| Name | Type | Default | Description |
|---|---|---|---|
fluentbit_metrics_url |
STRING | http://fluent-bit.logging.svc.cluster.local:2020 |
Base HTTP URL exposing Fluent Bit Prometheus metrics. |
pipeline_name |
STRING | production-container-logs |
Target Fluent Bit logging pipeline identifier under active surveillance. |
max_dropped_records_threshold |
INT | 100 |
Maximum allowable dropped log records before alerting. |
lookback_minutes |
INT | 15 |
Lookback evaluation window in minutes for pipeline telemetry. |
alert_on_fluentbit_failures |
BOOL | true |
Toggle Slack alert dispatch upon detecting buffer retries or drops. |
{{ outputs.scan_fluentbit_metrics.vars.dropped_records_count }}: Cumulative count of permanently discarded log records.{{ outputs.scan_fluentbit_metrics.vars.output_retries_count }}: Total number of retried chunk deliveries across outputs.{{ outputs.scan_fluentbit_metrics.vars.output_retry_failures_count }}: Count of delivery attempts that exhausted maximum retries.{{ outputs.scan_fluentbit_metrics.vars.buffer_mem_limit_pct }}: Percentage of allocated in-memory buffer currently occupied.{{ outputs.scan_fluentbit_metrics.vars.is_alerting }}: Boolean flag indicating whether failure thresholds were breached.{{ outputs.emit_audit_manifest.value }}: Structured JSON audit manifest emitted for compliance archives.HTTP_Server On, HTTP_Port 2020).SLACK_WEBHOOK_URL: Incoming webhook URL for the target Telemetry SRE Slack alerting channel.[SERVICE] block with HTTP_Server On enabled.SLACK_WEBHOOK_URL secret in your Kestra namespace settings.pipeline_name.periodic_fluentbit_audit trigger to establish automated continuous surveillance.Retry_Limit False causes infinite retry loops and memory exhaustion; use bounded limits.Mem_Buf_Limit allows inputs to buffer indefinitely until the pod is killed.HTTP_Listen 0.0.0.0 is configured so remote scrapers can query metrics.