Skip to content

Document metrics that help detect when WAL apply lag is increasing #191

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

mtopolnik
Copy link
Contributor

@mtopolnik mtopolnik commented May 26, 2025

Adds three new metrics to the table of all metrics:

  1. counter: questdb_wal_apply_seq_txn_total
  2. counter: questdb_wal_apply_writer_txn_total
  3. gauge: questdb_suspended_tables

TODO: document how to use these metrics:

To track increasing WAL apply lag not caused by suspended tables, monitor the difference questdb_wal_apply_seq_txn_total - questdb_wal_apply_writer_txn_total. If it's persistently growing, it is likely that at least one table is falling seriously behind.

The gauge questdb_suspended_tables is simpler, any value above zero is a sign of trouble.

Copy link

github-actions bot commented May 26, 2025

🚀 Build success!

Latest successful preview: https://preview-191--questdb-documentation.netlify.app/docs/

Commit SHA: 0644a51

📦 Build generates a preview & updates link on each commit.

@mtopolnik mtopolnik changed the title Add metrics that help detect when WAL apply lag is increasing Document metrics that help detect when WAL apply lag is increasing May 26, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant