Docs › Administration
Health, logs and metrics
When something seems off, or you just want to know the server is fine, Omnibus gives you a health page and a log viewer in Administration, plus an address an uptime monitor can check and metrics for Prometheus.
The Health page
Open Administration › Health. It needs an admin account, and it refreshes every five seconds while it's open. It has five cards.
- Index status
- The ebook and audiobook library folders (or Not configured), and how many books, authors and series are indexed. Below them, either No ghosted books. or a count of books that have no file on disk: books whose file was gone when the library was last scanned. Omnibus keeps their records, so reading history and highlights survive, but there's nothing to open.
- Worker queue
- Background work, one row per kind of task: how many are Queued, how many finished recently (Done recently) and how long the last one took (Last took). Library scans, thumbnails, author photos, audiobook chapter extraction and suggestion lookups show up here. With nothing running or recently done, it says so. Maintenance and tasks has the history of tasks you started.
- Search index (FTS)
- Compares the number of books with the number of entries in the search index. In sync. is what you want. Out of sync means search can miss or misreport books until the index is rebuilt; see Rebuilding the search index.
- Storage
- Disk used by the library content and by covers, and by the three caches next to their caps: the Thumbnail cache, the HLS transcode cache (audiobooks prepared for streaming) and the Export-EPUB cache (EPUBs rebuilt with your metadata edits). Omnibus deletes old cache files once a cache passes its cap. The caps are set with environment variables; see the Configuration reference.
- Last errors
- The most recent errors the server has logged, newest first, up to 200. They're kept in memory only, so a restart clears them; the Logs page keeps everything. When an error is about a particular book, Open book takes you to it, and when it concerns a file, the file's path is shown.
Rebuilding the search index
The web app has no button for this yet. On iPhone, an admin can use You › Server settings › Maintenance › Rebuild search index. From a terminal, an admin's API token does it:
curl -X POST -H "Authorization: Bearer omni_your_token" \
https://books.example.com/api/fts/rebuild
The request answers once the rebuild has finished.
The Logs page
Open Administration › Logs (an old /logs link takes you there too). It reads the server's log files, newest first, 50 records to a page. Use Older and Newer to move between pages.
Each record shows its time in UTC, its level, the part of the server that wrote it, the message, and any extra details, such as the request's method and path.
Filtering
- Level
- All levels, or only Error, Warn, Info, Debug or Trace. Each choice shows that level alone, not that level and above.
- Module
- Only records from parts of the server whose name contains this text, ignoring case, such as
omnibus::backend. - From and To
- A time range, in your own local time. A bound includes its whole minute.
Change the filters, then choose Apply. When nothing matches you see No log records match these filters.
Where the log files live
Omnibus writes one file per day, named omnibus.log.YYYY-MM-DD, with one JSON record per line. In the Docker image they go in /cache/data/logs, which is ./cache/data/logs next to your compose file. Set OMNIBUS_LOG_DIR to put them somewhere else. Omnibus doesn't delete old log files, so remove old days whenever you like.
By default the server logs one line per request plus its own events, with extra detail from Omnibus itself (info,omnibus=debug). Set RUST_LOG to change that, for example RUST_LOG: "info" for less, then run docker compose up -d. The same setting governs the files and the container's output. Query strings are never logged, so the tokens some media links carry don't end up in the logs.
The container's logs
The server also prints a readable log to its output, which Docker keeps. It's the place to look when Omnibus won't start, since the Logs page needs a running server:
docker compose logs -f omnibus # follow the log as it's written
docker compose logs --since 1h omnibus # the last hour
A few warnings at startup are normal and name something optional that's missing: Calibre when it isn't installed, /metrics when no token is set.
Uptime checks
GET /api/_health answers without signing in, so an uptime monitor can poll it:
curl https://books.example.com/api/_health
{"app":"omnibus","status":"ok","build_id":"1764590400123","repo_root":"/app","version":"v0.56.8","time":1764590460}
status- Always
ok. Any answer at all means the server is up and serving requests. It doesn't check the database or the library folders. version- The release the server is running.
build_id- When the server process started, in Unix milliseconds. A new value means it restarted.
time- The server's clock, in Unix seconds.
The Docker image already checks this address every 30 seconds, so docker ps shows the container as healthy or unhealthy. To ask directly:
docker inspect --format '{{.State.Health.Status}}' omnibus
Prometheus metrics
Omnibus can publish request counts and timings at /metrics, in the format Prometheus scrapes. It's off until you give it a token.
-
Generate a long random token:
openssl rand -hex 32 -
Add it to the
environment:block of your compose file and rundocker compose up -d:OMNIBUS_METRICS_TOKEN: "the-value-you-generated" -
Give the same value to Prometheus in its scrape config:
scrape_configs: - job_name: omnibus authorization: credentials: "the-value-you-generated" static_configs: - targets: ["omnibus:3000"]omnibus:3000works when Prometheus runs in the same Compose project. Otherwise use the host and port you reach Omnibus at.
Without a token set, /metrics answers 404 and the server logs one warning at startup. A request with a missing or wrong token gets 401. To check by hand:
curl -H "Authorization: Bearer the-value-you-generated" http://localhost:3000/metrics
The main series are axum_http_requests_total and axum_http_requests_duration_seconds, labelled by method, status and endpoint. The endpoint is the route's pattern, such as /api/ebooks/{uuid}, never a real ID; requests that matched no route share one /<unmatched> label.