Skip to content

WatchLog v1.2.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 09:34
· 318 commits to main since this release

WatchLog 1.2.0: 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, 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.

Changes since v1.1.2

Features

  • words for a table's statements (web)
  • a table's page lists the statements that name it (integrations)
  • a service's Alerts tab offers the defaults it was set up without (web)
  • add a service's missing default alerts when asked (applications)
  • a seeded service gets the defaults its type gained since, each once (seed)
  • clock columns in table panels; MySQL's Where, Oldest idle and Since (web)
  • MySQL's connections by client as designed: where, oldest idle, since (integrations)
  • the database panels of 1.2 (statements with sent mostly by and hints, the blocking tree, a statement's or table's alerts), their pages at their own addresses, a period chosen on the Waits chart, the flow's words between columns, table rows that open a page; the words (web)
  • capacity on the Tables tab, older collectors' lock pairs still read; tests for the 1.2 tabs, tiles, flow and defaults (databases)
  • statement and table scopes; rule metrics for blocking, long transactions, slower statements, slots and binary logs filling the disk, sequences, tables; five database defaults; MCP get_application with waits, statements and the blocking tree (alerts)
  • the Overview after the design, Waits, Tables, a statement's and a table's page, the blocking tree with metadata locks, the latest deadlock, history list, redo in use, channels and binary logs, users; findings for slower statements, long transactions, binary logs filling the disk, waits, settings, leaking clients (mysql)
  • the Overview after the design, Waits, a statement's and a table's page, the blocking tree, transactions, slots, checkpoints, schema findings and the process's resources; findings for slower statements, long transactions, slots filling the disk, waits, sequences, settings and leaking clients (postgres)
  • idle connections per client (PostgreSQL and MySQL), for the leak and idle-transaction findings (agent)
  • the shared deep module (waits, statement history, sent mostly by, the blocking tree, transactions, scoped alerts) and the statements, tree and scoped alerts panels (databases)
  • MySQL and MariaDB waits, statement clients, digest extras, long transactions, history list, redo, metadata locks and the blocking tree, the latest deadlock without literals, replication per channel, binary logs, users, file I/O, unused indexes and tables without a primary key; 2 s limits; TLS preferred falls back to plain (agent)
  • PostgreSQL waits, statement clients, blocking tree, long transactions, checkpoints and I/O, archiving, slots, xmin holders, schema findings; catalog every 10 min; 2 s statement timeout (agent)

Fixes

  • waits by statement and client count the minutes nobody ran (integrations)
  • database flows and wide tables as designed (web)
  • words for a statement's tables table (web)
  • a statement's tables as a table that opens each table's page (integrations)
  • database pages in the browser at 1440 and 390 px (web)
  • PostgreSQL's checks as designed, its lock sentence's duration (integrations)
  • name MariaDB's statements-current consumer on Waits by statement (web)
  • database pages after the lab run (integrations)
  • keep up to 24 status lists per target (integrations)
  • status rows stay flat (blockers as a list in a string, one deadlock row per transaction) and within 12 fields (agent)

Install

Kubernetes (backend, web, agents in one chart):

helm install watchlog oci://ghcr.io/watchlog-light/charts/watchlog --version 1.2.0 \
  --namespace watchlog --create-namespace

Docker hosts: see the install guide.

Verify

Images and charts are signed with cosign (keyless, GitHub Actions OIDC):

cosign verify ghcr.io/watchlog-light/agent:1.2.0 \
  --certificate-identity-regexp '^https://github.com/watchlog-light/watchlog/\.github/workflows/release\.yml@refs/tags/v' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com