Skip to content

Writing criteria for this guide

Every "for Mere Mortals" guide is written to the same nine-point standard, so a reader who trusts one can trust the rest. Here it is, with the verification notes for this particular guide below.

  1. Fix it first. Reader outcomes lead, not action items: each chapter opens by naming the outcome it delivers, shows a check the reader can run to confirm they got it, and a reasonable reader finishes able to state what was done, what it means, and what to try next.
  2. Plain language. Short sentences, everyday vocabulary, technical terms defined on first use. No slang, and no idioms that only make sense in one country — the reader may be translating as they go.
  3. No dead ends. A guide never tells the reader to do something it cannot show them how to verify. Every claim a reader relies on — an install, a command, an output — is something this guide demonstrates or clearly labels documented-only below.
  4. Live-verified where it matters. Procedures are run for real in the guide's lab wherever the build machine allows it, and the transcripts kept in the repository are the evidence. What could not be run is listed honestly below, never presented as if it had been.
  5. General audiences. Nothing in this guide — examples, fixtures, names, addresses — is modelled on any particular reader or author's real life, network, or organisations. The lab's weather station, stations and readings are invented, and its addresses are loopback.
  6. Standalone. A reader needs this guide, its lab, and nothing else. Where another guide would genuinely help, it is pointed to once, by name, and the chapter still completes without it.
  7. Honest about limits. Chapter 13 names what the tool cannot do: one node in the open-source build, retention as coarse whole-shard forgetting with a write-side refusal but no per-point expiry, the high-cardinality tag cliff, corrections only by overwrite, UTC-only timestamps with the timestamp as identity, backups in the server's own shape rather than a portable export, and a query language whose easy tenth this guide teaches and whose remainder is real programming — in a generation (v2) the project itself is succeeding with v3.
  8. The ethics rule is in the text, early. InfluxDB's authority is its tokens, so chapter 1 and chapter 7 state the line before any procedure depends on it: a token is a bearer secret shown exactly once at creation; the operator token is total power and is never handed to an application; every job gets its own token, scoped to the least it needs (read-only, one bucket, by default); token values live in a password manager, never in scripts, repositories or chat; and measurement data itself can describe people's lives — occupancy, routines, health-adjacent signals — so read access to a bucket is a privacy decision, not a convenience. The lab practised its own rule: a loopback-only instance, invented data, transcripts with token values redacted, and the instance destroyed when the lab ended.
  9. Builds clean. The site builds with MkDocs in strict mode with no warnings, and a fresh reader following the chapters in order reaches the stated outcome of each.

Verification notes for this guide

The build machine is a shared Ubuntu 24.04 sandbox (a few CPUs, about 7.7 GB of memory), with no containers and no systemd; the server ran as a plain background process bound to 127.0.0.1:18084, a lab-only loopback port. InfluxDB 2.9.1 (server influxd, git d4fa1941fd) and the matching official CLI tarball were downloaded from the project's own download server, dl.influxdata.com — the server archive is influxdb2-2.9.1_linux_amd64.tar.gz (underscores; the older dash-style name returns a Not Found page, verified) and the client archive is influxdb2-client-2.9.1-linux-amd64.tar.gz. The official 2.9.1 client reports itself as a dev build in its own version string; it was used unmodified, and one of its behaviours below was cross-checked against the official 2.7.5 client, which behaved identically. All transcripts live in influxdb-lab/transcripts/; the fixture generator is influxdb-lab/gen-weather.py, a sample of its output is influxdb-lab/weather.lp, and the task script is influxdb-lab/task.flux.

Run for real, with transcripts as evidence:

  • Versions of both binaries and the archive listing (t00); /health and /ready answers from the unconfigured server (t01).
  • Non-interactive influx setup: admin user, organisation example-org, first bucket weather (infinite retention) plus the server's own _monitoring (168h) and _tasks (72h) buckets (t01).
  • Line-protocol writes by the CLI from the generated fixture (12 lines, two stations, two fields), verified by a grouped count of exactly 6 per series; a re-written point counted once, proving overwrite-by-identity (t02).
  • The CLI write's stdin behaviour: with stdin held open, the command's data landed but the command never returned (seen with both the 2.9.1 and the 2.7.5 clients); with stdin redirected from /dev/null it exits 0 at once (t02, and chapter 14).
  • Flux queries: raw points for one series; aggregateWindow 20-minute means (18.25 = (18.1+18.4)/2 and 20.65 = (20.3+21.0)/2 verified against the fixture, with the final partial window stamped at the range's stop); grouped mean and max summaries per station and field (t03).
  • The raw HTTP API with curl: write returning 204, a Flux query returning annotated CSV, a wrong token returning 401 with its JSON message, and a malformed line returning 400 with the server's parse error quoting the line (t04).
  • A second bucket (weather-recent, 24h retention) created by the CLI; a two-point write whose three-day-old point was refused with a 422 partial-write error naming the point and the retention lower bound to the second, while the current point landed and was the only row a seven-day query returned (t05).
  • Tokens: influx auth ls (the Token column is never reprinted); a scoped read-only token for the one bucket minted by influx auth create (its value appears once at creation and is redacted in the transcript), then proven by HTTP: query its bucket 200, write 403 "insufficient permissions for write", read the other bucket 404 "could not find bucket" (t06).
  • influx backup of the whole instance: manifest, Bolt and SQLite metadata snapshots, one archive per shard, 28 KB total (t07).
  • A full restore into a fresh, empty server (t08), including its failures: the old config answered 401 before any setup; a restore run under a throwaway setup's token replaced the metadata then died 401 at the SQL stage, leaving buckets queryable but empty; re-running influx restore --full under the backup's own operator token completed all stages, and the post-restore count matched the pre-backup count exactly (6/6/6/6 plus the HTTP-written point).
  • Predicate delete: a throwaway point written, shown, deleted by time range plus station="throwaway", and shown gone (empty result, exit 0) (t09).
  • A task (every: 1m, kept as task.flux) writing ten-minute mean temperatures into a weather-hourly bucket; after two unattended runs its rows were read back and matched the fixture window by window (t10).
  • The web UI's presence on the same port (GET / answered 200, text/html), and the whole instance's data directory measured at 608 KB before the server was stopped and the port confirmed closed (t11).

Documented only — described from the project's documentation, not run, and the text does not claim otherwise:

  • The web interface's own screens (dashboards, data explorer, alerting, notebooks) beyond the serving and health checks above; signing in with the admin password in a browser.
  • Retention's quiet half: stored points expiring as their shard groups age out. The write-side refusal was run (t05); watching stored data age out would have needed a day-scale wait the lab did not stage.
  • Telegraf and other collectors, alerting and notification rules, downsampling at production schedules (every: 1h and daily), InfluxQL compatibility queries, clustering and the commercial editions, and InfluxDB 3 — characterised in chapter 12, not installed.
  • Flux beyond the functions exercised (joins, histograms, moving windows, geospatial and the rest of the standard library).

Fixtures are this guide's own and deliberately generic: an invented weather station with two invented stations reporting invented readings, an organisation named example-org, and a server that never left loopback. The lab password and both tokens belonged to that disposable instance only; the transcripts redact the token values, and the instance, its data and its credentials were destroyed when the lab ended.