Add HyperDX Local Mode docs (#363)

This commit is contained in:
Mike Shi 2024-04-02 02:15:00 -07:00 committed by GitHub
parent 582c915ff8
commit 24d58d214f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 30 additions and 10 deletions

BIN
.github/images/demo_local_animated.gif vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

View file

@ -1,8 +1,8 @@
# HyperDX Local
HyperDX Local is a single container local-optimized version of HyperDX that allows you to pipe OpenTelemetry telemetry (logs, metrics, traces) to a local instance of HyperDX running on your own machine. This makes it easily to debug complex applications locally using the same telemetry you have in prod or to test your instrumentation before pushing it into production.
HyperDX Local is a single container local-optimized version of [HyperDX](https://www.hyperdx.io/) that allows you to pipe OpenTelemetry telemetry (logs, metrics, traces) to a local instance of HyperDX running on your own machine. This makes it easily to debug complex applications locally using the same telemetry you have in prod or to test your instrumentation before pushing it into production.
HyperDX Local has a few additional benefits over the regular open source version:
HyperDX Local has a few additional benefits tuned to local development over the regular version:
- 📦 Packaged in a single container, to slot alongside your existing dev environment (ex. Docker Compose stack)
- 🔑 No need to auth to send and view telemetry
- 🐏 Optimized for lower memory footprint
@ -14,6 +14,9 @@ And it has all the features you would expect from HyperDX:
- ⏱️ Application performance monitoring
- 📈 Charting logs, metrics and traces in a single UI
<br/>
<img alt="Demo of using HyperDX Local for debugging a local app" src="./.github/images/demo_local_animated.gif" title="Demo of using HyperDX Local for debugging a local app">
## Getting Started
To get started, simply run the Docker container with the appropriate ports forwarded:
@ -35,7 +38,7 @@ Configuring instrumentation for HyperDX local is similar to configuring it for t
Most instrumentations can be configured using the `OTEL_EXPORTER_OTLP_ENDPOINT` environment variable. Ex: `OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318`.
If you're using a HyperDX provided SDK, you may need to give a non-empty `HYPERDX_API_KEY` as well, API keys are not validated in HyperDX Local and therefore can be any non-empty value.
If you're using a HyperDX maintained SDK, you may need to give a non-empty `HYPERDX_API_KEY` as well, API keys are not validated in HyperDX Local and therefore can be any non-empty value.
## Customizing Ports
@ -56,16 +59,21 @@ docker run \
hyperdx/hyperdx-local
```
## Notes
## Open Source & Cloud Versions (Beyond Local)
### Limitations vs Regular Open Source Version
If you're looking to deploy HyperDX to monitor a production environment (or anything outside your local environment), you can check out the [regular open source version](https://github.com/hyperdxio/hyperdx) or the [cloud hosted version](https://hyperdx.io/).
There are a few minor limitations compared to the regular open source version:
- Single user mode only (due to lack of auth requirement)
- No support for management APIs
### Local vs Non-Local Versions
There are a few missing features in HyperDX Local compared to the other versions of HyperDX:
- HyperDX Local is single-user only (due to skipping auth)
- Has no support for [management APIs](https://www.hyperdx.io/docs/api/alerts)
- No alerting support (alerts will not fire)
- Log and DB query patterns will not be calculated
- No persistence of data if the container is torn down
- DB queries will not be reduced into query patterns
- No persistence of data (telemetry and settings) if the container is torn down
## Notes
### Ports

View file

@ -153,6 +153,18 @@ include:
Once HyperDX is running, you can point your OpenTelemetry SDK to the
OpenTelemetry collector spun up at `http://localhost:4318`.
## Local Mode
Interested in using HyperDX for local development and debugging? Check out HyperDX Local, a single container local-optimized version of HyperDX that allows you to pipe OpenTelemetry telemetry (logs, metrics, traces) to a local instance of HyperDX running on your own machine.
Get started with HyperDX Local by running the following Docker command:
```bash
docker run -p 8000:8000 -p 4318:4318 -p 4317:4317 -p 8080:8080 -p 8002:8002 hyperdx/hyperdx-local
```
[Read more about HyperDX Local](./LOCAL.md)
## Contributing
We welcome all contributions! There's many ways to contribute to the project,