:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(session-replay): document image scrub latency alerts (#91005)
Robbie49c2532424f7
diff --git a/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-fetch/IMPLEMENTATION_NOTES.md b/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-fetch/IMPLEMENTATION_NOTES.mdindex b5e9d1cef67a..80153d258e8d 100644--- a/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-fetch/IMPLEMENTATION_NOTES.md+++ b/nodejs/src/ingestion/pipelines/sessionreplay/ml-mirror-image-fetch/IMPLEMENTATION_NOTES.md@@ -114,7 +114,8 @@ The lane uses bounded labels for all signals. The dashboards group failures by a| Scrub output cannot reach S3 or the dead-letter topic. | A write batch failure or dead-letter publication failure occurs. Durable error logs cover a pod that exits before a metrics scrape. | Scrub dashboard: consumer delivery failures. Loki alerts: `IngestionSessionReplayImageScrubConsumerLoopFailed` and `IngestionSessionReplayImageScrubDeadLetterPublishFailed`. | Check bucket access, topic configuration, and maximum Kafka message size. || A dead-letter replay cannot recover an image. | The replay emits `image_scrub_replay_exhausted`. The process metric is also visible if a scrape catches the bounded replay run. | Scrub dashboard: quarantine events. Loki alert: `IngestionSessionReplayImageScrubReplayExhausted`. | Fix or accept the permanent sidecar refusal before Kafka retention removes the parked bytes. || A scrub batch approaches Kafka's 300-second poll limit. | Active batch age exceeds 180 seconds. Completed batch duration shows the recent distribution. | Scrub dashboard: **Image and batch duration**. Alert: `IngestionSessionReplayImageScrubBatchNearPollLimit`. | Check the retired ratio, stuck images, waits, CPU, and memory. |-| The scrub lane cannot drain. | Scrub frontier lag exceeds 1,000 records and stays flat or projects more than 10% growth in one hour. | Scrub dashboard: Kafka lag and drain time. Alert: `IngestionSessionReplayImageScrubNotDraining`. | Check waits, head-of-line blocking, CPU, memory, and consumer restarts. |+| Inline image scrub exceeds its delivery limit. | The p95 capture-to-S3 latency for inline images exceeds one hour for 30 minutes. | Scrub dashboard: end-to-end latency. Alert: `IngestionSessionReplayInlineImageScrubNotDraining`. | Check sidecar waits, CPU, memory, and consumer restarts. |+| URL image scrub exceeds its delivery limit. | The p95 capture-to-S3 latency for URL images exceeds three days for 30 minutes. | Fetch and scrub dashboards: frontier health and end-to-end latency. Alert: `IngestionSessionReplayURLImageScrubNotDraining`. | Check the image-fetch frontier, retries, request outcomes, and sidecar waits. |The pass-budget alert is inactive in dry-run mode. Delay-topic lag has no alert because queued delay records are expected. Generic Kubernetes alerts cover pod crash loops and unavailable replicas.