Introducing a new way to review your PRs.

Read the announcement

hyperdxio / hyperdx

Resolve production issues, fast. An open source observability platform unifying session replays, logs, metrics, traces and errors powered by ClickHouse and OpenTelemetry.

View on GitHub

19 documents · Updated Oct 30, 2026

overview

Knowledge Base updated: 2026-10-29

HyperDX knowledge base

Orientation

HyperDX is a self-hosted observability platform: a React web application queries and configures an API service, while an OpenTelemetry Collector ingests telemetry into ClickHouse. MongoDB holds product configuration and identity-oriented state.

The monorepo is organized as workspace packages for the browser app, API, collector, shared query/domain utilities, and evaluation tooling. Docker Compose defines the usual local and production-adjacent service topology.

Critical telemetry state lives in ClickHouse; durable application configuration, teams, users, dashboards, alerts, and connection metadata live in MongoDB. The API coordinates these stores, and background alert work evaluates conditions and sends notifications.

System architecture

flowchart LR
  Browser[HyperDX web app]
  API[API service]
  Mongo[(MongoDB configuration store)]
  CH[(ClickHouse analytics store)]
  Collector[OpenTelemetry Collector]
  SDKs[OTel SDKs / telemetry sources]
  Replay[Session replay telemetry]
  Tasks[Scheduled alert tasks]
  Webhooks[Webhook / notification endpoints]
  Shared[common-utils]
  Compose[Docker Compose deployment]

  SDKs --> Collector
  Replay --> Collector
  Collector --> CH
  Browser <--> API
  API <--> Mongo
  API <--> CH
  API --> Shared
  Browser --> Shared
  Tasks <--> Mongo
  Tasks --> CH
  Tasks --> Webhooks
  Compose --> Browser
  Compose --> API
  Compose --> Collector
  Compose --> Mongo
  Compose --> CH
flowchart LR
  User[User query or dashboard action] --> UI[Browser query experience]
  UI --> API[API router]
  API --> Query[Shared query helpers]
  Query --> CH[(ClickHouse)]
  CH --> API
  API --> UI
flowchart LR
  Rule[Alert configuration in MongoDB] --> Task[Alert evaluation task]
  Task --> CH[(ClickHouse)]
  CH --> Task
  Task --> Template[Notification template]
  Template --> Transport[Generic transport]
  Transport --> Endpoint[Webhook endpoint]

Glossary

  • HyperDX — the self-hosted observability product implemented by this repository.
  • ClickHouse — the analytics database holding searchable telemetry and session-related data.
  • Collector — the OpenTelemetry Collector deployment that receives and exports telemetry.
  • common-utils — the shared package for domain types, query helpers, SQL/filter handling, and validation.
  • OpAMP — the OpenTelemetry management protocol integration used by the API service.

Codebase-wide invariants

  • Telemetry ingestion and analytics querying are separated: collector configuration writes telemetry to ClickHouse, while product configuration remains API-managed; see collector/**, packages/api/src/**, and Compose manifests.
  • Shared query/domain behavior belongs in packages/common-utils/src/** rather than being independently reimplemented by API and browser consumers.
  • Browser-facing data access flows through API routers and the API’s ClickHouse access layer; evidence: packages/app/src/** and packages/api/src/routers/**.
  • Alert evaluation is background work that reads configured rules and telemetry before dispatching a transport; evidence: packages/api/src/tasks/checkAlerts/**.
  • Deployment wiring is environment-driven and service-oriented; Compose files and container definitions must keep app, API, collector, MongoDB, and ClickHouse configuration aligned.

Routing table