Commit graph

77 commits

Author SHA1 Message Date
Aaron Knudtson
93e36b5581
fix: connection creation revamp (#947)
Fixes HDX-1926
2025-06-26 15:08:47 +00:00
Aaron Knudtson
9191c11323
fix: disable nx daemon (#942) 2025-06-24 16:51:59 +00:00
Aaron Knudtson
ad6887796f
feat: bundle api for image size reduction (#937)
all-in-one image: 1.51 gb -> 1.21 gb
app image: 573 mb -> 271 mb

Ref HDX-1803
2025-06-24 15:51:34 +00:00
Tom Alexander
661a1ec915
chore: Make passthrough_logs an envvar controlled setting in collector (#922)
Adds environment variable to allow for passthrough_logs to be enabled in the supervisor config

Test locally with:
Edit docker-compose.dev.yaml
Add `OTEL_SUPERVISOR_PASSTHROUGH_LOGS: 'true'` under the otel environment variables

```
make dev-up
```

Ref: HDX-1859
2025-06-10 23:16:52 +00:00
Warren
2063774866
perf: build next app in standalone mode to cut down images size (#916)
App image: 1.29GB -> 561MB
Local image: 2.23GB -> 1.5GB

Ref: HDX-1803
2025-06-09 23:40:02 +00:00
Warren
31e22dcff4
feat: introduce clickhouse db init script (#843)
Ref: HDX-1777

This shouldn't have any impact on users
2025-06-09 16:45:23 +00:00
Warren
ab387e1168
fix: missing types in app build (#905)
bonus adjust logging (otel config + exception)
2025-06-03 20:20:56 +00:00
Warren
ab3b5cb628
perf: merge api + app packages to dedupe node_modules (#901)
aio: 3GB -> 2.2GB
app: 2.05GB -> 1.27GB

Ref: HDX-1803
2025-06-02 20:53:45 +00:00
Warren
4863175c34
style: improve aio startup logs + silent ch stdout (#868)
Ref: HDX-1801

startup logs are like

```
Send OpenTelemetry data via:
  http/protobuf: OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
  gRPC: OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317

Exporting data to ClickHouse:
  Endpoint: tcp://ch-server:9000?dial_timeout=10s
  Database: default

Waiting for ClickHouse to be ready...
ClickHouse is ready!

Visit the HyperDX UI at http://localhost:8080

```
2025-05-28 22:36:16 +00:00
Aaron Knudtson
59ee6d2edc
usage info (#846)
Ref: HDX-1692
2025-05-28 22:31:57 +00:00
Warren
e27c24a13f
feat: introduce a few env vars to config otel collector (#864)
- Support `CLICKHOUSE_ENDPOINT` to switch aio clickhouse endpoint (Ref: HDX-1758)
- Support `HYPERDX_OTEL_EXPORTER_CLICKHOUSE_DATABASE ` (Ref: HDX-1786)

Support command like
```
docker run -e CLICKHOUSE_ENDPOINT=<CH-CLOUD-ENDPOINT> -e CLICKHOUSE_USER=default -e CLICKHOUSE_PASSWORD='BLABLA' -e HYPERDX_OTEL_EXPORTER_CLICKHOUSE_DATABASE =hyperdx -p 8080:8080 -p 4317:4317 -p 4318:4318 hyperdx/hyperdx-local:2-nightly
```
So users can export data to other services like clickhouse cloud
2025-05-28 18:54:13 +00:00
Warren
54622bb060
build: config opamp port (#866)
Ref: HDX-1799
2025-05-28 16:51:10 +00:00
Mike Shi
854c4b1509
feat: Add default connections and sources to docker compose and docker all in one images (#865)
Fixes HDX-1798
2025-05-28 04:17:57 +00:00
Warren
d63deeddbe
fix: support otelcol opamp in aio build (#859)
Ref: HDX-1734
2025-05-27 18:56:11 +00:00
Warren
0ab1b2bf8d
DX: pull opampsupervisor base image from dockerhub (#857)
Pulling the image from ghcr creates more friction for users, especially when dealing with issues like expired tokens. For example, you might see errors such as
```
docker pull ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-opampsupervisor:0.126.0

Error response from daemon: Head "https://ghcr.io/v2/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-opampsupervisor/manifests/0.126.0": denied: denied
```
2025-05-26 21:37:25 +00:00
Mike Shi
d72d1d2d26
Add ingestion key check to otel collector via OpAMP (#825)
HDX-1698
2025-05-23 01:41:35 +00:00
Warren
c60b975e29
chore: bump node to v22.16.0 (#839)
Ref: HDX-1757
2025-05-22 17:05:30 +00:00
Warren
86465a2027
fix: map CLICKHOUSE_SERVER_ENDPOINT to exporter 'endpoint' (#838)
For users connecting to ClickHouse Cloud or a TLS endpoint, add the `secure=true` query parameter or use the HTTPS protocol. Providing the full URL via the `CLICKHOUSE_SERVER_ENDPOINT` in the exporter's endpoint field should resolve this issue

Ref: HDX-1743
2025-05-22 05:56:18 +00:00
Dan Hable
d9ab75710e
feat: normalize the text case of severity text (#834) 2025-05-22 04:42:00 +00:00
Warren
e7262d1288
feat: introduce all-one-one (auth vs noauth) multi-stage build (#821)
1. Merge 'fullstack' and 'local' (auth + noauth) builds into a single Dockerfile
2. Introduce 'all-in-one-auth' and 'all-in-one-noauth' build stages
3. Lock `IS_LOCAL_APP_MODE` env var
4. Fix bug in ctrl-c exit with docker run
5. Enable alerts in local mode (no-auth)
6. Build `common-utils` on the fly (no longer needing pulling pkg from npm)

Ref: HDX-1709
Ref: HDX-1713
Ref: HDX-1254
Ref: HDX-1729

To match v2 product definition, we are going to release three images:
- hyperdx/hyperdx (--target=prod): app only without any other deps (clickhouse, otelcol, mongodb), used in default compose + helm deployment
- hyperdx/hyperdx-all-in-one (--target=all-in-one-auth): all-in-one build + auth
- hyperdx/hyperdx-local (--target=all-in-one-noauth): all-in-one build + no-auth

Production impacts:
- hyperdx/hyperdx: none
- hyperdx/hyperdx-all-in-one: new
- hyperdx/hyperdx-local: add server components (alerts, saved searches, dashboards)
2025-05-19 22:35:48 +00:00
Mike Shi
15bb9e6c7e
chore: remove unused dependencies (#791)
- removes redis from stack (using in memory rate limiter)
- deletes unused miner code (moved to browser-based pyodide module)
- fixes rate limit bug

fixes HDX-1248
2025-05-06 03:13:20 +00:00
Dan Hable
1c54b59939
feat: Handle JSON-like structured logs better (#763)
Updates the OTEL pipeline to handle structured logs better. If the body content is an OTEL map, it will merge the body map into the log attributes map. If the body is a JSON object, it will parse the JSON string into an OTEL map, then merge the fields into the log attributes map.

Replacing the Body field doesn't work since the Clickhouse exporter schema defines Body as string, so any parsed out object ends up turning back into a string. At least as log resources, it's a lighter weight means of grouping and filtering in the UI.

Ref: HDX-1453
2025-04-21 18:11:00 +00:00
Dan Hable
19431d3fe9
Moving HDX-1514 to open source repo (#761)
1. Moves the HDX-1514 log inference change into the OSS repo.
2. Bumps the OTEL collector version to match
2025-04-18 19:09:14 +00:00
Warren
f5e9a07ef1
chore: bump node version to v22 (#744) 2025-04-15 16:56:56 +00:00
Warren
d32661032b
feat: introduce RUN_SCHEDULED_TASKS_EXTERNALLY (#733)
1. new env var RUN_SCHEDULED_TASKS_EXTERNALLY to opt out in-app task process
2. introduce new `prod-extended` build that includes mongodb process
3. GA k8s dashboard (only picking the connection)
4. bake check-alert task into fullstack app build
2025-04-02 02:21:49 +00:00
Warren
2e3eee4c9c
migration: rename default rrweb table to hyperdx_sessions (#677) 2025-03-13 05:28:23 +00:00
Warren
5b2cba019e
feat: scrape local otelcol + clickhouse metrics (#633)
<img width="1329" alt="Screenshot 2025-02-25 at 5 26 06 PM" src="https://github.com/user-attachments/assets/ae54c3de-3e4c-4452-84ef-dda05d23c39e" />


<img width="1321" alt="Screenshot 2025-02-25 at 5 28 06 PM" src="https://github.com/user-attachments/assets/b3eab865-d6da-44da-a2fe-79a3797790f9" />
2025-02-26 03:13:05 +00:00
Warren
9767658214
style: cleanup otel-collector config (#615)
1. add `CLICKHOUSE_USER` and `CLICKHOUSE_PASSWORD` env vars (clickhouse-exporter) - not used yet
2. disable debug exporter by default
2025-02-17 19:31:10 +00:00
Warren
7c3ac9b213
feat: introduce rrweb table to store session replay data (#586) 2025-01-31 20:22:58 +00:00
Warren
3f0e564b0d
feat: add example nginx ssl reverse proxy service (#535) 2024-12-17 18:29:54 +00:00
Warren
9993fb2097
DX: standalone app docker image (#532)
For better self-hosting experience, users should be able to run
```
docker run -e MONGO_URI=xxx -p 8080:8080 hyperdx/hyperdx:2-beta
```
to spin up the project that includes the server components
2024-12-16 23:13:16 +00:00
Warren
7a766f7977
style: remove aggregator related codes (#521) 2024-12-09 09:59:36 -08:00
Warren
6a24dcf405
feat: single app image (#519) 2024-12-06 16:27:23 -08:00
Warren
aa165fcc46 feat: move more codes 2024-11-21 21:44:33 -08:00
Warren
b16456fc39 feat: move v2 codes 2024-11-12 05:53:15 -07:00
Warren
a148c06fd4
chore: bump vector to v0.41.1 (#503) 2024-10-02 05:19:09 +00:00
Warren
f7ae1a44c8
perf: use route transform to reroute go spans (#489) 2024-08-28 00:08:01 -07:00
Warren
f1da5b6d0b
chore: bump vector to v0.40.1 (#490)
https://vector.dev/releases/0.40.0/

https://vector.dev/releases/0.40.1/
2024-08-27 04:18:54 +00:00
Warren
3b5ec64404
feat: support environment filtering (#482)
<img width="221" alt="Screenshot 2024-07-24 at 2 34 07 PM" src="https://github.com/user-attachments/assets/2a4f9113-c567-4ce8-9992-6c11645c2126">
2024-07-25 05:59:17 +00:00
Warren
4d6b362f9c
feat: support sentry sdk 'X-Sentry-Auth' header (#473) 2024-07-15 04:22:27 +00:00
Warren
ac88c52173
style: introduce AGGREGATOR_PAYLOAD_SIZE_LIMIT env var (#450) 2024-07-04 00:41:49 +00:00
Warren
a5e6f0195f
chore: bump vector to v0.39.0 (#449) 2024-07-01 23:52:52 +00:00
Warren
b192366f55
chore: bump node to v18.20.3 (#411) 2024-05-26 19:42:03 +00:00
Warren
148c92b504
perf: remove redundant otel-logs fields (timestamp + spanID + traceID) (#386)
Before:
<img width="500" alt="Screenshot 2024-04-26 at 4 42 29 PM" src="https://github.com/hyperdxio/hyperdx/assets/5959690/74654fcd-faac-4837-8866-25f6e3e3e69e">

After:
<img width="498" alt="Screenshot 2024-04-26 at 4 41 37 PM" src="https://github.com/hyperdxio/hyperdx/assets/5959690/9c34893f-d9f6-442d-a877-e04ea319471c">
2024-04-29 23:42:35 +00:00
Warren
f90a6873cd
DX: attach fake hdx_token on local mode (#387)
For local mode, it shouldn't require users to specify OTEL_EXPORTER_OTLP_HEADERS or HYPERDX_API_KEY
2024-04-29 22:10:39 +00:00
Mike Shi
a5a3d34b1d
Fix multi-arch local mode build (#384) 2024-04-23 23:14:12 +00:00
Warren
d1264d521c
fix: dns issue in local mode (#373) 2024-04-17 00:46:53 +00:00
Mike Shi
24d58d214f
Add HyperDX Local Mode docs (#363) 2024-04-02 02:15:00 -07:00
Warren
582c915ff8
feat: push hyperdx-local to ghcr + dockerhub (#362) 2024-04-02 07:03:49 +00:00
Mike Shi
c0ee0e19fb
Improve local mode (#361) 2024-04-01 22:42:24 -07:00