· WatchLog 1.5.0

1.5ApplicationsServers

Nginx, complete

WatchLog's agent now reads Nginx's access and error logs on the machine and turns them into metrics there. No log line leaves the machine and none is stored.

  • Requests, errors, p95, bandwidth and cache hits by site and URL
  • Each upstream, with the workload behind each server's address
  • 502, 504 and 499 with the URLs they hit and their cause from the error log
WatchLog 1.5: Nginx, complete, a screenshot of the product(opens the picture larger)

The release note

Open-source Nginx tells almost nothing about its traffic: stub_status has connection and request totals only. Status codes, latency, sites, URLs and upstreams are in its access log, and the causes in its error log. WatchLog's agent now reads both on the machine and turns them into metrics there. No log line leaves the machine and none is stored: what leaves it is counts, sums, latency histograms and short top lists. On Linux servers (package or source, systemd or not), Docker and Kubernetes (plain Nginx and ingress-nginx), with nothing to install in Nginx.

What's new

  • Sites and URLs. Requests, 5xx, 4xx, 499, p95, bandwidth and cache hits by server name; URL patterns (GET /orders/{id}: the query string is never read, ids become placeholders) with their errors, latency, time spent in the backend and upstream. Every tab filters by site.
  • Upstreams and their servers. Each upstream with the workload behind each server's address (a Deployment, a systemd service, a container), requests, errors, response and connect time per server, retries to the next server and kept-alive connections. An upstream's page shows its servers side by side, and which one refuses, times out or can't be reached.
  • Errors, with their cause. 502, 504, 499 (the client gave up) with the URLs they hit, rate limiting, scanners' 404s, and why, from the error log: refused or reset by an upstream, timed out, no live upstreams, worker_connections or open files reached, limit_req and limit_conn by zone, bodies too large, headers too big, failed reloads.
  • Latency where you have it: p50, p95, p99 and where the time goes (connecting, waiting for the backend's first byte, sending the response).
  • Clients. The busiest addresses (the 50 per site, kept 24 hours; shortened to /24 and /48, or off, in Settings → General → Client addresses (Nginx)), what they ask for and what they get; browsers, apps, crawlers (named), scripts and monitors by user-agent class (the user agent itself is never kept).
  • Cache, TLS, connections and workers: hit shares by site and URL; TLS versions and ciphers, certificates and their expiry; connections against worker_connections, open files against the limit; workers, reloads, failed reloads and old workers still shutting down.
  • Findings with the cause first: "502 because server 10.0.3.14:3000 of upstream cart refuses connections: cart isn't listening"; "clients give up (499) on GET /search: its p95 is 9 s"; "worker_connections reached"; "one address sends 38% of all requests"; "a reload failed: Nginx still runs the old configuration".
  • Seven default alerts, few and precise, and per-site, per-URL and per-upstream alerts from their pages. Services monitored before are offered the new ones on their Alerts tab.
  • The Connection tab says what WatchLog reads, which log_format variables are present, what each missing one costs, and the one line to paste. Everything else works with combined.

Upgrading

Update the agents (the Helm chart, the server package or the install command); nothing else. The agent reads the logs from where Nginx writes them with the access it already has; a migration adds the org's client address setting (default: keep the busiest addresses). Turn log reading off with --nginx-logs=false (WATCHLOG_NGINX_LOGS=false). Cost, measured: 8 % of one core at 20,000 lines a second for the whole agent, about 30 MiB. Details: ADR-251 and the Nginx page.

1.5.1 · A seeded server service is monitored

  • The seed file can monitor a server's own service (a systemd unit such as nginx.service): those are found from the server's metrics, and the seed didn't ask for them, so such an entry waited forever. Seeds for Kubernetes workloads and containers were never affected.
  • Docs: the client address setting for Nginx is in Settings → General → Client addresses.

Upgrading

Nothing to do; no migration.

1.5.2 · A seeded server service is read by its host's collector

  • The seed file's server services (a systemd unit such as nginx.service) are now given to their server's integrations collector, as a service monitored by hand is; 1.5.1 monitored them but no collector took them ("collector missing"). Rows seeded that way are fixed on the next round.

Upgrading

Nothing to do; no migration.

Every release →