Architecture and components¶
This page explains every service that makes up a QubeSight installation, what each one does and how they connect. For the container-level facts (images, ports, volumes) in table form, see Containers and services.
Community Enterprise
Design principles¶
QubeSight is a set of containers run by Docker Compose (or Podman with its Docker-compatible interface) on one or more Linux servers. Four principles shape the architecture:
- One public door. Users and API clients reach the product only through the gateway on port 3000 (HTTPS). The application services have no host ports of their own.
- Buffer before processing. Every event is written to a disk-backed Kafka log (Redpanda) before the worker processes it, so a slow or restarting worker never drops data.
- Data and configuration are separate. Activity data lives in ClickHouse and in the locked cold store. All configuration (users, rules, integrations, settings) lives in PostgreSQL. This keeps backups and restores small and predictable.
- Least privilege between services. PostgreSQL and the management endpoints sit on internal networks that the web interface cannot reach. Only the updater can control Docker.
Component diagram¶
flowchart LR
subgraph SRC[Sources]
G[Guardium syslog / SNMP]
SY[Other syslog senders]
FB[Filebeat]
CL[Event Hub / Kinesis / CloudWatch Logs]
end
subgraph QS[QubeSight server]
GW[gateway :3000 HTTPS]
UI[ui]
CP[control-plane]
WK[worker]
ST[snmp-trap :162/udp]
VE[vector :5140]
RP[(redpanda :9092)]
CH[(clickhouse)]
PG[(metadata-db PostgreSQL)]
UP[updater]
AS[assistant]
RM[(restore-mysql)]
MI[(minio locked store)]
end
U[Browser / API client] --> GW
GW --> UI
GW --> CP
G --> VE
G --> ST
SY --> VE
ST --> VE
VE --> RP
FB --> RP
RP --> WK
CL --> WK
WK --> CH
WK --> MI
WK --> RM
CP --> CH
CP --> PG
WK --> PG
CP --> AS
UP --> GW
CP --> UP
Core services¶
These services run on every full installation.
gateway¶
The only service that users and API clients connect to.
- Terminates HTTPS (TLS 1.2 or later, HTTP/2 and HTTP/1.1) on the web port (default 3000) and on the local management API port (default 8085, bound to
127.0.0.1). Plain HTTP that arrives on the same port is redirected to HTTPS. - Routes
/api/v1/*to the control plane and everything else to the web interface. - Moves traffic from the old to the new copy of the application during an update without dropping requests, and shows a self-refreshing maintenance page while neither copy is reachable.
- Holds the web certificate and its private key in its own volume. The certificate store keeps versions with rollback, renews its self-signed certificate automatically and accepts your own certificate from Settings → Web certificate (HTTPS). The private key never leaves the gateway.
- In a cluster with a virtual IP, forwards the per-broker Kafka ports (19090 and up) to the Redpanda brokers, so that Filebeat can reach every broker through the virtual IP.
ui¶
The web interface, a Next.js application. It has no host port and no access to PostgreSQL; it reaches data only through the control-plane API behind the gateway.
control-plane¶
The brain of the platform, written in Go.
- Serves the REST API (
/api/v1), including authentication, sessions, role and capability checks and the product's own audit trail. - Runs the alert engine (every 30 seconds), the report engine, scheduled report deliveries, backups and their verification, licence checks and platform health checks.
- Generates the Vector configuration (parsing rules, storage policies, the ingest allowlist) and keeps it in step on every node.
- Manages integrations: Guardium, LDAP, SSO, notification channels, SIEM forwarders, language-model providers, ticketing systems and sensitive-data scan targets.
- Orchestrates the cluster: adding nodes and the witness over SSH, the cluster certificate authority, cluster-wide updates, the cluster map.
- Exposes the MCP server for external AI clients (Enterprise).
Scheduled jobs run on exactly one node of a cluster at a time; a PostgreSQL lock decides which.
worker¶
The processing service, built from the same code base as the control plane.
- Consumes the Kafka topics
raw-db-logs(from Vector) andfilebeat-db-logs(from Filebeat) as one consumer group, and reads Azure Event Hub, AWS Kinesis and AWS CloudWatch Logs directly. - Decodes each event, classifies the SQL statement (query, data change, schema change, permission change and so on), applies storage policies and critical marking, and writes batches to ClickHouse.
- Commits its Kafka offset or cloud cursor only after the batch is stored in ClickHouse (at-least-once delivery with deterministic event IDs, so a repeated write does not create a duplicate).
- Runs the cold-tier export, verification and daily consolidation, the Guardium archive restore, the in-product benchmark and the Vector loss counter.
snmp-trap¶
The receiver for Guardium SNMP traps on UDP port 162. It uses the worker image with a separate role, so that the processing worker has no host port and can run as two copies side by side during an update. It forwards each trap to Vector as an internal, authenticated line.
vector¶
The syslog collector (Vector 0.38).
- Listens for syslog over TCP on port 5140 (and over TLS on 6514 in a cluster with ingest TLS enabled). UDP syslog is not supported.
- Applies the source IP allowlist, then parses each line: the built-in Guardium LEEF parser, your own parsing rules, the built-in Guardium JSON template. Lines that no parser recognises are marked and later queued for review.
- Writes every line to Redpanda. Lines wait in a disk buffer (default up to 2 GiB) until Redpanda confirms them, and Vector retries indefinitely, so a Kafka outage does not lose lines.
redpanda¶
A Kafka-compatible event log (Redpanda 23.2). It is the durable buffer between ingest and processing.
- External listener on port 9092 for Filebeat and other Kafka producers, protected with SASL/SCRAM and ACLs. Each component has its own user: Vector can only write to
raw-db-logs, external Filebeat clients only tofilebeat-db-logs, the worker only reads. - Internal listener on port 29092 (29093 with TLS in a cluster) for Vector, the worker and the control plane.
- In a cluster, three brokers replicate every topic three times.
clickhouse¶
The activity store (ClickHouse 24.3). It holds the event table global_db_activity_logs, the pre-aggregated summary tables that dashboards read, the unrecognised-lines queue and the platform's own system events. Reports join it with the cold tier when the requested range reaches older data. Its HTTP (8123) and native (9002 on the host) ports are bound to 127.0.0.1 only.
metadata-db (PostgreSQL)¶
The configuration store (PostgreSQL 16): users, sessions, roles, rules, integrations, schedules, licence, backup and cold-tier records, cluster definition. It lives on an internal network that only the control plane, the worker and the SNMP receiver can reach, and it has no host port on a single node. The control plane uses an administrator role for migrations; the worker uses a runtime role with data-manipulation rights only. In a cluster it runs under Patroni (see below).
updater¶
The service that applies signed update packages. It verifies the package signature, loads the images and starts the new version beside the old one, then asks the gateway to switch traffic. It is the only container with access to the Docker socket; it listens only on an internal network and accepts only authenticated, predefined operations. You can omit it at installation (--no-updater), in which case updates are applied from the command line. See Upgrades, patches and the update channel.
Optional services¶
These services are added by installation choices (Compose profiles).
| Service | When it runs | What it does |
|---|---|---|
minio and minio-init |
Cold storage on the same server (--cold-mode local, the Community default) |
A MinIO object store with Object Lock. The control plane creates the locked bucket (default qubesight-worm). The image is built from the last community source release with security patches, because MinIO no longer publishes images. |
restore-mysql |
Guardium archive restore (on by default) | A MySQL 8.4 server used only to import and read Guardium archive files before their rows are written to ClickHouse. |
assistant |
Embedded language model turned on | Runs the Gemma 3 4B model with llama.cpp on the server. The control plane sends it questions and builds the SQL and the answer itself; the model never reads the activity data directly. The model unloads after 15 minutes without questions. |
qs-keepalived |
A virtual IP is configured | Holds the virtual IP for log intake. On a single node it only adds the address; in a cluster it runs VRRP (unicast) between the full nodes. |
data-init |
Always, once at start | A short-lived container that prepares the ownership of data directories and exits. |
Cluster services¶
A high-availability cluster (Enterprise) adds coordination services and replaces the single PostgreSQL with Patroni. See High availability and disaster recovery.
| Service | Runs on | What it does |
|---|---|---|
| ClickHouse Keeper | Every member, the witness included | The Raft coordination service for ClickHouse replication. All ClickHouse tables become replicated tables. Client and Raft traffic use mutual TLS. |
| etcd | Every member, the witness included | The coordination store for Patroni (leader election for PostgreSQL). Client traffic uses HTTPS with a password, peer traffic mutual TLS. |
| Patroni (PostgreSQL) | Full nodes | Runs PostgreSQL with one writer and one synchronous standby, and promotes the standby automatically when the writer fails. Applications connect to all members and always reach the writer. |
| Redpanda broker | Every member, the witness included | Three brokers replicate every topic three times. |
| keepalived | Full nodes | Moves the virtual IP to a healthy node. |
The witness runs only ClickHouse Keeper, etcd and a Redpanda broker. It stores no activity data and serves no users.
The locked vault on another server¶
The locked cold store can run on a separate server instead of the QubeSight server. The product can deploy it there for you over SSH as the container qubesight-vault, a MinIO with Object Lock on port 9400 by default. Alternatively you can point QubeSight at any S3-compatible store that supports Object Lock, including Amazon S3. See Deployment architectures.
Networks¶
A single-node installation uses three Docker networks:
| Network | Members | Purpose |
|---|---|---|
default |
All services | Ordinary service-to-service traffic. |
metadata_private (internal) |
metadata-db, control-plane, worker, snmp-trap | Keeps PostgreSQL unreachable from the web interface and from outside. |
ops_private (internal) |
gateway, updater, control-plane | Management traffic for updates and certificate management. |
Request and data paths at a glance¶
| Path | Flow |
|---|---|
| A user opens a dashboard | Browser → gateway (HTTPS) → ui; the page calls /api/v1 → gateway → control-plane → ClickHouse (and PostgreSQL for settings). |
| A syslog line arrives | Sender → vector (5140) → redpanda → worker → ClickHouse; worker → locked store every 10 minutes. |
| A Filebeat event arrives | Filebeat → redpanda (9092, SASL) → worker → ClickHouse. |
| A cloud event arrives | Azure / AWS service → worker (outbound connection) → ClickHouse. |
| An alert is sent | control-plane alert engine → notification channel (SMTP, webhook, syslog, Slack, Teams, PagerDuty). |
| An update is applied | Administrator uploads a package → control-plane → updater → new containers → gateway switches traffic. |