r/dataengineering • • 29d ago

Discussion How are you monitoring Debezium/CDC?

How is everyone monitoring debezium and CDC? What are common operational issues you run into? Are you using a saas to monitor? What do you alert on? How do you determine health of downstream jobs, built on CDC?

4 Upvotes

8 comments sorted by

3

u/magixmikexxs Data Hoarder 28d ago

Kafka connect or else a custom config withan api. And then poll that

1

u/Particular-Idea-1786 28d ago

Can you expand on that? Like you have a custom API that surfaces up pipeline status?

1

u/magixmikexxs Data Hoarder 28d ago

Yep. So debezium can be packaged with java apis. And that can read the current status. And when you hit that api you can get the meta details like offset, health check, last read timestamp etc.

2

u/Ok-Technology-6595 28d ago

Debezium on Kafka connect load JMX logs to Prometheus. Display on grafana

2

u/wombweed 28d ago

Prometheus/Grafana if you want to self host it. If you want SaaS Datadog is a good solution.

1

u/Altruistic_Tell_2384 27d ago

Usually some issues on the source to monitor also (like Wal size if a postgres source)

1

u/ninjaonionss 26d ago

I think you could answer this by knowing what enters your database, lets say you use Kafka , if you log every message from Kafka to the database you also have a way to reliably tell if the cdc stream from debezium is complete

1

u/backpressured_dev 21d ago

same setup(JMX -> Prometheus -> Grafana) here. one thing that got us though, connector state alone isn't enough. we had the connector sitting at RUNNING while one of the tasks had already failed, and nobody noticed until data stopped showing up downstream. so now we check task state separately too