A company uses Dataflow streaming pipelines to process real-time events. They notice increasing system lag over time. Which two Cloud Monitoring metrics should be examined to diagnose the cause?
Trap 1: Pub/Sub subscription/num_undelivered_messages and Dataflow…
num_undelivered_messages is a Pub/Sub metric; watermark_lag is similar to system lag but not standard. Better metrics exist.
Trap 2: Dataproc cluster/yarn_allocated_memory_percentage and Dataflow…
Dataproc metrics are irrelevant for Dataflow.
Trap 3: BigQuery query/execution_times and Dataflow job/elapsed_time
BigQuery metrics irrelevant. elapsed_time is total job duration, not lag.
- A
Pub/Sub subscription/num_undelivered_messages and Dataflow job/watermark_lag
Why it fails: num_undelivered_messages is a Pub/Sub metric; watermark_lag is similar to system lag but not standard. Better metrics exist.
- B
Dataproc cluster/yarn_allocated_memory_percentage and Dataflow job/worker_cpu
Why it fails: Dataproc metrics are irrelevant for Dataflow.
- C
Dataflow job/system_lag and Dataflow job/data_freshness
system_lag indicates processing delay; data_freshness shows watermark progress. Both are key for streaming lag.
- D
BigQuery query/execution_times and Dataflow job/elapsed_time
Why it fails: BigQuery metrics irrelevant. elapsed_time is total job duration, not lag.