Self-hosting
Overview
The services and stores that make up OpenPerf.
OpenPerf is six services and four stores. Each service runs and is configured on its own.
Services
| Service | Port | Role |
|---|---|---|
web | 3000 | Dashboard. The browser calls api directly. |
api | 4000 | Dashboard API and auth. |
api-ingest | 4100 | OTLP intake. Writes logs and spans to ClickHouse. |
worker-jobs | 4200 | Background jobs: alerts, webhooks, emails, cleanup. |
worker-errors | 4400 | Symbolicates and groups errors. |
mcp | 4500 | MCP server for AI assistants. Optional. |
Worker ports serve only health checks.
Stores
| Store | Holds |
|---|---|
| PostgreSQL | Accounts, projects, error groups, alert rules and job queues. |
| ClickHouse | Logs, spans, error events and their hourly rollups. 26.10+. |
| Redis (state) | The error queue and rate limits. Run it with noeviction. |
| Redis (cache) | Query cache. Safe to evict. |
| S3-compatible | Source maps, organization logos and avatars. Optional. |
ClickHouse 26.6 and later needs AVX2 on x86 hosts.
Data flow
- An SDK sends OTLP to
api-ingest, which writes it to a journal on its disk. api-ingestexports logs and spans to ClickHouse in batches. While ClickHouse is down, they wait in the journal.- Errors go from the journal to a queue in the state Redis.
worker-errorsgroups them in PostgreSQL, symbolicates stacks with source maps from object storage, and writes events to ClickHouse. worker-jobsevaluates alert rules, delivers notifications and webhooks, and runs cleanup jobs.
Next steps
Deploy
Run OpenPerf with Docker Compose, migrations and a TLS reverse proxy.
Configuration
Shared store, queue, proxy, email and logging variables.
Operations
Health checks, structured logs, Redis sizing, scaling and retention.