mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
Add deploy docs for v2 (#534)
This commit is contained in:
parent
3f0e564b0d
commit
83f9997c03
2 changed files with 99 additions and 2 deletions
72
DEPLOY.md
Normal file
72
DEPLOY.md
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
# HyperDX Deployment Guide
|
||||
|
||||
[HyperDX](https://hyperdx.io) helps engineers quickly figure out why production
|
||||
is broken by making it easy to search & visualize logs and traces on top of any
|
||||
Clickhouse cluster (imagine Kibana, for Clickhouse). You can learn more about
|
||||
HyperDX in our [README](/README.md).
|
||||
|
||||
HyperDX can be deployed in a few different ways:
|
||||
|
||||
- [Bring Your Own ClickHouse](#bring-your-own-clickhouse)
|
||||
- [All-in-one Docker Compose Stack](#all-in-one-docker-compose-stack)
|
||||
- [Local Development Mode](#local-development-mode)
|
||||
|
||||
## Bring Your Own ClickHouse
|
||||
|
||||
If you already have an existing ClickHouse cluster, you can simply deploy a
|
||||
HyperDX container that connects to your ClickHouse cluster. You'll need a
|
||||
separate MongoDB instance to persist your users, dashboards, searches and more.
|
||||
|
||||
To get started, you can run the following image:
|
||||
|
||||
```bash
|
||||
docker run -e MONGO_URI=mongodb://YOUR_MONGODB_URI -p 8080:8080 docker.hyperdx.io/hyperdx/hyperdx:2-beta
|
||||
```
|
||||
|
||||
You'll need to set the `MONGO_URI` environment variable to the URI of your
|
||||
MongoDB instance. Afterwards, you'll want to visit http://localhost:8080 to set
|
||||
up your connection with ClickHouse.
|
||||
|
||||
Before deploying into production, you'll want to set the
|
||||
`EXPRESS_SESSION_SECRET` environment variable to a random string.
|
||||
|
||||
To customize the frontend URL, set the `FRONTEND_URL` environment variable to
|
||||
the URL your HyperDX instance is hosted on.
|
||||
|
||||
## All-in-one Docker Compose Stack
|
||||
|
||||
The easiest way to get started with HyperDX from scratch is to use our
|
||||
all-in-one Docker Compose stack. This stack will start Clickhouse, an
|
||||
OpenTelemetry collector, and HyperDX with a MongoDB and Redis instance.
|
||||
|
||||
To get started, clone this repository and run the following command:
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
This will start the HyperDX stack and open a port for the UI, API, and OTel
|
||||
collector.
|
||||
|
||||
When deploying into production, you'll want to disable any extra ports outside
|
||||
of the otel collector and api container. Beware that exposing any port in Docker
|
||||
Compose will make it publicly accessible even when using iptable-based firewalls
|
||||
such as ufw. See the
|
||||
[Docker docs](https://docs.docker.com/engine/network/packet-filtering-firewalls/#docker-and-ufw)
|
||||
for more information.
|
||||
|
||||
Additionally, you'll want to set the `EXPRESS_SESSION_SECRET` environment
|
||||
variable to a random string.
|
||||
|
||||
## Local Development Mode
|
||||
|
||||
HyperDX can also be deployed alongside your existing local development stack to
|
||||
help you debug issues locally. This mode will start an OpenTelemetry collector,
|
||||
Clickhouse, and HyperDX with a MongoDB in a single instance, without any
|
||||
authentication or configuration persistence.
|
||||
|
||||
To get started, spin up the local mode container:
|
||||
|
||||
```bash
|
||||
docker run -p 8080:8080 docker.hyperdx.io/hyperdx/hyperdx-local:2-beta
|
||||
```
|
||||
29
README.md
29
README.md
|
|
@ -36,6 +36,32 @@ Clickhouse cluster (imagine Kibana, for Clickhouse).
|
|||
|
||||
## Spinning Up HyperDX
|
||||
|
||||
HyperDX can be deployed in a few different ways depending on your needs. The
|
||||
easiest way to get started from scratch is to start the complete stack via
|
||||
Docker Compose. Which will start an OpenTelemetry collector, Clickhouse, and
|
||||
HyperDX with a MongoDB and Redis instance.
|
||||
|
||||
After cloning this repository, simply start the stack with:
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
Afterwards, you can visit http://localhost:8080 to access the HyperDX UI.
|
||||
MongoDB and Redis instance.
|
||||
|
||||
If you already have an existing ClickHouse instance, want to use a single
|
||||
container locally, or are looking for production deployment instructions, you
|
||||
can view the different deployment options in our [DEPLOY.md](/DEPLOY.md).
|
||||
|
||||
> If your server is behind a firewall, you'll need to open/forward port 8080,
|
||||
> 8000 and 4318 on your firewall for the UI, API and OTel collector
|
||||
> respectively.
|
||||
|
||||
> We recommend at least 4GB of RAM and 2 cores for testing.
|
||||
|
||||
### Local Mode
|
||||
|
||||
> **Note:** HyperDX v2 is currently in beta for local mode.
|
||||
|
||||
You can get started by standing up the HyperDX local container, which will run
|
||||
|
|
@ -161,8 +187,7 @@ deployment simplicity, native SQL support, and improved performance for PB+
|
|||
deployments. Currently we've released a subset of features with the goal of
|
||||
getting early feedback from the community.
|
||||
|
||||
Here's a high-level list of support we're working on delivering as part
|
||||
of v2:
|
||||
Here's a high-level list of support we're working on delivering as part of v2:
|
||||
|
||||
- [x] Log & Trace Search w/ Lucene & SQL
|
||||
- [x] Charting & Dashboarding
|
||||
|
|
|
|||
Loading…
Reference in a new issue