Skip to Content
OpenPerf

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

ServicePortRole
web3000Dashboard. The browser calls api directly.
api4000Dashboard API and auth.
api-ingest4100OTLP intake. Writes logs and spans to ClickHouse.
worker-jobs4200Background jobs: alerts, webhooks, emails, cleanup.
worker-errors4400Symbolicates and groups errors.
mcp4500MCP server for AI assistants. Optional.

Worker ports serve only health checks.

Stores

StoreHolds
PostgreSQLAccounts, projects, error groups, alert rules and job queues.
ClickHouseLogs, 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-compatibleSource maps, organization logos and avatars. Optional.

ClickHouse 26.6 and later needs AVX2 on x86 hosts.

Data flow

  1. An SDK sends OTLP to api-ingest, which writes it to a journal on its disk.
  2. api-ingest exports logs and spans to ClickHouse in batches. While ClickHouse is down, they wait in the journal.
  3. Errors go from the journal to a queue in the state Redis. worker-errors groups them in PostgreSQL, symbolicates stacks with source maps from object storage, and writes events to ClickHouse.
  4. worker-jobs evaluates alert rules, delivers notifications and webhooks, and runs cleanup jobs.

Next steps

License

Apache License 2.0.

On this page