· WatchLog 1.2.0

1.2Applications

PostgreSQL and MySQL, much deeper

The database pages now answer four questions: what the database is waiting on, which statement is responsible, which service sends it, and what changed. Still read-only, and WatchLog never reads a row of your tables.

  • What the active sessions wait on: CPU, I/O, lock or client
  • The blocking tree, the root blocker first
  • A page for each statement and each table, at its own address

The release note

The database pages now answer four questions: what the database is waiting on, which statement is responsible, which service sends it, and what changed. Still read-only, still the same least-privilege user, and WatchLog never reads a row of your tables.

What's new

  • Overview (PostgreSQL, MySQL): the finding first, with the workload or service behind it; the query flow from clients through sessions and queries to storage; six tiles; eight health checks; and the statements that cost the most, with the service that sends each.
  • Waits: what the active sessions wait on (CPU, I/O, lock, client), sampled every 15 seconds, by statement and by client. Drag across the chart to choose a period; the lists below follow it.
  • Queries: every top statement with its usual mean, "far slower than usual", who sends it mostly, and a hint where it reads far more than it returns ("probably missing an index on shop.events").
  • Locks: the blocking tree, the root blocker first, with its client, whether it is idle in its transaction and for how long; the oldest open transactions; MySQL's history list, metadata locks and the latest deadlock (its values stripped before they leave the host).
  • A page for each statement and each table, at their own addresses, with alerts for that statement or table in one click.
  • Replication: PostgreSQL's slots with the WAL each keeps and when it fills the disk, archiving, checkpoints and pg_stat_io; MySQL per channel and worker with GTIDs and heartbeat, and the binary logs' growth, expiry and when they fill the disk.
  • Tables, Vacuum and InnoDB: the fastest-growing tables, unused and duplicate indexes, tables without a primary key, invalid indexes, sequences against their maximum, who holds vacuum back, prepared transactions, redo in use, risky settings and settings waiting for a restart.
  • The database process on Kubernetes and on servers: its CPU, memory, disk I/O and I/O latency beside the database's own numbers.
  • Five new default alerts: a session blocked over 1 minute (critical), a transaction open over 30 minutes, a statement far slower than usual, a slot or the binary logs filling the disk within a day (critical), a sequence above 90 %. Rules can be scoped to one statement or table.
  • MySQL's connections by client show where each client runs, its oldest idle connection and since when; a client that keeps many connections asleep is named as a probable leak.
  • API and MCP: the panels route takes a statement, a table and a period; get_application includes the waits, the costly statements and the blocking tree.

What each part needs, what it costs (measured: about 1.4 short statements a second and under 1.5 ms of database time a second per server) and what WatchLog never reads are in the docs and ADR-245.

What's fixed

  • MariaDB servers without TLS refused WatchLog's connection when TLS was only preferred.
  • Below a tenth of a millisecond, times read in microseconds instead of "0 ms".

Upgrading

Nothing to do; no migration. The new data needs the 1.2.0 integrations collector (install.sh --upgrade on a server, the chart's new version in a cluster); with an older one the pages show what they had. Services you already monitor keep their alert rules: their Alerts tab offers the five new defaults in one click. On MariaDB, waits by statement and "sent mostly by" need two performance_schema consumers, named on the page.

1.2.1 · The lock holder comes first

Two fixes found within minutes of 1.2.0 on the live demo.

What's fixed

  • A query blocked on a lock is no longer the first finding. When a session waited on another's row lock for 6 minutes, PostgreSQL's and MySQL's pages led with "A query has been running for 6 min", and the probable cause followed it: the victim, not the cause. When the longest running query is one that waits on a lock, the lock finding, naming the session that holds it, stands alone. The "query running longer than 5 minutes" alert is unchanged.
  • "Clients · 1 service" (and "1 day") in the database pages' query flow, not "1 services".

Upgrading

Nothing to do; no migration. The backend and web images only; the agent and collector are the same as 1.2.0's.

Every release →