Skip to content

staffix-admin

build Maven Central License Documentation

A web admin console for staffix FIX engines: see every session of every engine at a glance, control and configure them, and read their metrics and FIX logs, from one place.

The sessions page: every session of every engine, coloured by status

Main facts

  • One console, many engines. Engines announce themselves through staffix's HTTP admin API connector; nothing to register by hand. The console calls each engine with the token it announced.
  • The browser only talks to the console. Engine URLs and tokens never reach it.
  • Telemetry from your backends, not from the engines. Metrics come from Prometheus, Elasticsearch or ClickHouse, FIX logs from Loki, Elasticsearch or ClickHouse, as staffix exports them through OpenTelemetry. Searching days of logs never loads an engine.
  • Pluggable. Backends, secret schemes, the audit sink and the configuration store are plugins: jars dropped into plugins/.
  • Roles and audit. Operators log in through JAAS as READER or WRITER; every change, and every refused one, is audited.
  • Stack. Spring Boot 4 on Java 21, React with Ant Design; one executable jar, or a Docker image.

Features

  • Sessions overview: every session of every engine, coloured by status (logged in, outside session time, logged out by an operator, down within session time), with counts, filters and search.
  • Session control: log on and out, set sequence numbers, sequence resets, switch an initiator to a backup.
  • Session settings: edit a session's settings in a form built from the engine's own schema; add and remove acceptor sessions.
  • Send messages: inject application messages into a session, one per line.
  • Availability: a session's status over time and its availability within session time.
  • High availability: a pair of nodes as one card, each session's replication state, followers and their lag, replication charts, switchover, maintenance and re-sync.
  • Metrics: message rates and latencies, round-trip time, clock offset, and the application's own timers and gauges.
  • Logs: search FIX messages by text, type and direction, decode them with the session's dictionary, export them as CSV.
  • Order trace: follow an order by any of its ids across sessions and engines, from request to fill and drop copy.
  • Connectors: declare the metrics and logs backends, and which sessions read which, from the UI.

Quick start

Run a release with Docker, then open http://localhost:8080 and log in as admin (password admin):

docker run -p 8080:8080 -v staffix-admin-data:/data ghcr.io/lolaf-org/staffix-admin:0.9.0

Or, with Java 21, from the archive of the latest release:

curl -LO https://github.com/lolaf-org/staffix-admin/releases/download/v0.9.0/staffix-admin-0.9.0.tar.gz
tar xzf staffix-admin-0.9.0.tar.gz
staffix-admin/bin/staffix-admin.sh

Change the admin and engine passwords before anyone else can reach it, then connect your engines: see Installation.

Demo

The demo runs the console against three simulated engines with generated metrics and logs; it builds from source:

git clone https://github.com/lolaf-org/staffix-admin.git
cd staffix-admin
./mvnw install -DskipTests
cd staffix-admin-demo
docker compose up

Open http://localhost:8080 and log in as reader or writer (password = name). Without Docker, see the demo's README. To try the console with real engines, Prometheus, Loki, Elasticsearch or ClickHouse, see the sandbox.

Documentation

Also published at staffix-admin.lolaf.org.

Guide
Installation Distribution, users, Docker image, connecting engines
Screenshots The console's main views
Configuration Every setting and its default
Connectors Metrics and logs backends, console.yaml, credentials
Backends Prometheus, Loki, Elasticsearch, ClickHouse and OpenTelemetry collector setup
Sessions Statuses, control, settings, sending, availability
High availability Pairs, replication state, switchover, maintenance, re-sync
Metrics Meters, statistics, rate windows
Logs and trace Log search, decoding, CSV, order trace
Security Logins, roles, engine announcements, audit, TLS
Plugins Adding backends, secret schemes, audit sinks, stores
Development Modules, build, API contract, UI hot reload