Self-hostingGuides
Health checks and logs
Fluxer reports whether it is up through health checks and its logs.
Point your uptime monitor and alerts at them.
Health checks
Section titled "Health checks"fluxerd healthpasses when every part of Fluxer is ready, and is the readiness check. The image's health check runs it every 30 seconds.fluxerd health --livepasses whenfluxerdresponds, ready or not, and is the liveness check. It still passes during a long backup before an upgrade.GET https://chat.returnsexample.com/ _ health OKwhen the edge is up, for an uptime monitor outside the machine.GET https://chat.passes when the API responds, for an uptime monitor that checks the API too.example.com/ api/ v1/ _ health
fluxerd health prints ready, or not ready with the parts it is waiting for, and exits with 1 when Fluxer isn't ready. Run it inside the instance, for example docker compose exec fluxer fluxerd health with the compose file or docker exec fluxer fluxerd health with docker run. With Docker, docker inspect --format '{{.State. shows the result of the built-in check. With docker run, use fluxer in place of the $(...) part.
On Kubernetes, the chart's startup and liveness probes use fluxerd health --live and its readiness probe uses fluxerd health.
These show the output of every part of Fluxer at once. fluxerd logs <part> shows one.
| How you run Fluxer | Logs command |
|---|---|
| Docker with the compose file | docker compose logs fluxer |
Docker with docker run | docker logs fluxer |
| Podman with Quadlet | journalctl --user -u fluxer, or journalctl -u fluxer as root |
Podman with podman run | podman logs fluxer |
| Kubernetes | kubectl -n fluxer logs fluxer-0 |
| rexctl on systemd | journalctl -u fluxer |
| Linux by hand | journalctl -u fluxerd |
| rexctl | rexctl logs |
Each line starts with the part's name in brackets, such as [api]. After the name, the API and worker write one JSON object per line, and other parts write plain text.
| Setting | What it sets the log level for |
|---|---|
LOG_LEVEL | The API and worker |
FLUXER_ | The gateway |
RUST_LOG | The media proxy and the rust services |
LiveKit and Meilisearch log settings are separate.
Metrics
Section titled "Metrics"Fluxer has no Prometheus or OpenTelemetry endpoint you can scrape yet. Watch it from the outside with the health checks above, and alert when one of these happens.
GET /_healthandGET /api/v1/_healthcalled from outside fail for a few minutes.fluxerd healthexits with 1, or the container showsunhealthy.- The disk or volume with
/var/lib/fluxerhas less than 20% free. - The newest file in the
backupsfolder is older than your schedule. - The container's restart count, or the restarts column of
fluxerd ps, keeps going up.
Backups
Section titled "Backups"A scheduled backup writes these log lines.
scheduled backup: startingat the start.scheduled backup written towith the path when it finishes.scheduled backup failed:with what went wrong, such as a full disk, when it fails.
Alert on lines with scheduled backup failed:, and check that the newest backup in the backups folder is less than a day old, or less than a week old for weekly backups.
With rexctl
Section titled "With rexctl"rexctl status --jsonprints each part of Fluxer, the version and when the instance was last backed up, for monitoring tools.rexctl doctorchecks the instance and machine and says how to fix what it finds.rexctl auto-upgrade oncan post a notice each time it upgrades.